[GH-ISSUE #94] YouTube download has bugged time #8895

Closed
opened 2026-04-24 14:56:47 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @6ojo on GitHub (Mar 10, 2023).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/94

downloaded a 31 second video. time shown in screenshot
video was unlisted
Screenshot_20230310-004540.png

Originally created by @6ojo on GitHub (Mar 10, 2023). Original GitHub issue: https://github.com/imputnet/cobalt/issues/94 downloaded a 31 second video. time shown in screenshot video was unlisted ![Screenshot_20230310-004540.png](https://user-images.githubusercontent.com/106943170/224254603-f86963e6-52a3-4f12-8181-c2a9e9aaba2b.png)
GiteaMirror added the 3rd party app support label 2026-04-24 14:56:47 -05:00
Author
Owner

@6ojo commented on GitHub (Mar 26, 2023):

downloaded a public video- same issue

<!-- gh-comment-id:1483998556 --> @6ojo commented on GitHub (Mar 26, 2023): downloaded a public video- same issue
Author
Owner

@wukko commented on GitHub (Mar 26, 2023):

hey! this issue can be fixed via simple ffmpeg command:
ffmpeg -i inputvideohere.mp4 -c copy outputvideohere.mp4

this issue is well-known and im working on an easier solution for this.

it's caused by live rendering, since cobalt can't predict what final file size will be exactly.

<!-- gh-comment-id:1484097137 --> @wukko commented on GitHub (Mar 26, 2023): hey! this issue can be fixed via simple ffmpeg command: `ffmpeg -i inputvideohere.mp4 -c copy outputvideohere.mp4` this issue is well-known and im working on an easier solution for this. it's caused by live rendering, since cobalt can't predict what final file size will be **exactly**.
Author
Owner

@SKCro commented on GitHub (Nov 27, 2023):

Correct me if I'm wrong (I'm not really sure how ffmpeg works), but can't you count the duration after it's finished rendering or something?

<!-- gh-comment-id:1827022129 --> @SKCro commented on GitHub (Nov 27, 2023): Correct me if I'm wrong (I'm not really sure how ffmpeg works), but can't you count the duration after it's finished rendering or something?
Author
Owner

@wukko commented on GitHub (Nov 27, 2023):

can't you count the duration after it's finished rendering or something

how do you expect me to edit the header that's already been sent AFTER the render is done? that's literally impossible

<!-- gh-comment-id:1827024636 --> @wukko commented on GitHub (Nov 27, 2023): > can't you count the duration after it's finished rendering or something how do you expect me to edit the header that's already been sent AFTER the render is done? that's literally impossible
Sign in to join this conversation.