[FFmpeg-user] live stream - get data from multimedia filter continuously

Thomas Seilund tps at netmaster.dk
Sun May 12 20:13:07 EEST 2019

Hi All

I capture video stream from webcam and show video on screen.

The same stream goes through the 'metadata' multimedia filter as shown 

ffmpeg -y -f v4l2 -input_format mjpeg -s hd480 -r 30 -i /dev/video2 
-map '[X]' -pix_fmt yuv420p -f xv Title

The text file 'movement.txt' gets information about each frame. BUT data 
is written to text file 'movement.txt' buffered. Is there any way to 
write data to text file 'movement.txt' as each frame is processed?


Thomas S

More information about the ffmpeg-user mailing list