Keep It Simple, Stupid | |
PerlMonks |
ffmpeg console progress barby strredwolf (Chaplain) |
on Feb 18, 2013 at 17:01 UTC ( [id://1019371]=CUFP: print w/replies, xml ) | Need Help?? |
If you're in the furry fandom, more often than not you heard of the videos of a certain Big Blue Fox by the name of BBF TV HD. They're by a German video editor who works at RTL, and of when he and the Eurofurance crew visits a furry convention. It's a great way to get an idea of what a con is, or if you missed it, what happened. I pulled most of the videos from his site, and every so often I tweak the encode settings to mencoder to do it... except mencoder doesn't do bframes right. I switched over to ffmpeg (not avconvert from the rogue libav gang; the original ffmpeg)... which doesn't have a nice status line. Thankfully ffmpeg hit 1.0 and got a -progress option, which gives a nice status readout. Too bad my build outputs to a file, md5 code, or a pipe.. aka an opened file descriptor. Forget named pipes, it'll recreate 'em as a file. After some hacking around... I have this! The settings in the ffmpeg command match that for a 2nd Gen AppleTV, but I also have info for the 3rd Gen/iPhone 5/iPad 4. I name this version atv-enc.pl. It takes two arguments: atv-enc.pl input output EDIT: Whoops, a few bugs crept in with the bar. Fixed, and enhanced a bit.
Information doesn't want to be free. It wants to be feline.
Back to
Cool Uses for Perl
|
|