FFmpeg Update and How-To.
07 November 2002, 15:00gmt, by , Editor-In-Chief From the video gaga department...
François Revol, mmu_man in BeShare has done some quality work for BeOS, for example porting Emacs and making Nplay, a very good media player. On top of it all, he's a really nice guy. This time he brings us news of ffmpeg, a status update and a How-To giving us examples of how and where to use ffmpeg. Remember, if you don't like what he writes, i'm just the messenger.
Once again, with the help of shatty (Andrew Bachmann), I've fixed ffmpeg to compile on BeOS (these guys are moving too fast to follow them =), and guess what, this time it runs on plain R5 (net_server).
You can now use it not only to convert your divx and other videos between a lot of formats (now including asf-wma), but also record BeOSRadio with this simple command line [1]. Since the patches have been included in the tree, you can compile it yourself directly off the CVS [2]. You will need libdl (from BeBits), and optionally zlib, lame, and liba52.
Also working, but needing BONE currently, is the server module, which is able to broadcast audio and video in many formats at once. This one currently needs patching, and the latest version of libmoreposix, a library I should release soon. Another interesting thing you can do with ffmpeg is using it as an encoder for SoundPlay's LiveEncoder plugin [3].
And I'm currently working on adding a BeOS backend for a/v grabbing :)
[1]
ffmpeg -f mp3 -i http://64.91.67.66:8016 beosradio.wav (wav or any other format ffmpeg understands)
You can even automate this with wget, and put it in a script like MP_BeOSRadio, to record to your desktop:
#!/bin/sh
Terminal -t 'Recording BeOSRadio' /bin/sh -c "cd /tmp; rm playlist2.m3u; wget 'http://www.beosradio.com/playlist2.m3u'; xffmpeg -f mp3 -i `cat /tmp/playlist2.m3u` ~/Desktop/beosradio.mp3; mimeset ~/Desktop/beosradio.mp3"
(all on one line :)
[2]
cvs -d:pserver::/cvsroot/ffmpeg login cvs -z3 -d:pserver::/cvsroot/ffmpeg co ffmpeg
./configure --enable-shared
make
make install
If you have liblame and liba52 installed use this for configure:
./configure --enable-mp3lame --enable-a52bin --enable-shared
[3]
Here encoding to mpeg audio layer 2: screenshot
Just create a FFMpeg text file in SoundPlay/Plugins/(LiveEncoder) with this line:
/boot/home/config/bin/ffmpeg -f wav -i pipe: -f mp2 pipe:
A better config file should be included in the next release of SoundPlay I think =)
There it was. A good read if i may say so, quite interesting. Thanks François and keep up the good work.
|