slhck / ffmpeg-debug-qp

FFmpeg Debug Script for QP Values
Other
75 stars 24 forks source link

Request: Parameter for selecting video stream in MPEG-TS #7

Closed lars18th closed 1 year ago

lars18th commented 4 years ago

Hi,

I request if you can include a parameter for selecting the PID (I feel the most simple solution) to select a particular video stream in a MPTS.

Thank you for this interesting tool!

slhck commented 4 years ago

You are welcome to create a PR to add this functionality.

lars18th commented 4 years ago

Hi,

I put this info here only as a reference to someone that has time to implement it:

Regards.

lars18th commented 4 years ago

Hi,

With the support of the input PIPEs implemented in #22 this functionality can be obtained indirectly if you interpose some TS filter tool that selects the program you want.

For example: ffmpeg -i INPUT.ts -map 0:p:1344 -f mpegts pipe:1 | ./extract.py - INPUT.ldjson or tsp -I file INPUT.ts -P zap 1344 | ./extract.py - INPUT.ldjson

I hope it helps! :wink: