On Wed, 2009-02-18 at 06:37 -0800, Murray Strome wrote: > Jim, > > Thanks for your patience, Jim. I think my first problem is doing the video > rendering in Cinelerra. I believe I have to do this successfully before I can > make use of any of the commands you have provided. See my questions embedded > in your reply below.
You're welcome, I know how frustrating Cinelerra can be starting out. I'm far from being an expert with it, just happen to have found a work-flow that works for me. > > Murray > > --- On Date: Mon, 16 Feb 2009, James Youngquist <[email protected]> > wrote: > > > > Hope this helps. > > > > > > The the full "Use Pipe" line is: > > ffmpeg -f yuv4mpegpipe -i - -y -threads 4 -r 30000/1001 > > -vcodec huffyuv > > -f matroska % > > OK, I believe that the above command is issued in a terminal. Is that > correct? So where does the file "yuv4mpegpipe" come from? Somewhere in the > documentation: That will be the command from within Cinelerra, see below. > > http://cinelerra.org/docs/split_manual_en/cinelerra_cv_manual_en_20.html > > I see "Audio and video are rendered separately and combined later in a > procedure external to Cinelerra. > Audio is rendered into .ac3, and video is rendered into a yuv4mpeg stream > which is piped through either mpeg2enc or ffmpeg into a .m2v file." > > However, "yuv4mepg" is not listed under my options when I click on "Render". > > I am using "cinelerra-4-repack" version 20080819 with Kubuntu 8.04 (KDE3) > AMD64 version on a system using an AMD Athlon 64bit dual core processor. I had attached a screen shot, maybe it wasn't allowed through. I'm emailing a copy directly to you (or anyone else who wants it). The pertinent choice for render should be "YUV4MPEG Stream". I don't know why it wouldn't be available unless the version you're using didn't have it compiled in... In which case you could try compiling yourself, a process that doesn't take too long. > > > Render audio as Microsoft WAV. Must render audio and video > > separately. > > > > So supposing you render to MyVideo.mkv and MyAudio.wav, > > I can render the Audio to MyAudio.wav with no problem. But what option do I > use to render the video to MyVideo.mkv? The only choices that appear > relevant on my list are" .avi (which crashes), .mov (Quicktime), .m2v (MPEG) > and .ogg, none of which are playable in any of my viewers. > > > create the final > > video using ffmpeg or mencoder (or whatever) from command > > line). > > > > For example, the following commands encode to MPEG2 > > suitable for DVDs > > (assuming MyFile.mkv is 720x480). See the mplayer > > documentation from > > their website on how to use other codecs. Google > > "aften" for where to > > download it; it's a decent AC3 encoder though you can > > use mencoder too. > > Pay attention to the file extensions... > > > > PASS 1 > > > > mencoder MyVideo.mkv \ > > -ovc lavc \ > > -lavcopts > > threads=4:vcodec=mpeg2video:aspect=16/9:vrc_buf_size=1835:vrc_maxr > > ate=8000:vbitrate=6000:keyint=15:vstrict=0:trell:mbd=2:precmp=2:subcmp=2:cmp=2:d > > ia=-10:predia=-10:cbp:mv0:dc=10:vstrict=0:vpass=1 \ > > -noskip -mc 0 \ > > -o /dev/null > > > > > > PASS 2 > > > > mencoder MyVideo.mkv \ > > -ovc lavc \ > > -lavcopts > > threads=4:vcodec=mpeg2video:aspect=16/9:vrc_buf_size=1835:vrc_maxr > > ate=8000:vbitrate=6000:keyint=15:vstrict=0:trell:mbd=2:precmp=2:subcmp=2:cmp=2:d > > ia=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 MyVideo.mpg > > > > ffmpeg -i MyVideo.mpg -an -vcodec copy -y MyVideo.m2v > > > > > > Create AC3 > > > > aften MyAudio.wav MyAudio.ac3 > > That above 4 steps (pass1, pass2, ffmpeg and create ac3) are all done external to Cinelerra. > > Why not just render the audio to ac3 in the first place? It is one of the > options listed under the Render menu. I had trouble with poor quality AC3 being created by Cinelerra directly. - Jim > > > > > Create DVD compliant MPEG2 > > > > mpleg -f 8 MyVideo.m2v MyAudio.ac3 -o MyVideo.dvd.mpg > > > > > > Yeah, a lot of steps it seems. But the benefit is you > > still have the > > original pristine MyVideo.mkv and MyAudio.wav unencumbered > > with > > compression artifacts that can be reencoded into any > > formats needed. > > Nobody ever said video editing was for the small > > hard-drives! Also, you > > can stick the above commands into a shell script (another > > topic > > entirely) to streamline the process. > > > > -Jim > > > > > _______________________________________________ > Cinelerra mailing list > [email protected] > https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra >
<<attachment: cinelerra_output.png>>
