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

[Youtube] Video is downloaded and then deleted #20932

Closed
DragonFury24 opened this issue May 2, 2019 · 5 comments
Closed

[Youtube] Video is downloaded and then deleted #20932

DragonFury24 opened this issue May 2, 2019 · 5 comments

Comments

@DragonFury24
Copy link

@DragonFury24 DragonFury24 commented May 2, 2019

Checklist

  • [x ] I'm reporting a broken site support issue
  • [ x] I've verified that I'm running youtube-dl version 2019.04.30
  • [x ] I've checked that all provided URLs are alive and playable in a browser
  • [x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ x] I've searched the bugtracker for similar bug reports including closed ones
  • [ x] I've read bugs section in FAQ

Verbose log

[debug] System config: [u'--write-info-json', u'-o', u'%(upload_date)s - %(title)s.%(ext)s', u'--audio-quality', u'0', u'--recode-video', u'mkv', u'--merge-output-format', u'mkv', u'--console-title', u'--write-description', u'--add-metadata', u'--write-all-thumbnails', u'--write-sub', u'--all-subs', u'--download-archive', u'000downloadArchive.txt']          [debug] User config: [u'--write-info-json', u'-o', u'%(upload_date)s - %(title)s.%(ext)s', u'--audio-quality', u'0', u'--recode-video', u'mkv', u'--merge-output-format', u'mkv', u'--console-title', u'--write-description', u'--add-metadata', u'--write-all-thumbnails', u'--write-sub', u'--all-subs', u'--download-archive', u'000downloadArchive.txt', u'-i']     [debug] Custom config: []                                                                                               [debug] Command-line args: [u'-v', u'https://www.youtube.com/channel/UCOcw7Y0nf_COZyMF-RBC5wA/videos']                  [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8                                                        [debug] youtube-dl version 2019.04.30                                                                                   [debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-48-generic-x86_64-with-Ubuntu-18.04-bionic                    [debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4                                                                       [debug] Proxy map: {}                                                                                                   [youtube:channel] UCOcw7Y0nf_COZyMF-RBC5wA: Downloading channel page                                                    [youtube:playlist] UUOcw7Y0nf_COZyMF-RBC5wA: Downloading webpage                                                        [download] Downloading playlist: Uploads from Kazuki Hayashi                                                            [youtube:playlist] playlist Uploads from Kazuki Hayashi: Downloading 4 videos                                           [download] Downloading video 1 of 4                                                                                     [youtube] 1U8Kzq0UiKo: Downloading webpage                                                                              [youtube] 1U8Kzq0UiKo: Downloading video info webpage                                                                   WARNING: video doesn't have subtitles                                                                                   [youtube] 1U8Kzq0UiKo: Downloading MPD manifest                                                                         [debug] Default format spec: bestvideo+bestaudio/best                                                                   [info] Writing video description to: 20180922 - Connections.description                                                 [info] Writing video description metadata as JSON to: 20180922 - Connections.info.json                                  [youtube] 1U8Kzq0UiKo: Downloading thumbnail ...                                                                        [youtube] 1U8Kzq0UiKo: Writing thumbnail to: 20180922 - Connections.jpg                                                 [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d54f0acead1488aa/itag/0/ei/sVvKXJDmJZPN8wSz07HwAw/playback_host/r4---sn-8xgp1vo-p5qe.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qe%2Csn-p5qlsndd/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1747500/mt/1556765501/fvip/4/ip/108.56.186.200/ipbits/0/expire/1556787217/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/8B1AE59C0DAD8A8EB86CA187086F4CACD19CB418.83669AEF5283D76120C694180C4C1B6631E8EC7E/key/yt8'         [dashsegments] Total fragments: 3                                                                                       [download] Destination: 20180922 - Connections.f299.mp4                                                                 [download] 100% of 6.32MiB in 00:00                                                                                     [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d54f0acead1488aa/itag/0/ei/sVvKXJDmJZPN8wSz07HwAw/playback_host/r4---sn-8xgp1vo-p5qe.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qe%2Csn-p5qlsndd/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1747500/mt/1556765501/fvip/4/ip/108.56.186.200/ipbits/0/expire/1556787217/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/8B1AE59C0DAD8A8EB86CA187086F4CACD19CB418.83669AEF5283D76120C694180C4C1B6631E8EC7E/key/yt8'         [dashsegments] Total fragments: 4                                                                                       [download] Destination: 20180922 - Connections.f140.m4a                                                                 [download] 100% of 167.15KiB in 00:00                                                                                   [ffmpeg] Merging formats into "20180922 - Connections.mkv"                                                              [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180922 - Connections.f299.mp4' -i 'file:20180922 - Connections.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:20180922 - Connections.temp.mkv'                     Deleting original file 20180922 - Connections.f299.mp4 (pass -k to keep)                                                Deleting original file 20180922 - Connections.f140.m4a (pass -k to keep)                                                [ffmpeg] Not converting video file 20180922 - Connections.mkv - already is in target format mkv                         [ffmpeg] Adding metadata to '20180922 - Connections.mkv'                                                                [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180922 - Connections.mkv' -c copy -metadata 'comment=' -metadata 'description=' -metadata 'artist=Kazuki Hayashi' -metadata 'title=Connections' -metadata 'date=20180922' -metadata 'purl=https://www.youtube.com/watch?v=1U8Kzq0UiKo' 'file:20180922 - Connections.temp.mkv'                 [download] Downloading video 2 of 4                                                                                     [youtube] R5MbIjoMwcE: Downloading webpage                                                                              [youtube] R5MbIjoMwcE: Downloading video info webpage                                                                   [youtube] {22} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {43} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {18} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {137} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {134} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {140} signature length 42.42, html5 player vflXZ59b4                                                          WARNING: video doesn't have subtitles                                                                                   [youtube] R5MbIjoMwcE: Downloading MPD manifest                                                                         [debug] Default format spec: bestvideo+bestaudio/best                                                                   [info] Writing video description to: 20180813 - Pommel Sequence.description                                             [info] Writing video description metadata as JSON to: 20180813 - Pommel Sequence.info.json                              [youtube] R5MbIjoMwcE: Downloading thumbnail ...                                                                        [youtube] R5MbIjoMwcE: Writing thumbnail to: 20180813 - Pommel Sequence.jpg                                             [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/47931b223a0cc1c1/itag/0/ei/tVvKXJy0As2Ahwar9KeYBw/playback_host/r6---sn-8xgp1vo-p5ql.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5ql%2Csn-p5qlsndk/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1652500/mt/1556765501/fvip/1/ip/108.56.186.200/ipbits/0/expire/1556787221/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/E925A39E238858E37DF4603D6AEB13782B2B1B74.C4918057DC42BD6F053A3BBD96EEF8D8D6550226/key/yt8'         [dashsegments] Total fragments: 5                                                                                       [download] Destination: 20180813 - Pommel Sequence.f137.mp4                                                             [download] 100% of 9.71MiB in 00:00                                                                                     [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/47931b223a0cc1c1/itag/0/ei/tVvKXJy0As2Ahwar9KeYBw/playback_host/r6---sn-8xgp1vo-p5ql.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5ql%2Csn-p5qlsndk/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1652500/mt/1556765501/fvip/1/ip/108.56.186.200/ipbits/0/expire/1556787221/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/E925A39E238858E37DF4603D6AEB13782B2B1B74.C4918057DC42BD6F053A3BBD96EEF8D8D6550226/key/yt8'         [dashsegments] Total fragments: 6                                                                                       [download] Destination: 20180813 - Pommel Sequence.f140.m4a                                                             [download] 100% of 234.46KiB in 00:00                                                                                   [ffmpeg] Merging formats into "20180813 - Pommel Sequence.mkv"                                                          [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180813 - Pommel Sequence.f137.mp4' -i 'file:20180813 - Pommel Sequence.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:20180813 - Pommel Sequence.temp.mkv'         Deleting original file 20180813 - Pommel Sequence.f137.mp4 (pass -k to keep)                                            Deleting original file 20180813 - Pommel Sequence.f140.m4a (pass -k to keep)                                            [ffmpeg] Not converting video file 20180813 - Pommel Sequence.mkv - already is in target format mkv                     [ffmpeg] Adding metadata to '20180813 - Pommel Sequence.mkv'                                                            [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180813 - Pommel Sequence.mkv' -c copy -metadata 'comment=' -metadata 'description=' -metadata 'artist=YoungBoy Never Broke Again' -metadata 'title=Villain' -metadata 'date=20180813' -metadata 'purl=https://www.youtube.com/watch?v=R5MbIjoMwcE' 'file:20180813 - Pommel Sequence.temp.mkv' [download] Downloading video 3 of 4                                                                                     [youtube] AjVGW1P7gSQ: Downloading webpage                                                                              [youtube] AjVGW1P7gSQ: Downloading video info webpage                                                                   WARNING: video doesn't have subtitles                                                                                   [youtube] AjVGW1P7gSQ: Downloading MPD manifest                                                                         [debug] Default format spec: bestvideo+bestaudio/best                                                                   [info] Writing video description to: 20180801 - Quad Twist.description                                                  [info] Writing video description metadata as JSON to: 20180801 - Quad Twist.info.json                                   [youtube] AjVGW1P7gSQ: Downloading thumbnail ...                                                                        [youtube] AjVGW1P7gSQ: Writing thumbnail to: 20180801 - Quad Twist.jpg                                                  [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/0235465b53fb8124/itag/0/ei/uFvKXKypGe7k8gTAh4r4CQ/playback_host/r6---sn-8xgp1vo-p5qe.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qe%2Csn-p5qlsnz6/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1747500/mt/1556765501/fvip/6/ip/108.56.186.200/ipbits/0/expire/1556787224/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/BE88B698D07F1F571E92C2D98FF3E575B7751B3D.6C503688F4DCC344CE9E83C75A28A372564BC274/key/yt8'         [dashsegments] Total fragments: 3                                                                                       [download] Destination: 20180801 - Quad Twist.f134.mp4                                                                  [download] 100% of 505.94KiB in 00:00                                                                                   [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/0235465b53fb8124/itag/0/ei/uFvKXKypGe7k8gTAh4r4CQ/playback_host/r6---sn-8xgp1vo-p5qe.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qe%2Csn-p5qlsnz6/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1747500/mt/1556765501/fvip/6/ip/108.56.186.200/ipbits/0/expire/1556787224/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/BE88B698D07F1F571E92C2D98FF3E575B7751B3D.6C503688F4DCC344CE9E83C75A28A372564BC274/key/yt8'         [dashsegments] Total fragments: 3                                                                                       [download] Destination: 20180801 - Quad Twist.f140.m4a                                                                  [download] 100% of 78.30KiB in 00:00                                                                                    [ffmpeg] Merging formats into "20180801 - Quad Twist.mkv"                                                               [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180801 - Quad Twist.f134.mp4' -i 'file:20180801 - Quad Twist.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:20180801 - Quad Twist.temp.mkv'                        Deleting original file 20180801 - Quad Twist.f134.mp4 (pass -k to keep)                                                 Deleting original file 20180801 - Quad Twist.f140.m4a (pass -k to keep)                                                 [ffmpeg] Not converting video file 20180801 - Quad Twist.mkv - already is in target format mkv                          [ffmpeg] Adding metadata to '20180801 - Quad Twist.mkv'                                                                 [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180801 - Quad Twist.mkv' -c copy -metadata 'comment=' -metadata 'description=' -metadata 'artist=Kazuki Hayashi' -metadata 'title=Quad Twist' -metadata 'date=20180801' -metadata 'purl=https://www.youtube.com/watch?v=AjVGW1P7gSQ' 'file:20180801 - Quad Twist.temp.mkv'                    [download] Downloading video 4 of 4                                                                                     [youtube] 1pWK8EsJNgk: Downloading webpage                                                                              [youtube] 1pWK8EsJNgk: Downloading video info webpage                                                                   [youtube] {22} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {43} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {18} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {137} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {134} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {140} signature length 42.42, html5 player vflXZ59b4                                                          WARNING: video doesn't have subtitles                                                                                   [youtube] 1pWK8EsJNgk: Downloading MPD manifest                                                                         [debug] Default format spec: bestvideo+bestaudio/best                                                                   [info] Writing video description to: 20180622 - Kazuki Hayashi Gymnastics Training.description                          [info] Writing video description metadata as JSON to: 20180622 - Kazuki Hayashi Gymnastics Training.info.json           [youtube] 1pWK8EsJNgk: Downloading thumbnail ...                                                                        [youtube] 1pWK8EsJNgk: Writing thumbnail to: 20180622 - Kazuki Hayashi Gymnastics Training.jpg                          [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d6958af04b093609/itag/0/ei/ulvKXJLCN82Rhwaw1YT4Ag/playback_host/r2---sn-8xgp1vo-p5qs.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qs%2Csn-p5qs7ned/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1615000/mt/1556765501/fvip/2/ip/108.56.186.200/ipbits/0/expire/1556787227/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/5FA2A210B29693FECFEEDD6F34AC78763B78080D.719EB5985AEDD0117474C24E77C6231D03BB6146/key/yt8'         [dashsegments] Total fragments: 37                                                                                      [download] Destination: 20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4                                          [download] 100% of 82.28MiB in 00:10                                                                                    [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d6958af04b093609/itag/0/ei/ulvKXJLCN82Rhwaw1YT4Ag/playback_host/r2---sn-8xgp1vo-p5qs.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qs%2Csn-p5qs7ned/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1615000/mt/1556765501/fvip/2/ip/108.56.186.200/ipbits/0/expire/1556787227/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/5FA2A210B29693FECFEEDD6F34AC78763B78080D.719EB5985AEDD0117474C24E77C6231D03BB6146/key/yt8'         [dashsegments] Total fragments: 39                                                                                      [download] Destination: 20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a                                          [download] 100% of 2.88MiB in 00:02                                                                                     [ffmpeg] Merging formats into "20180622 - Kazuki Hayashi Gymnastics Training.mkv"                                       [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:20180622 - Kazuki Hayashi Gymnastics Training.temp.mkv'                                                                        Deleting original file 20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4 (pass -k to keep)                         Deleting original file 20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a (pass -k to keep)                         [ffmpeg] Not converting video file 20180622 - Kazuki Hayashi Gymnastics Training.mkv - already is in target format mkv  [ffmpeg] Adding metadata to '20180622 - Kazuki Hayashi Gymnastics Training.mkv'                                         [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.mkv' -c copy -metadata 'comment=' -metadata 'album=Broad Shoulders' -metadata 'description=' -metadata 'artist=Taylor Bennett' -metadata 'title=Broad Shoulders (feat. Chance the Rapper)' -metadata 'date=20180622' -metadata 'purl=https://www.youtube.com/watch?v=1pWK8EsJNgk' 'file:20180622 - Kazuki Hayashi Gymnastics Training.temp.mkv'                           [download] Finished downloading playlist: Uploads from Kazuki Hayashi 

Description

I've had this issue happen on multiple Youtube channels while trying to archive them. This appears to occur randomly and to random videos. When I attempt to download an entire channel, I've observed that youtube-dl will download the video, the description, the thumbnail, and the json file and then once it finishes merging the video, it will delete it leaving behind only the description, the thumbnail, and the json file. I've also notice that the video will still be recorded as being already downloaded via --download-archive. Upon deleting the file that contains the video IDs, youtube-dl does detect that there the video has not been downloaded and will download it and not does delete it like it did the first time.

For the log above, I chose a small channel with only 4 videos for anyone to attempt to reproduce. The log is also for a run in which I noticed this issue. This has occured for multiple channels.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 2, 2019

As clearly seen from the log the downloading finished without any issue and does not demonstrate problem described.

@DragonFury24
Copy link
Author

@DragonFury24 DragonFury24 commented May 2, 2019

The log does indicate that the video is downloaded, however when observing the progress via file explorer, the video is downloaded and then disappears. I've been testing the options that I have one by one and I think it might be due to --add-metadata. I'm still running it more times to see it is indeed --add-metadata, but when using the options in the logs above, the issue does occur quite often.

@DragonFury24
Copy link
Author

@DragonFury24 DragonFury24 commented May 2, 2019

[debug] System config: [u'--add-metadata', u'--write-info-json', u'-o', u'%(upload_date)s - %(title)s.%(ext)s', u'--audio-quality', u'0', u'--recode-video', u'mkv', u'--merge-output-format', u'mkv', u'--console-title', u'--write-description', u'--write-all-thumbnails', u'--all-subs', u'--download-archive', u'000downloadArchive.txt']                          [debug] User config: []                                                                                                 [debug] Custom config: []                                                                                               [debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=1pWK8EsJNgk']                                      [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8                                                        [debug] youtube-dl version 2019.04.30                                                                                   [debug] Python version 2.7.15rc1 (CPython) - Linux-4.15.0-48-generic-x86_64-with-Ubuntu-18.04-bionic                    [debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4                                                                       [debug] Proxy map: {}                                                                                                   [youtube] 1pWK8EsJNgk: Downloading webpage                                                                              [youtube] 1pWK8EsJNgk: Downloading video info webpage                                                                   [youtube] {22} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {43} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {18} signature length 42.42, html5 player vflXZ59b4                                                           [youtube] {137} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {134} signature length 42.42, html5 player vflXZ59b4                                                          [youtube] {140} signature length 42.42, html5 player vflXZ59b4                                                          WARNING: video doesn't have subtitles                                                                                   [youtube] 1pWK8EsJNgk: Downloading MPD manifest                                                                         [debug] Default format spec: bestvideo+bestaudio/best                                                                   [info] Writing video description to: 20180622 - Kazuki Hayashi Gymnastics Training.description                          [info] Writing video description metadata as JSON to: 20180622 - Kazuki Hayashi Gymnastics Training.info.json           [youtube] 1pWK8EsJNgk: Downloading thumbnail ...                                                                        [youtube] 1pWK8EsJNgk: Writing thumbnail to: 20180622 - Kazuki Hayashi Gymnastics Training.jpg                          [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d6958af04b093609/itag/0/ei/PnLKXMayJIzs8gT5qrPQDw/playback_host/r2---sn-8xgp1vo-p5qs.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qs%2Csn-p5qlsndz/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1685000/mt/1556771288/fvip/2/beids/9466587/ip/108.56.186.200/ipbits/0/expire/1556792990/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/E05C8DF8C56DF30D76FAE32E8CA67CD9E1856FF7.022089AAA2172394C66F74A9792238C7642DD8A6/key/yt8'                                                                                                                   [dashsegments] Total fragments: 37                                                                                      [download] Destination: 20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4                                          [download] 100% of 82.28MiB in 00:08                                                                                    [debug] Invoking downloader on u'https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/d6958af04b093609/itag/0/ei/PnLKXMayJIzs8gT5qrPQDw/playback_host/r2---sn-8xgp1vo-p5qs.googlevideo.com/mm/31%2C29/mn/sn-8xgp1vo-p5qs%2Csn-p5qlsndz/ms/au%2Crdu/mv/m/pl/16/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1685000/mt/1556771288/fvip/2/beids/9466587/ip/108.56.186.200/ipbits/0/expire/1556792990/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/E05C8DF8C56DF30D76FAE32E8CA67CD9E1856FF7.022089AAA2172394C66F74A9792238C7642DD8A6/key/yt8'                                                                                                                   [dashsegments] Total fragments: 39                                                                                      [download] Destination: 20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a                                          [download] 100% of 2.88MiB in 00:02                                                                                     [ffmpeg] Merging formats into "20180622 - Kazuki Hayashi Gymnastics Training.mkv"                                       [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:20180622 - Kazuki Hayashi Gymnastics Training.temp.mkv'                                                                        Deleting original file 20180622 - Kazuki Hayashi Gymnastics Training.f137.mp4 (pass -k to keep)                         Deleting original file 20180622 - Kazuki Hayashi Gymnastics Training.f140.m4a (pass -k to keep)                         [ffmpeg] Not converting video file 20180622 - Kazuki Hayashi Gymnastics Training.mkv - already is in target format mkv  [ffmpeg] Adding metadata to '20180622 - Kazuki Hayashi Gymnastics Training.mkv'                                         [debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:20180622 - Kazuki Hayashi Gymnastics Training.mkv' -c copy -metadata 'comment=' -metadata 'album=Broad Shoulders' -metadata 'description=' -metadata 'artist=Taylor Bennett' -metadata 'title=Broad Shoulders (feat. Chance the Rapper)' -metadata 'date=20180622' -metadata 'purl=https://www.youtube.com/watch?v=1pWK8EsJNgk' 'file:20180622 - Kazuki Hayashi Gymnastics Training.temp.mkv' 

I have managed to get the issue to occur all the time.

Problem is reproducible with this command
youtube-dl -v https://www.youtube.com/watch?v=1pWK8EsJNgk

Addition options are in a config file that contains the options below.

--add-metadata --write-info-json -o "%(upload_date)s - %(title)s.%(ext)s" --audio-quality 0 --recode-video mkv --merge-output-format mkv --console-title --write-description --write-all-thumbnails --all-subs --download-archive 000downloadArchive.txt

which are also documented in the log above.

@DragonFury24
Copy link
Author

@DragonFury24 DragonFury24 commented May 2, 2019

yt

This is what remains in the folder after downloading as I mentioned in my first comment.

I have tested downloading the video with all of the options above, but without --add-metadata. The issue does not occur.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 2, 2019

As already said youtube-dl processed everything as expected. This has nothing to do with youtube-dl and may be caused by 3rdparty AV or file sync software.

@ytdl-org ytdl-org locked and limited conversation to collaborators May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.