[FFmpeg-user] Streaming to ustream/twitch from Raspberry Pi

Lou lou at lrcd.com
Thu Feb 19 21:18:00 CET 2015


On Thu, 19 Feb 2015 13:21:03 +0000
Matt Conway <conwayxd at gmail.com> wrote:

> pi at raspberrypi /usr/src/ffmpeg $ ffmpeg -i rtsp://
> root:FishAxisFood12 at 192.168.0.4/axis-media/media.amp -an -r 30 -f flv
> rtmp://ustreamurl

Are you intending to re-encode? Do you not want to stream copy instead?
http://ffmpeg.org/ffmpeg.html#Stream-copy

>   configuration: --arch=armel --target-os=linux --enable-gpl
> --enable-libx264 --enable-nonfree

--enable-nonfree is superfluous here since you did not enable any
external libraries that do require it.

> Output #0, flv, to 'rtmp://ustreamurl:
>   Metadata:
>     title           : Media Presentation
>     encoder         : Lavf56.22.100
>     Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p,
> 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 30 fps, 1k tbn, 30 tbc

Do you really want to be using flv1 as the encoder? It's old and crappy.

Also, I am not familiar with your device, but can it even handle
encoding 1280x720 at your desired frame rate (with libx264)?


More information about the ffmpeg-user mailing list