You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to transmit live subtitles from our transcoder to GPAC using Transport Stream. Our transcoder does not support MP4 Text Stream, and from what I have read of GPAC's code, it does not support demuxing it either.
Instead of implementing the whole spec, which at the moment is overkill for my use case, I tried to mux SRT subtitles as private data in PES packets.
The Elementary Stream uses PES packets private data with a registration_descriptor for the SRT format.
Each PES packet contains one SRT event (aligned with PES start):
0
00:00:00,000 --> 00:00:01,000
This is the event zero
This is just an example. My final goal is to be able to mux the TS subtitles into a CMAF track as WebVTT for live streaming. I would like to know if something is already done in that direction (live subtitle muxing), or if the approach I'm taking makes sense, and if you could advise me on how to proceed.
The text was updated successfully, but these errors were encountered:
Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!
Detailed guidelines: https://gpac.io/bug-reporting/
I'm trying to transmit live subtitles from our transcoder to GPAC using Transport Stream. Our transcoder does not support MP4 Text Stream, and from what I have read of GPAC's code, it does not support demuxing it either.
Instead of implementing the whole spec, which at the moment is overkill for my use case, I tried to mux SRT subtitles as private data in PES packets.
The Elementary Stream uses PES packets private data with a
![image](https://private-user-images.githubusercontent.com/2498576/333246874-e39f729a-17ef-42f1-a2bf-c7a8c11f8e85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3MDY1MDQsIm5iZiI6MTcyMTcwNjIwNCwicGF0aCI6Ii8yNDk4NTc2LzMzMzI0Njg3NC1lMzlmNzI5YS0xN2VmLTQyZjEtYTJiZi1jN2E4YzExZjhlODUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MD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WQ9MCZyZXBvX2lkPTAifQ.fSy2-Ey8jDhx23vlt08NaZVMn69vUNKBgiqSAbWtG7Y)
registration_descriptor
for theSRT
format.Each PES packet contains one SRT event (aligned with PES start):
In GPAC, I managed to demux the stream in this branch: master...jadarve:gpac:NS_ts_subtitles
running a command like:
prints the following graph:
However, the generated WebVTT is not what I expected, it looks as:
where I expected lots of subtitles lines.
This is just an example. My final goal is to be able to mux the TS subtitles into a CMAF track as WebVTT for live streaming. I would like to know if something is already done in that direction (live subtitle muxing), or if the approach I'm taking makes sense, and if you could advise me on how to proceed.
The text was updated successfully, but these errors were encountered: