Page 1 of 1

Extracting screenshots from DVB TS stream

Posted: 15 Nov 2020 12:09
by funa
I'm trying to extarct screenshots of a specific TV program from a captured DVB-T mpeg stream.
I'm using Raspberry Pi running Raspberry Pi OS and VLC media player 3.0.11.

I tried with this command line:

Code: Select all

cvlc capture.ts --program=1 --intf=dummy --vout=dummy --aout=dummy --no-audio --video-filter=scene --scene-format=png --scene-ratio=20 --scene-path=/home/pi --scene-prefix=pid_test -vv vlc://quit
but I got a lot of errors and no images.

This is the captured TS stream:
http://www.embedupload.com/?d=0SKZYIGSVU

This is the console output:
https://pastebin.com/ZMRTeyT3

Please suggest the right settings to extract screenshots of a specific program in the stream.

Thanks.

Re: Extracting screenshots from DVB TS stream

Posted: 01 Dec 2020 17:18
by acffilterece
To my (admittedly limited) knowledge, you wouldn't want to use a video player to extract frames from a video stream. I suggest you use FFmpeg instead:

Code: Select all

mkdir frames; ffmpeg -i capture.ts frames/frame%05d.png
. This may not be the best way to go about this, but it should fit the purpose better.

Re: Extracting screenshots from DVB TS stream

Posted: 01 Dec 2020 18:15
by funa
Thank you!

This is exactly what I did and it works fine.