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

Selected MP4 Format, but downloading in webm #672

Open
rebeltaz opened this issue Dec 20, 2024 · 4 comments
Open

Selected MP4 Format, but downloading in webm #672

rebeltaz opened this issue Dec 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rebeltaz
Copy link

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?

Ubuntu Linux 22.04 LTS

What version of Tartube are you using?

v2.5.059

If your bug report is "I can't download this video", please provide a link to the video

In Classic Mode, I have selected MP4 as the desired Format, 720p as the desired Quality, and "Download in the Format" selected. When I download a video from youtube, though, it ALWAYS downloads in webm format instead. I don't know if this helps or not, but this is the output of a direct (in terminal) manual download of that link:

[youtube] Extracting URL: https://www.youtube.com/watch?v=LeGQKP46O5k
[youtube] LeGQKP46O5k: Downloading webpage
[youtube] LeGQKP46O5k: Downloading ios player API JSON
[youtube] LeGQKP46O5k: Downloading mweb player API JSON
[youtube] LeGQKP46O5k: Downloading m3u8 information
[info] Testing format 616
[info] LeGQKP46O5k: Downloading 1 format(s): 616+251
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 143
[download] Destination: Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman [LeGQKP46O5k].f616.mp4
[download] 100% of  204.54MiB in 00:02:14 at 1.52MiB/s
[download] Destination: Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman [LeGQKP46O5k].f251.webm
[download] 100% of   10.38MiB in 00:00:04 at 2.37MiB/s
[Merger] Merging formats into "Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman [LeGQKP46O5k].webm"
Deleting original file Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman [LeGQKP46O5k].f616.mp4 (pass -k to keep)
Deleting original file Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman [LeGQKP46O5k].f251.webm (pass -k to keep)

What's weird is that yt-dlp IS downloading the video as an MP4 (or so it looks like), but even when that is through, I'm still left with a webm and ONLY a webm. 🤷‍♂️

@rebeltaz rebeltaz added the bug Something isn't working label Dec 20, 2024
@axcore
Copy link
Owner

axcore commented Dec 20, 2024

Please repeat that test, but this time include the yellow text at the top of the Output tab.

@rebeltaz
Copy link
Author

OK... so that was the output when I ran the command in a linux terminal. When I run tartube with that link, apparently, I didn't wait long enough. It seems to be converting the file from webm to mp4, despite me specifying that I want it DOWNLOADED in that format, and warning me that if it's not available in that format, the download will fail.

/home/derek/.local/bin/yt-dlp --newline -i --match-filter !is_live --hls-prefer-native --cookies /mnt/multimedia/YouTubeSubs/cookies.txt -f bestvideo[height<=?720]+bestaudio/best[height<=?720] --recode-video mp4 --output /home/derek/videos/%(title)s.%(ext)s --ffmpeg-location /usr/bin/ffmpeg https://www.youtube.com/watch?v=LeGQKP46O5k
[youtube] Extracting URL: https://www.youtube.com/watch?v=LeGQKP46O5k
[youtube] LeGQKP46O5k: Downloading webpage
[youtube] LeGQKP46O5k: Downloading ios player API JSON
[youtube] LeGQKP46O5k: Downloading mweb player API JSON
[youtube] LeGQKP46O5k: Downloading m3u8 information
[info] LeGQKP46O5k: Downloading 1 format(s): 247+251
[download] Destination: /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.f247.webm
[download] 100% of   41.58MiB in 00:00:11 at 3.47MiB/s
[download] Destination: /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.f251.webm
[download] 100% of   10.38MiB in 00:00:02 at 3.65MiB/s
[Merger] Merging formats into "/home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.webm"
Deleting original file /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.f251.webm (pass -k to keep)
Deleting original file /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.f247.webm (pass -k to keep)
[VideoConvertor] Converting video from webm to mp4; Destination: /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.mp4
Deleting original file /home/derek/videos/Disturbing Rise of Young People Approving of Luigi Mangione Actions Against CEO, w⧸ Justine Bateman.webm (pass -k to keep)

image

@axcore
Copy link
Owner

axcore commented Dec 20, 2024

The "Download in this format" box seems to be broken. I suggest downloading in the Videos tab until I can fix it.

@rebeltaz
Copy link
Author

Ah. Thank you. I appreciate it.

@axcore axcore reopened this Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants