VideoHelp Forum
+ Reply to Thread
Results 1 to 15 of 15
Thread
  1. yt-dlp --list-formats --allow-unplayable-formats https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/4276901731001/0...I2MDkwZA%3D%3D

    It has 1080P, 720P etc, I can download and decrypt it etc. I have no issues in getting key. I just need help to be able to download without using id, can I use resolution instead? If so what is the format of yt-dlp command. If also saves the video file and audio file as manifest.mp4 and manifest.m4a, can I change the file name that is saved. What is the command?

    yt-dlp -f 2e6e3634-2fb3-4975-a696-eea402e78c49 --allow-unplayable-formats https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/4276901731001/0...I2MDkwZA%3D%3D

    this is the command I use instead of the '2e6e3634-2fb3-4975-a696-eea402e78c49' can I use resolution.
    Quote Quote  
  2. Code:
    yt-dlp --allow-u -f "bv[height<=720]" "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/4276901731001/0b3710e7-7619-4a44-af80-50836870ba4b/6s/manifest.mpd?fastly_token=NjNkOTY1MGZfODVkNDVhZGExOWY4NTg5NzVmYzliOGY4M2ExZGJkY2UyNGFkZjJmZjA5ZDhiODRmZGIxOWQ3ODljNjI2MDkwZA%3D%3D" -o title.mp4
    This will allow you to choose resolution and title of video.
    Quote Quote  
  3. Originally Posted by larits View Post
    Code:
    yt-dlp --allow-u -f "bv[height<=720]" "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/4276901731001/0b3710e7-7619-4a44-af80-50836870ba4b/6s/manifest.mpd?fastly_token=NjNkOTY1MGZfODVkNDVhZGExOWY4NTg5NzVmYzliOGY4M2ExZGJkY2UyNGFkZjJmZjA5ZDhiODRmZGIxOWQ3ODljNjI2MDkwZA%3D%3D" -o title.mp4
    This will allow you to choose resolution and title of video.
    Wow that works, but how do I download the audio file since it has no resolution.

    58b8e1e8-8984-487d-8661-07a5fc7238f0 Ext = m4a Resolution = audio only │ TBR = 84k dash │ Vid Codec = audio only Acodec= mp4a.40.2 ABR= 84k ASR= 22050Hz [en] DASH audio, m4a_dash

    These values keep changing for different mpds, so how do I get the best audio without the id?
    Quote Quote  
  4. Code:
    yt-dlp --allow-u -f "bv*[height<=720]+ba/b"
    This selects best video with a maximum of 720p and best audio.
    Quote Quote  
  5. I figured it out, thanks! yt-dlp --allow-u -f "ba[tbr<=192]" "https://manifest.prod.boltdns.net/manifest/v1/dash/live-baseurl/bccenc/4276901731001/30c4dfd5-7b70-44d6-9147-2ab3da354d1f/6s/manifest.mpd?fastly_token=NjNkOTNlMzZfMzQ4MjYzODc0 YjRhYzNmNhY2M1OTc0MTM5OTdhYTNlMGZiYzJhZjA0MTg1NzJl OGVmYQ%3D%3D" -o title.m4a

    This works!
    Quote Quote  
  6. Great! Nice work
    Quote Quote  
  7. Originally Posted by larits View Post
    Code:
    yt-dlp --allow-u -f "bv*[height<=720]+ba/b"
    This selects best video with a maximum of 720p and best audio.
    Both audio and video can be downloaded in one go? Does it return two files? title.mp4 title.m4a? I get error 'ERROR: Fixed output name but more than one file to download: title.mp4'
    Quote Quote  
  8. Originally Posted by Sadomasochist View Post
    Originally Posted by larits View Post
    Code:
    yt-dlp --allow-u -f "bv*[height<=720]+ba/b"
    This selects best video with a maximum of 720p and best audio.
    Both audio and video can be downloaded in one go? Does it return two files? title.mp4 title.m4a? I get error 'ERROR: Fixed output name but more than one file to download: title.mp4'
    Yeah, it'll download both video and audio in one go. But since it's two files, you can't make the output the same for both. You need to use something like
    Code:
     -o "title.%(ext)s"
    Check out https://github.com/yt-dlp/yt-dlp#output-template for more info.
    Quote Quote  
  9. Originally Posted by larits View Post
    Originally Posted by Sadomasochist View Post
    Originally Posted by larits View Post
    Code:
    yt-dlp --allow-u -f "bv*[height<=720]+ba/b"
    This selects best video with a maximum of 720p and best audio.
    Both audio and video can be downloaded in one go? Does it return two files? title.mp4 title.m4a? I get error 'ERROR: Fixed output name but more than one file to download: title.mp4'
    Yeah, it'll download both video and audio in one go. But since it's two files, you can't make the output the same for both. You need to use something like
    Code:
     -o "title.%(ext)s"
    Check out https://github.com/yt-dlp/yt-dlp#output-template for more info.
    Thank you so much for your help, appreciate it, that code works but it has one issue. The output title name is something like title.f4db67460-6e4a-4801-af86-f4f6b66bf1fb.m4a and title.f4db67460-6e4a-4801-af86-f4f6b66bf1fb.mp4 how do I delete the extra strings?
    Quote Quote  
  10. Yes, change the + to a , in the selection in order to tell yt-dlp that they should be separate files. Like this:

    Code:
    yt-dlp --allow-u -f "bv*[height<=720],ba/b" "URL" -o "title.%(ext)s"
    If you need to specify extension, you can use this:

    Code:
    yt-dlp --allow-u -f "bv*[height<=720][ext=mp4],ba[ext=m4a]/b" "URL" -o "title.%(ext)s"
    Quote Quote  
  11. Originally Posted by larits View Post
    Yes, change the + to a , in the selection in order to tell yt-dlp that they should be separate files. Like this:

    Code:
    yt-dlp --allow-u -f "bv*[height<=720],ba/b" "URL" -o "title.%(ext)s"
    If you need to specify extension, you can use this:

    Code:
    yt-dlp --allow-u -f "bv*[height<=720][ext=mp4],ba[ext=m4a]/b" "URL" -o "title.%(ext)s"
    Thank you, that solves!
    Quote Quote  
  12. Hi, I need one more help. I am trying to get subtitles from a .m3u8 link and it is .vtt and I convert it to srt using yt-dlp and download it using this command. yt-dlp.exe --write-subs --sub-langs en --skip-download --convert-subtitles srt "https://cdn-videos.domestika.org/videos/000/052/420/f49793bbfce9437e16d0202038b1bb27/master.m3u8?1674205181" -o junk

    It downloads the sub titles as junk.en.srt can I just download it as junk.srt, When I type junk.srt it downloads junk.srt.en.srt, so I tried "junk.%(ext)s" it gives junk.en.srt again. So any suggestion?
    Quote Quote  
  13. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by Sadomasochist View Post
    Hi, I need one more help. I am trying to get subtitles from a .m3u8 link and it is .vtt and I convert it to srt using yt-dlp and download it using this command. yt-dlp.exe --write-subs --sub-langs en --skip-download --convert-subtitles srt "https://cdn-videos.domestika.org/videos/000/052/420/f49793bbfce9437e16d0202038b1bb27/master.m3u8?1674205181" -o junk

    It downloads the sub titles as junk.en.srt can I just download it as junk.srt, When I type junk.srt it downloads junk.srt.en.srt, so I tried "junk.%(ext)s" it gives junk.en.srt again. So any suggestion?
    yt-dlp is fine in many cases for downloading and converting subtitles for srt, as long as there are no unexpected blank lines in the webvtt file.

    But, subtitleedit is the better option
    download the webvtt(.vtt) file with yt-dlp and convert the to srt
    Code:
    subtitleedit /convert <downloaded.vtt> subrip
    Quote Quote  
  14. Yes downloading individually is not an issue, I can download it using IDM all fine, just trying to automate the process! why I require that in yt-dlp! It seems editing the utils.py and adding these lines fix it

    def subtitles_filename(filename, sub_lang, sub_format, expected_real_ext=None):
    + if sub_lang == "en":
    + return replace_extension(filename, sub_format, expected_real_ext)
    return replace_extension(filename, sub_lang + '.' + sub_format, expected_real_ext)

    But it only works for english subs and need to compile for different language, the better way is to use powershell and rename it globally in the download folder
    Quote Quote  
  15. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    +if sub_lang == "en":
    At a guess, changing the "en" to a different language code might be the solution.
    But you can automate using both yt-dlp and subtitleedit, if you're canny enough to edit the util.py in yt-dlp's source code surely scripting out a bash or bat script will be just as easy.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!