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

Keep timestamps from original stream #132

Open
misiek08 opened this issue Feb 6, 2023 · 2 comments
Open

Keep timestamps from original stream #132

misiek08 opened this issue Feb 6, 2023 · 2 comments

Comments

@misiek08
Copy link

misiek08 commented Feb 6, 2023

Hello!
I try to work on live streams and provide HA setup. Input is HLS/RTMP (currently HLS, because it's much easier for me).

Input config:

inputs:
  - name: https://host/hawe/test/playlist.m3u8
    media_type: video
    extra_input_args: -copyts

  - name: https://host/hawe/test/playlist.m3u8
    media_type: audio
    extra_input_args: -copyts

Pipeline config: pipeline_live_config.yaml

I've tried to add -copyts in multiple places in transcoder_node.py, it gets passed to ffmpeg, but does not work. I suspect timestamps get reset because of any of the other flags.

My goal is to run streamer on two different hosts with $Time$ in segment_template and be able to automatically failover between them. I already found, tried and have working synchronized keyframe cutting points, so that's no problem.

@misiek08
Copy link
Author

misiek08 commented Feb 6, 2023

I tried to directly run packager (without my keyframe synchronizing code applied) and ffmpeg, but resulting streams result in decode error while playing :( With shaka-streamer everything works good, so for now I'm trying to go easier way.

@misiek08
Copy link
Author

misiek08 commented Feb 7, 2023

Changing container to mpegts probably fixed one part of the issue (but caused new ones). Is it known problem with ffmpeg that it is ignoring copyts while outputting mp4 fragments?

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

No branches or pull requests

1 participant