I'm still new to all of this so here goes: I have a script
yt-dlp -x --audio-format opus --audio-quality 0 --split-chapters -o "C:/Users/User/Music/YouTube Music/%(uploader)s/%(playlist_index)s - %(title)s/%(section_number)s - %(section_title)s.%(ext)s"
here is the issue's I'm having:
I have tried this script with a playlist I made and it did not separate the videos with chapters into chapters but the 2 songs without chapters still got there own folders. And the file naming was "NA-NA.opus" as well. So I have a description below of what I'm trying to do.
Example if I download a YouTuber channel and there are 100 videos and 15 videos have chapters it should have 1 main folder and then inside the main folder should be (15) folder for each video with chapters and inside each chapter there should be multiple opus files each one titled the name of the chapter or something like "Video Name - Chapter Name" and then I can just use a file editor later and remove all "Video Name - " later like with "Bulk Renamer Utility".
And all (85) other songs should be left alone inside the main folder named after the Uploader. And there names should be the same as the video names.
I hope someone here can help me with my issue.
When I asked on Google Search it said maybe the Chapters had not been split because YouTube was not chaptering the video correctly. But under the video information there was time stamps for all (5) chapters for the video I was trying to break into (5) different audio files. So I don't know what is going on. I think the script is incorrect. I even tried a different video and I went directly to the video playing and seen the switch chapter button under the video as well as the time stamps in the description area and used that videos URL and still it dose not work. I think I have made the script incorrectly. And needing some help fixing it please.
+ Reply to Thread
Results 1 to 2 of 2
-
-
Could this be simply because you didn't double the “%” signs in the .bat script? (Yes, even those used to identify yt-dlp's templates, in the command prompt / CMD console it's “%(whatever)s” but in a .bat script it has to be “%%(whatever)s”.)
You can check the output of each template by writing a test script with something like:
Not sure at which point you specify a link for the yt-dlp command.Code:set /P link= yt-dlp %link% --print %%(uploader)s --print %%(playlist_index)s --print %%(title)s --print %%(section_number)s --print %%(section_title)s --print %%(ext)s
Never used -x, apparently it's meant to extract the audio, and with “--audio-format opus --audio-quality 0” it chooses the same stream as “-f 251”, except it's saved with no extra container (which would be WEBM by default in that case).
Code:W:\>yt-dlp -F 9mwokiKf4QE [youtube] Extracting URL: 9mwokiKf4QE [youtube] 9mwokiKf4QE: Downloading webpage [youtube] 9mwokiKf4QE: Downloading android vr player API JSON [youtube] 9mwokiKf4QE: Downloading web player API JSON [youtube] 9mwokiKf4QE: Downloading web safari player API JSON [info] Available formats for 9mwokiKf4QE: ID EXT RESOLUTION FPS CH | FILESIZE TBR PROTO | VCODEC VBR ACODEC ABR ASR MORE INFO ------------------------------------------------------------------------------------------------------------------- sb2 mhtml 48x27 5 | mhtml | images storyboard sb1 mhtml 80x45 1 | mhtml | images storyboard sb0 mhtml 160x90 1 | mhtml | images storyboard 139 m4a audio only 2 | 127.38KiB 49k https | audio only mp4a.40.5 49k 22k [en] low, m4a_dash 140 m4a audio only 2 | 335.43KiB 130k https | audio only mp4a.40.2 130k 44k [en] medium, m4a_dash 251 webm audio only 2 | 258.89KiB 101k https | audio only opus 101k 48k [en] medium, webm_dash 160 mp4 256x144 24 | 256.50KiB 100k https | avc1.4d400c 100k video only 144p, mp4_dash 134 mp4 640x360 24 | 967.05KiB 375k https | avc1.4d401e 375k video only 360p, mp4_dash 18 mp4 640x360 24 2 | ~ 1.27MiB 505k https | avc1.42001E mp4a.40.2 44k [en] 360p 136 mp4 1280x720 24 | 3.57MiB 1418k https | avc1.64001f 1418k video only 720p, mp4_dash W:\>yt-dlp -x --audio-format opus --audio-quality 0 9mwokiKf4QE [youtube] Extracting URL: 9mwokiKf4QE [youtube] 9mwokiKf4QE: Downloading webpage [youtube] 9mwokiKf4QE: Downloading android vr player API JSON [youtube] 9mwokiKf4QE: Downloading web player API JSON [youtube] 9mwokiKf4QE: Downloading web safari player API JSON [info] 9mwokiKf4QE: Downloading 1 format(s): 251 [download] Destination: Dexter - FUUUUUUUUUUUUUUCK! [9mwokiKf4QE].webm [download] 100% of 258.89KiB in 00:00:00 at 811.56KiB/s [ExtractAudio] Destination: Dexter - FUUUUUUUUUUUUUUCK! [9mwokiKf4QE].opus Deleting original file Dexter - FUUUUUUUUUUUUUUCK! [9mwokiKf4QE].webm (pass -k to keep) W:\>yt-dlp -f 251 9mwokiKf4QE [youtube] Extracting URL: 9mwokiKf4QE [youtube] 9mwokiKf4QE: Downloading webpage [youtube] 9mwokiKf4QE: Downloading android vr player API JSON [youtube] 9mwokiKf4QE: Downloading web player API JSON [youtube] 9mwokiKf4QE: Downloading web safari player API JSON [info] 9mwokiKf4QE: Downloading 1 format(s): 251 [download] Destination: Dexter - FUUUUUUUUUUUUUUCK! [9mwokiKf4QE].webm [download] 100% of 258.89KiB in 00:00:00 at 914.80KiB/s
Similar Threads
-
Download youtube with yt-dlp
By axnspain in forum Video Streaming DownloadingReplies: 9Last Post: 17th Feb 2026, 17:27 -
Downloading a movie from YouTube with yt-dlp
By CrymanChen in forum Video Streaming DownloadingReplies: 0Last Post: 17th Jun 2023, 04:14 -
Language code for subtitles in Python script for yt-dlp
By Pavel_47 in forum Video Streaming DownloadingReplies: 15Last Post: 16th Feb 2023, 08:17 -
why this link not working on yt-dlp/youtube-dl
By DonSeenu in forum Video Streaming DownloadingReplies: 9Last Post: 5th Aug 2022, 02:50 -
Youtube-dl and Youtube-dlp no longer work with nbc. Help with dl this link?
By PennyHartz in forum Video Streaming DownloadingReplies: 27Last Post: 30th Dec 2021, 01:59



Quote