youtube-dl, how to write all subs of a youtube playlist to ONE single file? The Next CEO of Stack OverflowHow to download portion of video with youtube-dl command?Play youtube playlist with youtube-dl with shuffling or repeatHow to enable YouTube autoplay with youtube-dl & mpv?How to download portion of video with youtube-dl command? (2)How to download all videos frome a youtube channel whose name contains a string?youtube-dl not downloading the whole playlistHow do i download videos which have duration more than certain time( like 10 minutes ) from youtube playlist using youtube-dl?how to download with youtube-dl without mergingyoutube-dl delete files that are no longer in a playlistDownloading a playlist youtube-dl

pgfplots: How to draw a tangent graph below two others?

Why was Sir Cadogan fired?

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

How to implement Comparable so it is consistent with identity-equality

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

That's an odd coin - I wonder why

Prodigo = pro + ago?

Is it a bad idea to plug the other end of ESD strap to wall ground?

Is it OK to decorate a log book cover?

Does int main() need a declaration on C++?

Upgrading From a 9 Speed Sora Derailleur?

Can this transistor (2n2222) take 6V on emitter-base? Am I reading datasheet incorrectly?

Can you teleport closer to a creature you are Frightened of?

Is this a new Fibonacci Identity?

How seriously should I take size and weight limits of hand luggage?

Early programmable calculators with RS-232

Does Germany produce more waste than the US?

Another proof that dividing by 0 does not exist -- is it right?

Calculating discount not working

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Is a linearly independent set whose span is dense a Schauder basis?

Avoiding the "not like other girls" trope?

What happens if you break a law in another country outside of that country?

Can I cast Thunderwave and be at the center of its bottom face, but not be affected by it?



youtube-dl, how to write all subs of a youtube playlist to ONE single file?



The Next CEO of Stack OverflowHow to download portion of video with youtube-dl command?Play youtube playlist with youtube-dl with shuffling or repeatHow to enable YouTube autoplay with youtube-dl & mpv?How to download portion of video with youtube-dl command? (2)How to download all videos frome a youtube channel whose name contains a string?youtube-dl not downloading the whole playlistHow do i download videos which have duration more than certain time( like 10 minutes ) from youtube playlist using youtube-dl?how to download with youtube-dl without mergingyoutube-dl delete files that are no longer in a playlistDownloading a playlist youtube-dl










2















I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos.



I want all the subs to be written in a single *.txt file so that I can then edit it and print-it-to-pdf format (with evince), also applying the appropriate page numbering/header/footer.



I tried the following:



youtube-dl --skip-download --write-sub --playlist-items 6-10 <PLAYLIST-URL> >> all-subs.txt


This however only wrote the 'verbose' output to all-subs.txt and just downloaded the *.vtt format subs (I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved).










