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

Video length is missing in old software after cobalt's live render #566

Open
wukko opened this issue Jun 10, 2024 · 1 comment
Open

Video length is missing in old software after cobalt's live render #566

wukko opened this issue Jun 10, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@wukko
Copy link
Member

wukko commented Jun 10, 2024

why does this happen?

to preserve privacy and maintain efficiency, cobalt merges & streams videos with ffmpeg right away, without ever storing or caching anything on disk.

as result, final file length cannot be predicted, so it's missing from headers of some downloaded files.

what's affected?

this happens only when live rendering is used, most often with youtube videos. older software (vegas pro, windows media player, default players on lower end android devices) cannot generate file length, so it's either missing or shows up as some obnoxious number like 4294967295.

what can be done about it?

at the moment, this is not something that can be fixed, as it's the nature of live rendering process.

however, in most cases, the issue can be worked around by using modern software instead. for playback, vlc media player can be used instead. other (and most accessible) playback option is the built-in media player in any modern web browser.

you can also "fix" files with missing timestamp by remuxing them with ffmpeg:

ffmpeg -i your_video_file_here.mp4 -c copy output_name_for_file.mp4

if you know how to solve this issue in cobalt's rendering pipeline, feel free to make a pull request!

previous related issues

these issues were closed in favor of this one, as they all describe the same problem, but in different apps:

@wukko wukko added bug Something isn't working help wanted Extra attention is needed labels Jun 10, 2024
@wukko wukko changed the title video length missing in old software after cobalt's live render Video length missing in old software after cobalt's live render Jun 10, 2024
@wukko wukko pinned this issue Jun 10, 2024
@wukko wukko changed the title Video length missing in old software after cobalt's live render Video length is missing in old software after cobalt's live render Jun 10, 2024
@ari-party
Copy link

I tried to replicate the described issue but I was unable to.

I downloaded 3 of the latest Fireship videos and the same for @homedesign369.
All videos showed the correct duration from ffprobe's input.duration.
And I was able to play all videos with the playback bar correctly showing the duration with Windows Media Player.

Could you possibly expand on what platforms (e.g. YouTube) this issue occurs on? And possibly link the videos for future contributors? (I won't be contributing to this issue.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants