Ok, I've come up with something really good, if I may say so myself ;)

Like before, my goal is to create 1920x1080p video with audio that plays on the PlayStation3.

I'm using two rendering profiles within Cinelerra; one for audio and one for video. First the audio profile renders the audio, including fade in/out effects etc. Secondly the video profile renders the video including effects, and encodes both video and audio to a final MP4 file. This approach also gives you the option of only rendering a selection of your project.

The video encoding uses a one-pass encoding approach, using ffmpeg and its rather new -crf option, which produces high quality stuff. Combined with ffmpeg's -vpre shortcut option, the command line also gets reduced to only a few arguments (but you can still write them it their full length, if you prefer).

My two rendering profiles are as follows:

"(1 of 2) Audio [WAV]"
  Render to file: /tmp/audio.wav
  File format: WAV
  Compression: 16 bit linear PCM

"(2 of 2) Video [MP4+H264+AAC]"
  Render to file: /home/me/video.mp4
  File format: YUV4MPEG Stream
Use Pipe: ffmpeg -y -threads 0 -f yuv4mpegpipe -i - -i /tmp/audio.wav -acodec libfaac -ab 384k -vcodec libx264 -vpre hq -crf 20 -level 41 -f mp4 % && rm -f /tmp/audio.wav

(By naming the profiles as above, you get them ordered nicely in the profile drop down menu =)

Run the first, then run the second, and you're done! The lower the crf, the higher the quality (and file size). "-vpre hq" hides care of all those nasty hq video encoding parameters. Any details you'll have to get from someone else than me ;).

I think I'll be happy for some time with this setup, even though I have to remember to render twice. Luckily the sound is rendered very fast.

If only the Cinelerra-CV developers would make a stream similar to YUV4MPEG but that included uncompressed PCM, this could all be done with just one rendering profile and be perfect! ;)



Here's a splendid tutorial on how to compile the newest ffmpeg from source on Ubuntu:
http://ubuntuforums.org/showthread.php?t=786095

And some reference material:
http://rob.opendot.cl/index.php/useful-stuff/ffmpeg-x264-encoding-guide/
Render to file: /tmp/audio.wav
http://en.wikipedia.org/wiki/H.264#Levels


--
Stephan
http://asklandd.dk/



_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to