I can capture with ffmpeg from a device, I can transcode the audio/video, I can stream it to ffserver.
How can I capture and stream with ffmpeg while showing locally what is captured?
Up to now I've been using VLC to capture and stream to localhost, then ffmpeg to get that stream, transcode it again, and stream to ffserver.
I'd like to do this using ffmpeg only.
Thank you.
Option A: Use
ffmpeg
with multiple outputs and a separate player:output 2: transcode and send to server
Example using
ffplay
Option B:
ffmpeg
only with OpenGL and a SDL window (requires SDL and--enable-opengl
)You can also use
tee
separately what is more error prone for me (I couldn't get aergistal's solution to work):In this case:
(Tested with
ffmpeg v:3.2.11
[current in Debian stable])