Thank you for this great module.
Is this possible to add two-pass video encoding to FFMPEG video conversion? In op_video module there is a working solution, not too hard to implement.

Thanks in advance,
Christopher

CommentFileSizeAuthor
#4 mm_ipod.zip2.93 KBcameronp

Comments

arthurf’s picture

I think the easiest way to do this would be to do two configurations for now- harvest the output from the first and do a second pass on it. I think as things move toward 2.0, 2 pass in a single config will be possible, but, for now, I'd do it with one. You could modify the mm_ffmpeg module to do this- it would be straight forward to do.

delykj’s picture

You need to set the pass log file to the second pass, so I think that two configuration could not be used currently (we need to store the first pass's log file somewhere and the second config need to get this file).
I think it is easer to do it with one configuration.

arthurf’s picture

Can you give me an example of how this works on the command line? If it's simple, I could potentially provide it quickly

cameronp’s picture

StatusFileSize
new2.93 KB

I wrote a little addon using a shell script for mine, this does a conversion to h264/aac with 2 pass encoding, and then puts the atoms needed at the start of the file, using atomic parsley..

This is how I produce podcast compatible mp4's for my site...

I've also attached the ipod module that I wrote. It is very specific to a customised version I had of media mover, as there was a few bugs inthe versoin I had. I did submit it though, so it may need some work to use with the current version of media mover.

Here is an example of the custom command used in the ipod module (when you set up a configuration using custom ipod module)

/usr/local/bin/ipodconvert.sh "/home/xxxxx/www/%s" "/home/xxxxx/www/%s"

Thanks,
Cameron

arthurf’s picture

Status: Active » Fixed

There is a forth coming module that anantagi just wrote that maybe able to help you with this: http://drupal.org/project/mm_custom_command, alternatively, there is now a "custom command" that you can use to craft your own command line usage of ffmpeg from media mover (via ffmpeg wrapper).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.