share|improve this question




























    2















    I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos.



    I want all the subs to be written in a single *.txt file so that I can then edit it and print-it-to-pdf format (with evince), also applying the appropriate page numbering/header/footer.



    I tried the following:



    youtube-dl --skip-download --write-sub --playlist-items 6-10 <PLAYLIST-URL> >> all-subs.txt


    This however only wrote the 'verbose' output to all-subs.txt and just downloaded the *.vtt format subs (I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved).










    share|improve this question


























      2












      2








      2








      I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos.



      I want all the subs to be written in a single *.txt file so that I can then edit it and print-it-to-pdf format (with evince), also applying the appropriate page numbering/header/footer.



      I tried the following:



      youtube-dl --skip-download --write-sub --playlist-items 6-10 <PLAYLIST-URL> >> all-subs.txt


      This however only wrote the 'verbose' output to all-subs.txt and just downloaded the *.vtt format subs (I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved).










      share|improve this question
















      I'm on Fedora 28 OS and have youtube-dl version 2019.03.18 and I wanted to download all the subs and only the subs of a Crashcourse playlist off of youtube, consisting of 45 videos.



      I want all the subs to be written in a single *.txt file so that I can then edit it and print-it-to-pdf format (with evince), also applying the appropriate page numbering/header/footer.



      I tried the following:



      youtube-dl --skip-download --write-sub --playlist-items 6-10 <PLAYLIST-URL> >> all-subs.txt


      This however only wrote the 'verbose' output to all-subs.txt and just downloaded the *.vtt format subs (I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved).







      troubleshooting youtube-dl video-subtitles






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      Rui F Ribeiro

      41.8k1483142




      41.8k1483142










      asked 2 days ago









      WobblyWindowsWobblyWindows

      2451213




      2451213




















          1 Answer
          1






          active

          oldest

          votes


















          1
















          It seems that youtube-dl doesn't support such feature, but you can use cat to concatenate all the downloaded files:



          $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY' 'https://www.youtube.com/watch?v=w3_0x6oaDmI'
          [youtube] -5wpm-gesOY: Downloading webpage
          [youtube] -5wpm-gesOY: Downloading video info webpage
          [info] Writing video subtitles to: 00001.en-GB.vtt
          [youtube] w3_0x6oaDmI: Downloading webpage
          [youtube] w3_0x6oaDmI: Downloading video info webpage
          [info] Writing video subtitles to: 00002.en.vtt




          $ cat ./* > all-subs.vtt


          Note that %(autonumber)s is needed to concatenate the files in order. When downloading from playlists, you may use %(playlist_index)s instead.





          I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved




          While it's possible to request a specific format using the --sub-format option, please note that the availability of such format depends on the website. YouTube only offers ttml and vtt files, as far as I can tell (and I'm able to download subtitles in both formats):



          $ youtube-dl --list-subs 'https://www.youtube.com/watch?v=-5wpm-gesOY'
          ...
          Available subtitles for -5wpm-gesOY:
          Language formats
          en-GB vtt, ttml
          ru vtt, ttml
          fr vtt, ttml
          ...




          $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'vtt' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
          [youtube] -5wpm-gesOY: Downloading webpage
          [youtube] -5wpm-gesOY: Downloading video info webpage
          [info] Writing video subtitles to: 00001.en-GB.vtt




          $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'ttml' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
          [youtube] -5wpm-gesOY: Downloading webpage
          [youtube] -5wpm-gesOY: Downloading video info webpage
          [info] Writing video subtitles to: 00001.en-GB.ttml





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509610%2fyoutube-dl-how-to-write-all-subs-of-a-youtube-playlist-to-one-single-file%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1
















            It seems that youtube-dl doesn't support such feature, but you can use cat to concatenate all the downloaded files:



            $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY' 'https://www.youtube.com/watch?v=w3_0x6oaDmI'
            [youtube] -5wpm-gesOY: Downloading webpage
            [youtube] -5wpm-gesOY: Downloading video info webpage
            [info] Writing video subtitles to: 00001.en-GB.vtt
            [youtube] w3_0x6oaDmI: Downloading webpage
            [youtube] w3_0x6oaDmI: Downloading video info webpage
            [info] Writing video subtitles to: 00002.en.vtt




            $ cat ./* > all-subs.vtt


            Note that %(autonumber)s is needed to concatenate the files in order. When downloading from playlists, you may use %(playlist_index)s instead.





            I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved




            While it's possible to request a specific format using the --sub-format option, please note that the availability of such format depends on the website. YouTube only offers ttml and vtt files, as far as I can tell (and I'm able to download subtitles in both formats):



            $ youtube-dl --list-subs 'https://www.youtube.com/watch?v=-5wpm-gesOY'
            ...
            Available subtitles for -5wpm-gesOY:
            Language formats
            en-GB vtt, ttml
            ru vtt, ttml
            fr vtt, ttml
            ...




            $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'vtt' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
            [youtube] -5wpm-gesOY: Downloading webpage
            [youtube] -5wpm-gesOY: Downloading video info webpage
            [info] Writing video subtitles to: 00001.en-GB.vtt




            $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'ttml' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
            [youtube] -5wpm-gesOY: Downloading webpage
            [youtube] -5wpm-gesOY: Downloading video info webpage
            [info] Writing video subtitles to: 00001.en-GB.ttml





            share|improve this answer



























              1
















              It seems that youtube-dl doesn't support such feature, but you can use cat to concatenate all the downloaded files:



              $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY' 'https://www.youtube.com/watch?v=w3_0x6oaDmI'
              [youtube] -5wpm-gesOY: Downloading webpage
              [youtube] -5wpm-gesOY: Downloading video info webpage
              [info] Writing video subtitles to: 00001.en-GB.vtt
              [youtube] w3_0x6oaDmI: Downloading webpage
              [youtube] w3_0x6oaDmI: Downloading video info webpage
              [info] Writing video subtitles to: 00002.en.vtt




              $ cat ./* > all-subs.vtt


              Note that %(autonumber)s is needed to concatenate the files in order. When downloading from playlists, you may use %(playlist_index)s instead.





              I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved




              While it's possible to request a specific format using the --sub-format option, please note that the availability of such format depends on the website. YouTube only offers ttml and vtt files, as far as I can tell (and I'm able to download subtitles in both formats):



              $ youtube-dl --list-subs 'https://www.youtube.com/watch?v=-5wpm-gesOY'
              ...
              Available subtitles for -5wpm-gesOY:
              Language formats
              en-GB vtt, ttml
              ru vtt, ttml
              fr vtt, ttml
              ...




              $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'vtt' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
              [youtube] -5wpm-gesOY: Downloading webpage
              [youtube] -5wpm-gesOY: Downloading video info webpage
              [info] Writing video subtitles to: 00001.en-GB.vtt




              $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'ttml' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
              [youtube] -5wpm-gesOY: Downloading webpage
              [youtube] -5wpm-gesOY: Downloading video info webpage
              [info] Writing video subtitles to: 00001.en-GB.ttml





              share|improve this answer

























                1












                1








                1









                It seems that youtube-dl doesn't support such feature, but you can use cat to concatenate all the downloaded files:



                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY' 'https://www.youtube.com/watch?v=w3_0x6oaDmI'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.vtt
                [youtube] w3_0x6oaDmI: Downloading webpage
                [youtube] w3_0x6oaDmI: Downloading video info webpage
                [info] Writing video subtitles to: 00002.en.vtt




                $ cat ./* > all-subs.vtt


                Note that %(autonumber)s is needed to concatenate the files in order. When downloading from playlists, you may use %(playlist_index)s instead.





                I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved




                While it's possible to request a specific format using the --sub-format option, please note that the availability of such format depends on the website. YouTube only offers ttml and vtt files, as far as I can tell (and I'm able to download subtitles in both formats):



                $ youtube-dl --list-subs 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                ...
                Available subtitles for -5wpm-gesOY:
                Language formats
                en-GB vtt, ttml
                ru vtt, ttml
                fr vtt, ttml
                ...




                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'vtt' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.vtt




                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'ttml' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.ttml





                share|improve this answer















                It seems that youtube-dl doesn't support such feature, but you can use cat to concatenate all the downloaded files:



                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY' 'https://www.youtube.com/watch?v=w3_0x6oaDmI'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.vtt
                [youtube] w3_0x6oaDmI: Downloading webpage
                [youtube] w3_0x6oaDmI: Downloading video info webpage
                [info] Writing video subtitles to: 00002.en.vtt




                $ cat ./* > all-subs.vtt


                Note that %(autonumber)s is needed to concatenate the files in order. When downloading from playlists, you may use %(playlist_index)s instead.





                I don't know why youtube-dl won't download in any other format, even if told to do so, a glitch still unresolved




                While it's possible to request a specific format using the --sub-format option, please note that the availability of such format depends on the website. YouTube only offers ttml and vtt files, as far as I can tell (and I'm able to download subtitles in both formats):



                $ youtube-dl --list-subs 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                ...
                Available subtitles for -5wpm-gesOY:
                Language formats
                en-GB vtt, ttml
                ru vtt, ttml
                fr vtt, ttml
                ...




                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'vtt' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.vtt




                $ youtube-dl --output '%(autonumber)s.%(ext)s' --skip-download --sub-format 'ttml' --write-sub 'https://www.youtube.com/watch?v=-5wpm-gesOY'
                [youtube] -5wpm-gesOY: Downloading webpage
                [youtube] -5wpm-gesOY: Downloading video info webpage
                [info] Writing video subtitles to: 00001.en-GB.ttml






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                nxnevnxnev

                2,9262524




                2,9262524



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509610%2fyoutube-dl-how-to-write-all-subs-of-a-youtube-playlist-to-one-single-file%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.