Extracting screenshots from DVB TS stream

*nix specific usage questions
funa
New Cone
New Cone
Posts: 5
Joined: 03 Jun 2012 22:32
Operating System: Windows, Linux

Extracting screenshots from DVB TS stream

Postby funa » 15 Nov 2020 12:09

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.
An online survey showed that 100% of people use the internet.

acffilterece
Blank Cone
Blank Cone
Posts: 15
Joined: 01 Dec 2020 15:48
Operating System: Linux

Re: Extracting screenshots from DVB TS stream

Postby acffilterece » 01 Dec 2020 17:18

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.

funa
New Cone
New Cone
Posts: 5
Joined: 03 Jun 2012 22:32
Operating System: Windows, Linux

Re: Extracting screenshots from DVB TS stream

Postby funa » 01 Dec 2020 18:15

Thank you!

This is exactly what I did and it works fine.
An online survey showed that 100% of people use the internet.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests