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

Downloaded video without sound? #353

Open
LeeDebug opened this issue Jan 3, 2025 · 6 comments
Open

Downloaded video without sound? #353

LeeDebug opened this issue Jan 3, 2025 · 6 comments

Comments

@LeeDebug
Copy link

LeeDebug commented Jan 3, 2025

I went through all the issues related to “audio” but none of them solved my problem.
I've also tried downloading a high quality mp4 file and an MP4a file with audio channels separately and dragging them into the music player at the same time, and that didn't work either.
Can I only merge them manually via ffmpeg? Is there another way?

E:\YouTube_Downloads>youtubedr info mivc1aKuFMY
Title:       【1080P 60帧】全体起立!爷童回!童年神曲樱桃小丸子OP B.B.QUEENS 《大家来跳舞》【2024B站跨年晚会单品】
Author:      最美的夜
Duration:    3m55s

+------+-----+---------+---------+----------+-----------+---------+---------------------------------+----------+
| ITAG | FPS |  VIDEO  |  AUDIO  |  AUDIO   | SIZE [MB] | BITRATE |            MIMETYPE             | LANGUAGE |
|      |     | QUALITY | QUALITY | CHANNELS |           |         |                                 |          |
+------+-----+---------+---------+----------+-----------+---------+---------------------------------+----------+
|  299 |  60 | 1080p60 |         |        0 |     172.5 | 6145625 | video/mp4; codecs="avc1.64002A" |          |
|  298 |  60 | 720p60  |         |        0 |      99.2 | 3535408 | video/mp4; codecs="avc1.640020" |          |
|  134 |  30 | 360p    |         |        0 |      16.1 |  574394 | video/mp4; codecs="avc1.4D401E" |          |
|  160 |  30 | 144p    |         |        0 |       3.3 |  118702 | video/mp4; codecs="avc1.4D400C" |          |
|  140 |   0 |         | medium  |        2 |       3.6 |  129498 | audio/mp4; codecs="mp4a.40.2"   |          |
|  139 |   0 |         | low     |        2 |       1.4 |   48819 | audio/mp4; codecs="mp4a.40.5"   |          |
+------+-----+---------+---------+----------+-----------+---------+---------------------------------+----------+

E:\YouTube_Downloads>youtubedr download mivc1aKuFMY
2025/01/03 23:22:56 download to directory .
time=2025-01-03T23:22:56.324+08:00 level=INFO msg="Downloading video" id=mivc1aKuFMY quality=medium mimeType="video/mp4; codecs=\"avc1.4D401E\""
16.12 MiB / 16.12 MiB 100 % [==============================================================] 0s ] 2.89 GiB/s

E:\YouTube_Downloads>youtubedr download mivc1aKuFMY -q 140
2025/01/03 23:23:31 download to directory .
time=2025-01-03T23:23:31.892+08:00 level=INFO msg="Downloading video" id=mivc1aKuFMY quality=tiny mimeType="audio/mp4; codecs=\"mp4a.40.2\""
3.64 MiB / 3.64 MiB 100 % [==============================================================] 0s ] 8.36 MiB/s
@shoce
Copy link

shoce commented Jan 3, 2025

as i see, in this case there are no streams that have both video and audio, so my answer is in this case with this exact video you need to download video and audio separately and merge them with ffmpeg or another tool.

@LeeDebug
Copy link
Author

LeeDebug commented Jan 4, 2025

Are there any video resources that have both high quality video and audio? I'd like to see what info looks like

@shoce
Copy link

shoce commented Jan 4, 2025

previously most (or all) videos on youtube had a stream with 360p video and 128kbps audio.

i got bad news. i am checking now and i see that all the videos, even those which i downloaded before with 360p video and 128kbps audio in one file (stream), now they do not have any stream with video and audio together, only separate video and audio streams.

@shoce
Copy link

shoce commented Jan 4, 2025

so i guess from now separate downloading and joining the video and audio streams is needed. i have been using ffmpeg for merging, but i will try using github.com/abema/go-mp4 soon.

@shoce
Copy link

shoce commented Jan 4, 2025

some time ago most (or all) videos on youtube had at least one stream with both VideoQuality!="" and AudioChannels>0

@LeeDebug
Copy link
Author

LeeDebug commented Jan 4, 2025

previously most (or all) videos on youtube had a stream with 360p video and 128kbps audio.

i got bad news. i am checking now and i see that all the videos, even those which i downloaded before with 360p video and 128kbps audio in one file (stream), now they do not have any stream with video and audio together, only separate video and audio streams.

Sad to hear that, maybe the youtube dev team changed the logic.
That's okay though, I'll try to merge it with a new tool as well.
Thank you very much!

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

2 participants