Richy,

I normally take M2TS AVCHD files from a sony and rework them to DVD
format, so that is how my workflow is set up.  It shouldn't be too hard
to adapt to any resolution though.  Note that in the first step, in the
'-vf' line I'm deinterlacing (yadif) and scaling down to DVD resolution.
Also, what is called OUTPUT.some-extension in one step probably is the
same file that should be used as INPUT.same-extension in a latter one.
I'm using the SVN versions of ffmpeg and mencoder no older than a couple
months, don't know how other versions will fare.

M2TS (camera) to Cinelerra editable:

mencoder INPUT -quiet \
            -vf harddup,yadif,unsharp=cl5x5:1,scale=720:480 \
            -ovc lavc -oac lavc -channels 6 \
            -lavcopts
vcodec=mjpeg:nr=400:vqmin=1:vqscale=0:vbitrate=20000:mbd=1:aspect=16/9:acodec=libfaac:abitrate=448
 \
            -noskip -mc 0 \
            -of lavf \
            -o OUTPUT.mov


Cinelerra Export:

video: YUV4MPEG Stream saved as some_file.mks, ffmpeg -f yuv4mpegpipe -i
- -y -threads 2 -vcodec huffyuv -f matroska %
audio: microsoft wav


Now into DVD format (2 pass):

mencoder INPUT.mks \
    -ovc lavc \
    -lavcopts
threads=4:vcodec=mpeg2video:aspect=16/9:vrc_buf_size=1835:vrc_maxrate=8000:vbitrate=6000:keyint=15:vstrict=0:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:dc=10:vstrict=0:vpass=1
 \
    -noskip -mc 0 \
    -o /dev/null

mencoder INPUT.mks \
    -ovc lavc \
    -lavcopts
threads=4:vcodec=mpeg2video:aspect=16/9:vrc_buf_size=1835:vrc_maxrate=8000:vbitrate=6000:keyint=15:vstrict=0:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=4:predia=4:cbp:mv0:dc=10:vstrict=0:vpass=2
 \
    -noskip -mc 0 \
    -of mpeg -ofps 30000/1001 \
    -mpegopts format=dvd:tsaf:vaspect=16/9 \
    -o OUTPUT.mpg

ffmpeg -i INPUT.mpg -an -vcodec copy -y OUTPUT.m2v

aften INPUT.wav OUTPUT.ac3

mplex -f 8 INPUT.m2v INPUT.ac3 -i OUTPUT.mpg

- James

On Mon, 2009-01-12 at 16:05 +0100, Richy wrote:

> Thank you James!
> Very helpful information for me there.
> I used to get I/O - Errors when trying to render to hdv.
> Your command works just fine.
> 
> Is there a detailed description of your workflow available?
> 
> Thanks, thanks thanks
> 
> 
> Richy
> 
> _______________________________________________
> Cinelerra mailing list
> [email protected]
> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
> 

Reply via email to