Posts: 19
Joined: Thu Dec 13, 2012 3:44 am

Video and Audio streaming

Mon Aug 04, 2014 7:42 pm

I'm trying to send a combined video and audio stream to a crtmpserver. The audio quality isn't as important as having it be low-latency and in sync. I'm close right now with this:
raspivid -t 0 -w 640 -h 480 -fps 20 -b 2000000 -o - | ffmpeg -i - -f alsa -ac 1 -i hw:0,0 -map 0:0 -map 1:0 -vcodec copy -acodec aac -b:a 20k -ar 8000 -strict -2 -f flv -metadata streamName=myStream tcp://
Is there a way to improve upon this to fix the sync/latency issues? Is the RPi capable of streaming audio and video together?

Posts: 421
Joined: Fri Jan 18, 2013 2:11 pm

Re: Video and Audio streaming

Tue Aug 05, 2014 3:16 pm

Capture from v4l2 driver. The driver send timestamped frames and ffmpeg can sync using these.

Return to “Camera board”