Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q] Audio and video re-interleaving possible? #1443

Open
hariszukanovic opened this issue Mar 25, 2024 · 2 comments
Open

[Q] Audio and video re-interleaving possible? #1443

hariszukanovic opened this issue Mar 25, 2024 · 2 comments
Labels

Comments

@hariszukanovic
Copy link

Using mediainfo tool I can see that in my input TS stream there is a "Delay relative to video: -839 ms"
... which AFAIU means simply that while reading TS packets as they come, that is the difference between the first observed PTS of the video and first observed PTS of the audio track in question.
Can tsduck be used to interleave audio and video packets found in TS input to be closer together so that the audio and video with the similar/close PTSes are outputed next to each other in the output TS stream?

mediainfo output screenshot:

Screenshot from 2024-03-25 17-30-58

@lelegard
Copy link
Member

Hi @hariszukanovic

You need a mux/remux to this and TSDuck is not a MUX. I recommend to use ffmpeg for that kind of operation.

@hariszukanovic
Copy link
Author

To my knowledge ffmpeg is not able to do this.
If you do know an example command please share to help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants