shaka-project / shaka-streamer

A simple config-file based approach to preparing streaming media, based on FFmpeg and Shaka Packager.
https://shaka-project.github.io/shaka-streamer/
Apache License 2.0
198 stars 62 forks source link

TS input autodetection fails #119

Closed kepppis closed 2 years ago

kepppis commented 2 years ago

Hello,

Looks like the steamer cannot use ts-files as input. On first test the probe failed getting/setting the framerate. I then defined the fps on input config, but then it failed to get other video properties. If I manually convert the file to mp4, it can be be used fine.

I am trying to use ffmpeg filters to burn the dvb-subtitles into the video and therefore I need to use ts as input.

mariocynicys commented 2 years ago

Running these commands (which are the commands Shaka Streamer runs when probing some media content)

ffprobe testvid1.ts -select_streams v:0 -show_entries stream=index -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams v:0 -show_entries stream=field_order -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams v:0 -show_entries stream=avg_frame_rate -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams v:0 -show_entries stream=width,height -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams a:0 -show_entries stream=index -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams a:0 -show_entries stream_tags=language -of compact=p=0:nk=1 2> /dev/null
ffprobe testvid1.ts -select_streams a:0 -show_entries stream=channels -of compact=p=0:nk=1 2> /dev/null

Gives this output

0

0

progressive

progressive

25/1

25/1

1912|800

1912|800

1

1
swe
2

2

For some reason, every output (other than the language swe) is duplicated, which causes this error. This happens with transport stream containers but not with mp4 containers.