Version 2.4 of libRTMP seems not sufficient for playing justin.tv / twitch.tv. Support for their UsherToken mechanism has been added after the 2.4 release.
I did the following on Ubuntu 12.04 to get ffmpeg to play twitch.tv:
- Code:
# Add real rtmp support to ffmpeg
sudo aptitude install libavcodec-extra-53 libavformat-extra-53
# Install librtmp0 and rtmpdump from debian testing for justin.tv/twitch.tv support
wget http://ftp.de.debian.org/debian/pool/main/r/rtmpdump/librtmp0_2.4+20111222.git4e06e21-1_amd64.deb
wget http://ftp.de.debian.org/debian/pool/main/r/rtmpdump/rtmpdump_2.4+20111222.git4e06e21-1_amd64.deb
sudo dpkg -i librtmp0_2.4+20111222.git4e06e21-1_amd64.deb
sudo dpkg -i rtmpdump_2.4+20111222.git4e06e21-1_amd64.deb
rm librtmp0_2.4+20111222.git4e06e21-1_amd64.deb
rm rtmpdump_2.4+20111222.git4e06e21-1_amd64.deb
The parameters required for playing can be found on
http://jangeldmacher.wordpress.com/2011 ... lc-player/. The parameter format for ffmpeg is different however. The following worked for me:
- Code:
rtmp://%s/%s/%s pageUrl=%s swfUrl=%s swfVfy=1 jtv=%s live=1
See the last paragraph of the description on
http://rtmpdump.mplayerhq.hu/librtmp.3.html to see how to escape the usher token properly.