Share

any2dvd

Tracker: Bugs

5 ffmpeg aborts due to non correct bitrate - ID: 1682983
Last Update: Comment added ( rickharris )

The problem is that any2dvd aborts when it tries to add the audio stream in
the main menus. The reason in my case is that I haven't specified any
specific audio sound for the menus so it took the silent branch.

So it creates a silent wav with ecasound. Then it tries to convert it to
ac3 with ffmpeg. ffmpeg aborts because the bitrate argument is not right.

I am not knowledgable enough but I think that it is possible that ffmped
may have changed its behaviour and any2dvd is very sensitive in such
changes.

I have debian unstable here with ffmpeg 20070312-0.0.

The patch below fixes it. That means it prevents any2dvd from aborting. I
do not know yet if it has any ill effects to the DVD itself

Here is the patch


Vassilis Virvilis ( vasvir ) - 2007-03-18 08:46

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 4 )




Date: 2007-06-05 23:12
Sender: rickharrisProject Admin


A fairly mature beta of 0.36 that addresses this issue can be found here:
http://mightylegends.org/downloads/any2vob-0.36_beta.sh
http://mightylegends.org/downloads/any2dvd-0.36_beta.sh


Date: 2007-05-16 08:18
Sender: nobody

Logged In: NO

Same here, but instead of stopping ffmpeg produces incorrect mp2 files so
finally mplex stalls, later.


Date: 2007-03-20 09:17
Sender: rickharrisProject Admin


File Added: any2vob-0.34_ffmpeg-bitrate.diff


Date: 2007-03-20 09:14
Sender: rickharrisProject Admin


Yes, you are right. FFmpeg have changed the way that audio bitrate ('-ab')
is specified on the command line. '-ab' used to specify audio bitrate in
kbits/s, now it is used to specify bitrate in bits/s (a similar thing was
done to video bitrate recently also).

So in order to now encode a 224kbits/s audio file, you would need to
specify '-ab 224000' or '-ab 224k'.

(Apart from breaking a hundred or so users scripts + fielding the many
support questions from users every time small changes are made to key
command-line components, I'm not sure what functionality this brings to the
FFmpeg users).

Rightly or wrongly, due to FFmpeg not releasing anything except an SVN
tree that changes daily, this kind of situation will keep occurring. At
present there does not exist any other program for Linux (to my knowledge)
that is capable of encoding 5.1 AC3 format.

This leaves us with two options:
1) Whenever a new version of any2dvd is released, only support up to a
certain version of FFmpeg. While going some way to solving the problem,
this would still be very labour intensive as it would involve attempting to
track and cater for every single change that FFmpeg may have made between
two any2dvd releases.

2) Release with any2dvd, a statically built binary of FFmpeg (suitably
renamed so as not to interfere with a real FFmpeg installation) that is
known to work with that version of any2dvd.

The latter seems to be the most sane way forward.

In the meantime, using the patch means the audio track will only have a
64kbits/s bitrate. Should be OK for a silent audio track, but if an audio
track is chosen the sound quality will be poor.

Attached are patches for any2vob and any2dvd that change all instances of
'-ab <bitrate>' to '-ab <bitrate>k'.

File Added: any2dvd-0.34_ffmpeg-bitrate.diff


Log in to comment.




Attached Files ( 3 )

Filename Description Download
ffmpeg-bitrate.patch ffmpeg bitrate patch Download
any2dvd-0.34_ffmpeg-bitrate.diff any2dvd-0.34_ffmpeg-bitrate.diff Download
any2vob-0.34_ffmpeg-bitrate.diff any2vob-0.34_ffmpeg-bitrate.diff Download

Changes ( 3 )

Field Old Value Date By
File Added 221356: any2vob-0.34_ffmpeg-bitrate.diff 2007-03-20 09:17 rickharris
File Added 221355: any2dvd-0.34_ffmpeg-bitrate.diff 2007-03-20 09:14 rickharris
File Added 221072: ffmpeg-bitrate.patch 2007-03-18 08:46 vasvir