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

FFmpeg fails to join downloaded videos #9571

Closed
danfiscus opened this issue May 22, 2016 · 15 comments
Closed

FFmpeg fails to join downloaded videos #9571

danfiscus opened this issue May 22, 2016 · 15 comments
Labels

Comments

@danfiscus
Copy link

@danfiscus danfiscus commented May 22, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.05.21.2
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

C:\Windows\system32>youtube-dl -v https://www.youtube.com/watch?v=-xLQWs5qzv8
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=-xLQWs5qzv8']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.05.21.2
[debug] Python version 2.7.10 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-80052-g64fe1ee, ffprobe N-80052-g64fe1ee
[debug] Proxy map: {}
[youtube] -xLQWs5qzv8: Downloading webpage
[youtube] -xLQWs5qzv8: Downloading video info webpage
[youtube] -xLQWs5qzv8: Extracting video information
[youtube] -xLQWs5qzv8: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r1---sn-8xgp1vo-2ial.googlevideo.com/videoplayback?id=fb12d05ace6aceff&itag=137&source=youtube&requiressl=yes&initcwndbps=1973750&mv=m&pl=20&ms=au&mn=sn-8xgp1vo-2ial&mm=31&ratebypass=yes&mime=video/mp4&gir=yes&clen=56590020&lmt=1446541973611666&dur=198.698&upn=HuVhDqQmAmQ&signature=116C9D3820C948C419510FC0BD2296D477E737C4.85BE9D25B7532EED2D2BFB59FF800375D13E4420&sver=3&mt=1463885741&fexp=9407156,9407473,9413141,9416126,9416891,9419452,9422596,9428398,9431012,9433096,9433111,9433223,9433262,9433669,9433856,9433946,9434834,9434978,9435530,9435850,9435876,9437373&key=dg_yt0&ip=98.117.255.36&ipbits=0&expire=1463907420&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mv,pl,ms,mn,mm,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.f137.mp4
[download] 100% of 53.97MiB in 04:37
[debug] Invoking downloader on u'https://r1---sn-8xgp1vo-2ial.googlevideo.com/videoplayback?id=fb12d05ace6aceff&itag=251&source=youtube&requiressl=yes&initcwndbps=1973750&mv=m&pl=20&ms=au&mn=sn-8xgp1vo-2ial&mm=31&ratebypass=yes&mime=audio/webm&gir=yes&clen=3291571&lmt=1449650451273442&dur=198.701&upn=HuVhDqQmAmQ&signature=0AD33EBE6F414E4DDCD690C4EDBD834BEBA36EB3.4A969232C0546EB07115CB44531180C9C777387C&sver=3&mt=1463885741&fexp=9407156,9407473,9413141,9416126,9416891,9419452,9422596,9428398,9431012,9433096,9433111,9433223,9433262,9433669,9433856,9433946,9434834,9434978,9435530,9435850,9435876,9437373&key=dg_yt0&ip=98.117.255.36&ipbits=0&expire=1463907420&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mv,pl,ms,mn,mm,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.f251.webm
[download] 100% of 3.14MiB in 00:20
[ffmpeg] Merging formats into "STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.f137.mp4' -i 'file:STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.temp.mkv'
ERROR: file:STAR WARS EPISODE IV - A NEW MEME--xLQWs5qzv8.f137.mp4: No such file or directory
Traceback (most recent call last):
  File "youtube_dl\YoutubeDL.pyo", line 1782, in post_process
  File "youtube_dl\postprocessor\ffmpeg.pyo", line 445, in run
  File "youtube_dl\postprocessor\ffmpeg.pyo", line 168, in run_ffmpeg_multiple_files
FFmpegPostProcessorError

Description of your issue, suggested solution and other information

This has happened to me thrice now, with two different videos. I installed FFmpeg by following this guide. I thought it might have to do with the part files when I did it the first time, because I had to continue a previous download. So the first time I encountered this, I deleted the part files and did a --no-continue as well, and it happened again.

@xdworkshop
Copy link

@xdworkshop xdworkshop commented Jul 31, 2016

That's happens when there more than 2 consecutive [space] characters in the file name.
I think the bug is an FFMPEG bug, but it could be nice to have youtube-dl rename the files before launching ffmpeg (without the problematic characters sequence) and reverting back when the merge is properly done.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 31, 2016

@xdworkshop Which URL are you downloading? ffmpeg 3.1.1 works fine with https://www.youtube.com/watch?v=-xLQWs5qzv8

@xdworkshop
Copy link

@xdworkshop xdworkshop commented Apr 26, 2017

@yan12125 try with this URL for example : https://www.youtube.com/watch?v=ErJs9CXN0Vc

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 27, 2017

@xdworkshop No problem here. Please paste the verbose log if it doesn't work for you.

$ youtube-dl -v "https://www.youtube.com/watch?v=ErJs9CXN0Vc"                                                   
[debug] System config: []                                                                                       
[debug] User config: []                                                                                         
[debug] Custom config: []                                                                                       
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ErJs9CXN0Vc']                                
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8                                                
[debug] youtube-dl version 2017.04.26                                                                           
[debug] Git HEAD: 3dc8b61b7                                                                                     
[debug] Python version 3.6.1 - Linux-4.10.11-1-ARCH-x86_64-with-arch                                            
[debug] exe versions: ffmpeg 3.3, ffprobe 3.3                                                                   
[debug] Proxy map: {}                                                                                           
[youtube] ErJs9CXN0Vc: Downloading webpage                                                                      
[youtube] ErJs9CXN0Vc: Downloading video info webpage                                                           
[youtube] ErJs9CXN0Vc: Extracting video information                                                             
[youtube] ErJs9CXN0Vc: Downloading MPD manifest                                                                 
[youtube] ErJs9CXN0Vc: Downloading MPD manifest                                                                 
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/mm/31/pl/16/mv/m/initcwndbps/5006250/ms/au/mn/sn-u5oxu-un5e/ei/L5EBWcr3LIu64AKX1LjgCA/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/mt/1493274863/signature/17FFF89CE1E814BFDE25250473790A5E95498349.0CD741D7B0AC6DAEB6D90F3D48B6739B5192A252/upn/pdYynVDYuRo/key/dg_yt0/ip/140.112.28.103/ipbits/0/expire/1493296527/sparams/ip,ipbits,expire,id,itag,source,requiressl,mm,pl,mv,initcwndbps,ms,mn,ei,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 173.87MiB in 00:31
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/mm/31/pl/16/mv/m/initcwndbps/5006250/ms/au/mn/sn-u5oxu-un5e/ei/L5EBWcr3LIu64AKX1LjgCA/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/mt/1493274863/signature/0D1C1C78C543A6AACD60560806EC54CA02F8CBE5.94B96EA9F6558FAE1F4974AEBB2686739A33A765/upn/pdYynVDYuRo/key/dg_yt0/ip/140.112.28.103/ipbits/0/expire/1493296527/sparams/ip,ipbits,expire,id,itag,source,requiressl,mm,pl,mv,initcwndbps,ms,mn,ei,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:24
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 (pass -k to keep)
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a (pass -k to keep)
@xdworkshop
Copy link

@xdworkshop xdworkshop commented Apr 27, 2017

