Hi Nicolas
> I use mpeg2enc to convert an YUV4MPEG stream to a mpeg2 file. That's to
> build a DVD. It works, but for CBR only.
What happened when you tried to do VBR? What did you try?
> I would like to know if anyone on this list got a (working) script
> converting an output file generated by cinelerra to a VBR mpeg2 file
> (with AC3 if possible).
I no longer use an intermediate .mov file to do this - since Cinelerra 2.0
(and CVS somewhat earlier), Cinelerra has been able to output data to a pipe
in the format expected my mpeg2enc. So now I just pipe directly into
mpeg2enc (which gives better quality and ends up being faster in my
particular workflow. This doesn't affect the mpeg2enc command line options
though - it just changes the way you get the data into mpeg2enc. To read
from a .mov file you utilise lav2yuv.
So, if I was making a DVD from a .mov file I'd use something like this:
lav2yuv foobar.mov | mpeg2enc -f 8 -q 4 -b 7500 -s -c -N 1.0 -E -10
-o foobar.m2v
(all on one line) This does the video component. The options are explained
in the mpeg2enc manpage. The important one here is "-q" - it sets the
quality factor used in the encoding and implies VBR. The "-b" option sets
the bitrate ceiling - the quality factor will be increased if necessary to
ensure this bitrate target is not exceeded. 7500 is conservative - with 320
kbps MP2 audio for example you should be able to go as high as 8500 without
problems, so long as the resulting stream is still small enough to fit on
your DVD. Note that the *total* bitrate (audio, video, mux-overheard) must
be kept below 10100 kbps to keep standalone DVD players happy.
As for audio, up to now I've used mp2 audio for various reasons, which I've
encoded using toolame. AAC should be the same except of course you use a
different encoder.
At this point you have your video and audio streams. Multiplex them
using something like
mplex -f 8 -V foobar.m2v foobar.m2a -o foobar.mpg
(foobar.m2a being the encoded audio file) and you should end up with a nice
mpeg file called foobar.mpg which can then be used with dvdauthor to produce
your DVD image. "-V" tells mplex that it's dealing with a VBR stream.
Finally, note this is all from memory - excuse any silly typos which might
have crept in.
Regards
jonathan
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra