On Tue, 2009-02-17 at 14:09 -0800, Murray Strome wrote:
> > Try OGG Theora/Vorbis - that's the only one that works > > for me > I tried several formats. At least OGG Theora/Vorbis doesn't die at the end of > the rendering, however, the video is just black and there is no sound if I > try to play the resulting file with mplayer, kaffeine or VLC player. > > > > > Murray, > > > > Another thing to try is to NOT render directly from > > Cinelerra to your > > final output format. Instead try an intermediate format > > for both audio > > and video, then use ffmpeg or mencoder to encode those > > intermediate > > files into your final video. > > OK, I am confused here. I don't see where, within Cinelerra, to issue such a > command. The only video and audio options I see are Window AVI, Quicktime > for LINUX. I can also just export the video as MPEG (*.m2v), but the result > cannot be viewed in any of my players (one, I cannot remember which, says > that it cannot determine the aspect ration). I am not terribly familiar with > the scripts, and certainly know nothing about ffmpeg or mencoder. I have > looked at the man pages, but cannot say I really understand them yet. > > > For example, export your video as a YUV4MPEG stream with > > the following > > command, > > > > ffmpeg -f yuv4mpeg -i - -y -threads 2 -vcodec huffyuv -f matroska % > > > > and change the file extension to .mkv (extensions don't > > really matter, > > I am guessing that the above is done in a terminal. But what was done first > with Cinelerra to create the yuv4mpeg file? I assume that is the input for > ffmpeg and that matroska is the output -- is that correct? > In other words, what format is chosen to create yu4mepg? > > just a convenience). Beware, exporting as HUFFYUV creates > > LARGE files > > and you must specify framerate later to mencoder (with > > -ofps 30000/1001 > > for 29.97 frames per second), but it works like a charm and > > then you can > > choose different qualities for encoding the final video (ie > > one > > resolution/codec for youtube and another for DVD from same > > source). > > > > Export audio as a microsoft .wav and then convert to AAC, > > MP3, OGG, > > whatever. > > > > Mux the video and audio together into your final formats. > > Plenty of > > examples available online, just search for "mencoder > > mux video audio" or > > the like. > > > > I'd caveat the above works using recent SVN version of > > cinelerra, ffmpeg > > and mencoder. Its not too hard to install the latest SVN > > versions and > > the often increased compatibility and stability really pays > > off in the > > end. > > > > - Jim > > > > > > Message: 5 > > Date: Mon, 16 Feb 2009 19:32:40 +0100 > > From: bqz69 <[email protected]> > > To: [email protected] > > Subject: Re: [CinCV] Cineralla crashes at end of rendering > > Reply-To: [email protected] > > > > > Would you care to give some live examples about obove for > > us newbies - > > thanks :-) > > > > --__--__-- > > I would agree with bqz69 -- I really couldn't follow what Jim suggested. > > Thanks for all the replies. > > Murray Hope this helps. The the full "Use Pipe" line is: ffmpeg -f yuv4mpegpipe -i - -y -threads 4 -r 30000/1001 -vcodec huffyuv -f matroska % Render audio as Microsoft WAV. Must render audio and video separately. So supposing you render to MyVideo.mkv and MyAudio.wav, 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 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>>
