Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Version 2015.04.26 doesn't like some output file names #5535
Comments
|
You should just end the output template with |
|
I use YouTube-dl in a script that does some post processing and moves the file after downloading, so knowing the exact file name is handy...but I can code around that. However (and sorry if this is a different issue)...today when I tried the .%(ext)s I received the following error: C:>youtube-dl.py -v "https://www.youtube.com/watch?v=5vxkKiy65iU" -o C:\mytestfile.%(ext)s Thanks |
|
Try updating ffmpeg. |
|
Thanks dstftw. You are correct, it was an old FFMPEG. (and thanks again!) |
|
Thanks for the report. In the next version extension will be automatically appended to merged filename if needed. |
The addedd FFMPEG post-processing in the latest version appears to choke on some file names.
(file names that don't have a specific extension I believe?...not sure)
C:>youtube-dl -v "https://www.youtube.com/watch?v=IwfUnkBfdZ4" -o "C:\BATMAN.SU✌️ 0 -map 1🅰️ 0 'C:\BATMAN.temp.SUPERMAN'
PERMAN"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=IwfUnkBfdZ4
', u'-o', u'C:\BATMAN.SUPERMAN']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.04.26
[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71346-gdf4fca2
[debug] Proxy map: {}
[youtube] IwfUnkBfdZ4: Downloading webpage
[youtube] IwfUnkBfdZ4: Extracting video information
[youtube] IwfUnkBfdZ4: Downloading DASH manifest
[debug] Invoking downloader on 'https://r8---sn-ni5f-t8gl.googlevideo.com/videop
layback?id=2307d49e405f759e&itag=137&source=youtube&requiressl=yes&ms=au&mv=m&mm
=31&pl=23&ratebypass=yes&mime=video/mp4&gir=yes&clen=43100115&lmt=14293098351419
49&dur=133.132&fexp=900720,904833,907263,916602,916631,934954,938028,9406690,940
6813,9407115,9407433,9408093,9408209,9408347,9408708,9409061,9412465,947233,9481
24,948703,951703,952612,952626,952637,957201&mt=1430089697&key=dg_yt0&sver=3&sig
nature=17B70F77DA9C13D6C56D8CA96F6EFFF8607D10AB.38A71779D74AF8BB522F6BF025B33712
A7ACBF4A&upn=ChXw6E9QUqg&ip=24.108.145.53&ipbits=0&expire=1430111433&sparams=ip,
ipbits,expire,id,itag,source,requiressl,ms,mv,mm,pl,ratebypass,mime,gir,clen,lmt
,dur'
[download] Destination: C:\BATMAN.f137.SUPERMAN
[download] 100% of 41.10MiB in 00:33
[debug] Invoking downloader on 'https://r8---sn-ni5f-t8gl.googlevideo.com/videop
layback?id=2307d49e405f759e&itag=141&source=youtube&requiressl=yes&ms=au&mv=m&mm
=31&pl=23&ratebypass=yes&mime=audio/mp4&gir=yes&clen=4247793&lmt=142930979147482
8&dur=133.212&fexp=900720,904833,907263,916602,916631,934954,938028,9406690,9406
813,9407115,9407433,9408093,9408209,9408347,9408708,9409061,9412465,947233,94812
4,948703,951703,952612,952626,952637,957201&mt=1430089697&key=dg_yt0&sver=3&sign
ature=2CA48F47F3CA6B379D5AA3F2BD78A67900F57726.21482A219B980AF0500726B1905FE42BE
B60EB65&upn=ChXw6E9QUqg&ip=24.108.145.53&ipbits=0&expire=1430111433&sparams=ip,i
pbits,expire,id,itag,source,requiressl,ms,mv,mm,pl,ratebypass,mime,gir,clen,lmt,
dur'
[download] Destination: C:\BATMAN.f141.SUPERMAN
[download] 100% of 4.05MiB in 00:01
[ffmpeg] Merging formats into "C:\BATMAN.SUPERMAN"
[debug] ffmpeg command line: ffmpeg -y -i 'C:\BATMAN.f137.SUPERMAN' -i 'C:\BATMA
N.f141.SUPERMAN' -c copy -map 0
ERROR: C:\BATMAN.temp.SUPERMAN: Invalid argument
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 1520, in post_process
File "youtube_dl\postprocessor\ffmpeg.pyo", line 589, in run
File "youtube_dl\postprocessor\ffmpeg.pyo", line 148, in run_ffmpeg_multiple_f
iles
FFmpegPostProcessorError
Whereas the following command does not fail
youtube-dl -v "https://www.youtube.com/watch?v=IwfUnkBfdZ4" -o "C:\BATMAN.SUPERMAN.MP4"