$ youtube-dl.exe -v https://www.youtube.com/watch?v=ErJs9CXN0Vc --no-check-certificate
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ErJs9CXN0Vc', '--no-check-certificate']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg 3.0.1, ffprobe 3.0.1
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r18---sn-25g7snl7.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/initcwndbps/1571250/mm/31/mn/sn-25g7snl7/pl/48/ei/pEcCWcX1KZSPcPDHtVA/ms/au/mv/m/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/upn/5D5QKayUhIQ/key/dg_yt0/mt/1493321429/signature/74D3FEB762E1CB016BCA3638D4D9FF238D666869.33523AB7B87B5782C0066762BE3B86F22B9643F6/ip/2a01:cb00:4e9:8900:18c3:1af5:67f8:f67d/ipbits/0/expire/1493343236/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,mn,pl,ei,ms,mv,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[download] Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 has already been downloaded
[download] 100% of 174.02MiB
[debug] Invoking downloader on 'https://r18---sn-25g7snl7.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/initcwndbps/1571250/mm/31/mn/sn-25g7snl7/pl/48/ei/pEcCWcX1KZSPcPDHtVA/ms/au/mv/m/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/upn/5D5QKayUhIQ/key/dg_yt0/mt/1493321429/signature/480C1E2679AB835FE0344A53D694DFE50BC06E48.6757EF2E8CBDE717999E4CBEE331BBBB7A297A50/ip/2a01:cb00:4e9:8900:18c3:1af5:67f8:f67d/ipbits/0/expire/1493343236/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mm,mn,pl,ei,ms,mv,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[download] Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a has already been downloaded
[download] 100% of 27.52MiB
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à
Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
ERROR: file:Migrer à Jigsaw - en douleur ou en douceur (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4: No such file or directory
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\YoutubeDL.py", line 1942, in post_process
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\postprocessor\ffmpeg.py", line 454, in run
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\postprocessor\ffmpeg.py", line 202, in run_ffmpeg_multiple_files
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: file:Migrer à Jigsaw - en douleur ou en douceur (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4: No such file or directory
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 28, 2017

The latest ffmpeg works for me. Could you try N-85653?

G:\tmp>youtube-dl.exe --ffmpeg-location ffmpeg-20170425-b4330a0-win64-static\bin ErJs9CXN0Vc -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', 'ffmpeg-20170425-b4330a0-win64-static\\bin', 'ErJs9CXN0Vc', '-v']
[debug] Encodings: locale cp950, fs mbcs, out cp950, pref cp950
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-85653-gb4330a0, ffprobe N-85653-gb4330a0
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/pl/22/initcwndbps/5666250/mv/m/ms/au/mm/31/mn/sn-u5oxu-un5e/ei/0ucCWbf4O4aZ4gLCzarwAw/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/signature/5EA9C8C70E3DAF3B67077958866916EA1BD8C2FC.5D39D3BBA428E5014A9AFDF18530266A50B81A09/mt/1493362529/upn/yOiknKO9lXw/key/dg_yt0/ip/140.112.28.103/ipbits/0/expire/1493384243/sparams/ip,ipbits,expire,id,itag,source,requiressl,pl,initcwndbps,mv,ms,mm,mn,ei,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 174.02MiB in 00:43
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/pl/22/initcwndbps/5666250/mv/m/ms/au/mm/31/mn/sn-u5oxu-un5e/ei/0ucCWbf4O4aZ4gLCzarwAw/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/signature/9B84B55A9E123B3EB747F7638C23039FA4272A9B.0CF296614D982A1001B7108D269C422B0ED8B08A/mt/1493362529/upn/yOiknKO9lXw/key/dg_yt0/ip/140.112.28.103/ipbits/0/expire/1493384243/sparams/ip,ipbits,expire,id,itag,source,requiressl,pl,initcwndbps,mv,ms,mm,mn,ei,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:20
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: 'ffmpeg-20170425-b4330a0-win64-static\bin\ffmpeg' -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 (pass -k to keep)
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a (pass -k to keep)
@xdworkshop
Copy link

@xdworkshop xdworkshop commented Apr 28, 2017

With the latest version of ffmpeg it's working fine.
So that's definitively an ffmpeg bug in 3.0.x
EDIT : Maybe not, look my next comment

$ youtube-dl.exe -v https://www.youtube.com/watch?v=ErJs9CXN0Vc --no-check-certificate --ffmpeg-location ffmpeg-20170425-b4330a0-win64-static\\bin
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ErJs9CXN0Vc', '--no-check-certificate', '--ffmpeg-location', 'ffmpeg-20170425-b4330a0-win64-static\\bin']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg N-85653-gb4330a0, ffprobe N-85653-gb4330a0
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r5---sn-25ge7ne6.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/pl/45/initcwndbps/1870000/ei/StUDWffXJInQcpmaspAP/mn/sn-25ge7ne6/mm/31/ms/au/mv/m/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/upn/Dw_7vQ43Dno/key/dg_yt0/signature/5474559C85795A877A4F53F8B80DE9A864A9C368.568ED35F68621D9B890472215EC668CD881288C3/mt/1493423308/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493445034/sparams/ip,ipbits,expire,id,itag,source,requiressl,pl,initcwndbps,ei,mn,mm,ms,mv,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 174.02MiB in 00:36
[debug] Invoking downloader on 'https://r5---sn-25ge7ne6.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/pl/45/initcwndbps/1870000/ei/StUDWffXJInQcpmaspAP/mn/sn-25ge7ne6/mm/31/ms/au/mv/m/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/upn/Dw_7vQ43Dno/key/dg_yt0/signature/7585180F8209CA048E2A59B12F391BB9FFA22F64.221512353D59E54AB31A28AAAE7F3EF3D3F4A0AB/mt/1493423308/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493445034/sparams/ip,ipbits,expire,id,itag,source,requiressl,pl,initcwndbps,ei,mn,mm,ms,mv,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:26
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: 'ffmpeg-20170425-b4330a0-win64-static\bin\ffmpeg' -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 (pass -k to keep)
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a (pass -k to keep)

@xdworkshop
Copy link

@xdworkshop xdworkshop commented Apr 29, 2017

I've updated my local installation with ffmpeg 3.2.4 and the same bug came back :

$ youtube-dl.exe -v https://www.youtube.com/watch?v=ErJs9CXN0Vc --no-check-certificate
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ErJs9CXN0Vc', '--no-check-certificate']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r5---sn-25ge7ne6.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/ei/kdcDWaIcjKRzqb-uqAQ/pl/45/ms/au/mv/m/mm/31/mn/sn-25ge7ne6/initcwndbps/1852500/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/upn/zAH8J16AKLc/mt/1493423903/key/dg_yt0/signature/03C09D14EBB1939706F2BFE1FBD0D42DFC70EA6F.27416FDD748D8D266915815762F3C8DD210F911A/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493445617/sparams/ip,ipbits,expire,id,itag,source,requiressl,ei,pl,ms,mv,mm,mn,initcwndbps,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 174.02MiB in 00:36
[debug] Invoking downloader on 'https://r5---sn-25ge7ne6.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/ei/kdcDWaIcjKRzqb-uqAQ/pl/45/ms/au/mv/m/mm/31/mn/sn-25ge7ne6/initcwndbps/1852500/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/upn/zAH8J16AKLc/mt/1493423903/key/dg_yt0/signature/2486A5AEAA726BD815DB0A081381C5321FE4496A.13FAF8A6BC9C00FDF6E21714D19CFDC9487C7DD0/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493445617/sparams/ip,ipbits,expire,id,itag,source,requiressl,ei,pl,ms,mv,mm,mn,initcwndbps,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:26
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à
Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
ERROR: file:Migrer à Jigsaw - en douleur ou en douceur (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4: No such file or directory
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\YoutubeDL.py", line 1942, in post_process
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\postprocessor\ffmpeg.py", line 454, in run
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpi8nwgst1\build\youtube_dl\postprocessor\ffmpeg.py", line 202, in run_ffmpeg_multiple_files
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: file:Migrer à Jigsaw - en douleur ou en douceur (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4: No such file or directory

I have the bug when I use the ffmpeg package from chocolatey (https://chocolatey.org/).

If I use the official ffmpeg binary with the --ffmpeg-location option, it is working fine :

$ youtube-dl.exe -v https://www.youtube.com/watch?v=ErJs9CXN0Vc --no-check-certificate --ffmpeg-location ffmpeg-3.2.4-win64-static\\bin
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=ErJs9CXN0Vc', '--no-check-certificate', '--ffmpeg-location', 'ffmpeg-3.2.4-win64-static\\bin']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.04.26
[debug] Python version 3.4.4 - Windows-10-10.0.15063
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r18---sn-25g7snl7.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/ms/au/mv/m/pl/45/mm/31/mn/sn-25g7snl7/ei/VtkDWcPmBczmWZCFiJAC/initcwndbps/2040000/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/key/dg_yt0/signature/6DE7384C84A0CFFD0CB2293D6FC8406990E9A25B.7B0DED67BED5C76822E6540F016B61997A74E068/mt/1493424386/upn/3Wau8xcfNK8/beids/%5B9466593%5D/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493446070/sparams/ip,ipbits,expire,id,itag,source,requiressl,ms,mv,pl,mm,mn,ei,initcwndbps,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 174.02MiB in 00:37
[debug] Invoking downloader on 'https://r18---sn-25g7snl7.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/ms/au/mv/m/pl/45/mm/31/mn/sn-25g7snl7/ei/VtkDWcPmBczmWZCFiJAC/initcwndbps/2040000/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/key/dg_yt0/signature/53A049D80A77BF4E2F675868A2FD2679F53024D5.15ACC004A5D7FB2EE355E2022D2C503C2E55A000/mt/1493424386/upn/3Wau8xcfNK8/beids/%5B9466593%5D/ip/2a01:cb00:4e9:8900:1928:a598:53c0:5389/ipbits/0/expire/1493446070/sparams/ip,ipbits,expire,id,itag,source,requiressl,ms,mv,pl,mm,mn,ei,initcwndbps,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:27
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: 'ffmpeg-3.2.4-win64-static\bin\ffmpeg' -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer
à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 (pass -k to keep)
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a (pass -k to keep)

So, 2 cases : either the ffmpeg version of chocolatey is flawed, or there is a bug in youtube-dl if ffmeg is already installed ...

@Hrxn
Copy link

@Hrxn Hrxn commented Apr 29, 2017

So, the one ffmpeg build was from chocolatey, and the other build?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 29, 2017

there is a bug in youtube-dl if ffmeg is already installed ...

That's not the case. I downloaded 3.2.4 win32 static from http://ffmpeg.zeranoe.com/builds/, adding ffmpeg and youtube-dl to %PATH% and it works fine:

C:\Users\yen>youtube-dl -v ErJs9CXN0Vc
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'ErJs9CXN0Vc']
[debug] Encodings: locale cp950, fs mbcs, out cp437, pref cp950
[debug] youtube-dl version 2017.04.28
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[youtube] ErJs9CXN0Vc: Downloading webpage
[youtube] ErJs9CXN0Vc: Downloading video info webpage
[youtube] ErJs9CXN0Vc: Extracting video information
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[youtube] ErJs9CXN0Vc: Downloading MPD manifest
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/137/source/youtube/requiressl/yes/initcwndbps/6878750/pl/18/mv/m/ei/2D0EWbOSMcq84ALW0riYAw/ms/au/mm/31/mn/sn-u5oxu-un5e/ratebypass/yes/mime/video%2Fmp4/otfp/1/gir/yes/clen/182479512/lmt/1491758484631385/dur/1815.800/key/dg_yt0/mt/1493450122/upn/QXpE4t6qoy0/signature/792A58F65ADAAF2B90498047083E40AB7E9B35B8.50635102031E1436E2315E10AB07E4A58482D8ED/ip/140.112.218.160/ipbits/0/expire/1493471800/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,pl,mv,ei,ms,mm,mn,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 356
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4
[download] 100% of 174.02MiB in 00:31
[debug] Invoking downloader on 'https://r2---sn-u5oxu-un5e.googlevideo.com/videoplayback/id/12b26cf425cdd157/itag/140/source/youtube/requiressl/yes/initcwndbps/6878750/pl/18/mv/m/ei/2D0EWbOSMcq84ALW0riYAw/ms/au/mm/31/mn/sn-u5oxu-un5e/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/28861792/lmt/1491758559791511/dur/1815.846/key/dg_yt0/mt/1493450122/upn/QXpE4t6qoy0/signature/8CBECBE592C995D303A3995E8B5B20A6FB34F589.05FF615E85D71D42980D9244509910860A704BDB/ip/140.112.218.160/ipbits/0/expire/1493471800/sparams/ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,pl,mv,ei,ms,mm,mn,ratebypass,mime,otfp,gir,clen,lmt,dur/'
[dashsegments] Total fragments: 365
[download] Destination: Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a
[download] 100% of 27.52MiB in 00:19
[ffmpeg] Merging formats into "Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4' -i 'file:Migrer à Jigsaw  -en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.temp.mp4'
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f137.mp4 (pass -k to keep)
Deleting original file Migrer à Jigsaw  - en douleur ou en douceur  (Alexis Hassler)-ErJs9CXN0Vc.f140.m4a (pass -k to keep)

Closing as it's most likely a Chocolatey issue.

By the way, @danfiscus's issue is due to the File System Redirector: https://msdn.microsoft.com/en-us/library/windows/desktop/aa384187(v=vs.85).aspx. To avoid such problems, don't run programs from C:\Windows\System32.

@Hrxn
Copy link

@Hrxn Hrxn commented Apr 29, 2017

Sorry for off-topic, but what happened to this site?
http://ffmpeg.zeranoe.com/builds/
Is it just me, or is https not working anymore?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 29, 2017

@Hrxn
Copy link

@Hrxn Hrxn commented Apr 29, 2017

And with the page open, what happens if you click on Download or the logo in the upper-right corner?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 29, 2017

Download is fine. Clicking the logo navaigates to the non-HTTPS version.

@Hrxn
Copy link

@Hrxn Hrxn commented Apr 29, 2017

Strange. Don't know what is going on, but this is definitely did not happen before.

If I am on https://ffmpeg.zeranoe.com/builds, the Download link in the menu bar shows this: https://ffmpeg.zeranoe.com/builds

The source is this:

<a href="/builds">Download <span class="sr-only">(current)</span></a>

If I click on that, I land at http://ffmpeg.zeranoe.com/builds/ (non https).
This should not happen, theoretically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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