shaka-project / shaka-packager

A media packaging and development framework for VOD and Live DASH and HLS applications, supporting Common Encryption for Widevine and other DRM Systems.
https://shaka-project.github.io/shaka-packager/
Other
1.98k stars 507 forks source link

Error ingesting stream with DVBSub subtitles from a multicast source #1254

Open laxmipk opened 1 year ago

laxmipk commented 1 year ago

System info

Operating System: macOS Ventura 13.5 Shaka Packager Version:shaka-packager:latest

Issue and steps to reproduce the problem

Deployed ShakaPackager using docker from link "https://shaka-project.github.io/shaka-packager/html/docker_instructions.html"

docker run -v /Users/userabc/Documents/Demo/shaka-packager/media/:/media -it --net=host --rm google/shaka-packager

Packager Command:

Following command is executed in docker

_packager \ 'in=udp://239.0.0.1:5004,stream=audio,init_segment=audio_init.mp4,segmenttemplate=audio$Number$.m4s' \ 'in=udp://239.0.0.1:5004,stream=video,init_segment=h264_360p_init.mp4,segment_template=h264360p$Number$.m4s' \ --protection_scheme cbcs \ --enable_raw_key_encryption \ --keys label=:key_id=33333333333333333333312300004444:key=15cc53b18d424690a1021b3b8fb05212 \ --protection_systems Widevine \ --mpdoutput h264.mpd

-------------Extra Step--------------

1) UDP multicast is created from the mac host system by running vlc streaming service in loop "udp@239.0.0.1:5004 alias vlc='/Applications/VLC.app/Contents/MacOS/VLC' vlc tears-of-steal-teaser-1280-720.mp4 --sout="#std{access=udp, dst=239.0.0.1:5004}" --loop 2) Shaka packager docker is created in the same macbook host, network is mapped with "--net=host" as mentioned in guide 3) "docker ps" command gives docker running status without any open port as below

image

-------------Expected Result should be ---------

It should package the live udp multicast stream on 239.0.0.1:5004

-----------------But the Result is as per below----------

Packaging is not done, output is stuck over initialising Demuxer, Please kindly help to fix this issue.

/media # packager \

'in=udp://239.0.0.1:5004,stream=audio,init_segment=audio_init.mp4,segmenttemplate=audio$Number$.m4s' \ 'in=udp://239.0.0.1:5004,stream=video,init_segment=h264_360p_init.mp4,segment_template=h264360p$Number$.m4s' \ --protection_scheme cbcs \ --enable_raw_key_encryption \ --keys label=:key_id=33333333333333333333333300004444:key=14bb53b18d424690a1021b3b8fb05212 \ --protection_systems Widevine \ --mpd_output h264.mpd [0807/162827:INFO:demuxer.cc(89)] Demuxer::Run() on file 'udp://239.0.0.1:5004'. [0807/162827:INFO:demuxer.cc(155)] Initialize Demuxer for file 'udp://239.0.0.1:5004'.

image

ldymek commented 1 year ago

Hello,

I have the same problem if DVBSub subtitles are in Multicast source. When I block the subs it starts working:

packager in=udp://239.239.239.239:1234?reuse=1 --dump_stream_info [0821/115802:INFO:demuxer.cc(89)] Demuxer::Run() on file 'udp://239.239.239.239:1234?reuse=1'. [0821/115802:INFO:demuxer.cc(155)] Initialize Demuxer for file 'udp://239.239.239.239:1234?reuse=1'. [0821/115802:ERROR:mp2t_media_parser.cc(320)] Ignore unsupported MPEG2TS stream type 0x6 [0821/115802:WARNING:es_parser_h26x.cc(70)] Unusually large number of cached timestamps (24). [0821/115803:WARNING:es_parser_h26x.cc(70)] Unusually large number of cached timestamps (25). [0821/115803:WARNING:es_parser_h26x.cc(70)] Unusually large number of cached timestamps (26).