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

filename reported by the --get-filename is not always correct #16461

Closed
lvmm opened this issue May 15, 2018 · 2 comments
Closed

filename reported by the --get-filename is not always correct #16461

lvmm opened this issue May 15, 2018 · 2 comments
Labels

Comments

@lvmm
Copy link

@lvmm lvmm commented May 15, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.05.09. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.05.09

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

$ youtube-dl --get-filename -v https://www.youtube.com/watch?v=KeVT_3Ek90A
[debug] System config: []
[debug] User config: [u'--prefer-ffmpeg']
[debug] Custom config: []
[debug] Command-line args: [u'--get-filename', u'-v', u'https://www.youtube.com/watch?v=KeVT_3Ek90A']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.05.09
[debug] Python version 2.7.6 (CPython) - Linux-3.13.0-144-generic-i686-athlon-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 3.4.2-1, avprobe 3.4.2-1, ffmpeg 3.4.2-1, ffprobe 3.4.2-1
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.mp4

$ youtube-dl -v https://www.youtube.com/watch?v=KeVT_3Ek90A
[debug] System config: []
[debug] User config: [u'--prefer-ffmpeg']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=KeVT_3Ek90A']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.05.09
[debug] Python version 2.7.6 (CPython) - Linux-3.13.0-144-generic-i686-athlon-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 3.4.2-1, avprobe 3.4.2-1, ffmpeg 3.4.2-1, ffprobe 3.4.2-1
[debug] Proxy map: {}
[youtube] KeVT_3Ek90A: Downloading webpage
[youtube] KeVT_3Ek90A: Downloading video info webpage
[youtube] KeVT_3Ek90A: Extracting video information
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r4---sn-gvnuxaxjvh-c356.googlevideo.com/videoplayback?ei=E9j6WqWIMdit7ATe1LTQBQ&ms=au%2Crdu&mt=1526388631&mv=m&requiressl=yes&gir=yes&clen=1384151881&mn=sn-gvnuxaxjvh-c356%2Csn-n8v7zns7&fvip=10&source=youtube&initcwndbps=1290000&id=o-ABWuxcjTXy8-HBXmRzbms1E2MBJ4ZLZrr2bSp5mg_uNS&dur=7308.966&expire=1526410355&key=yt6&ip=109.173.79.100&lmt=1526363744629251&nh=%2CIgpwcjAzLnN2bzA1KgkxMjcuMC4wLjE&signature=40AD48CD9DC58E29D9E7B8D923A7DD2A13C9835D.DD0CE6E8567952956FE63C96735E264EC8B53893&mm=31%2C29&ipbits=0&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pcm2cms=yes&keepalive=yes&itag=136&c=WEB&mime=video%2Fmp4&gcr=ru&pl=17&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&ratebypass=yes'
[download] Destination: World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f136.mp4
[download] 100% of 1.29GiB in 02:04
[debug] Invoking downloader on u'https://r4---sn-gvnuxaxjvh-c356.googlevideo.com/videoplayback?ei=E9j6WqWIMdit7ATe1LTQBQ&ms=au%2Crdu&mt=1526388631&mv=m&requiressl=yes&gir=yes&clen=106221274&mn=sn-gvnuxaxjvh-c356%2Csn-n8v7zns7&fvip=10&source=youtube&initcwndbps=1290000&id=o-ABWuxcjTXy8-HBXmRzbms1E2MBJ4ZLZrr2bSp5mg_uNS&dur=7308.981&expire=1526410355&key=yt6&ip=109.173.79.100&lmt=1526384992498336&nh=%2CIgpwcjAzLnN2bzA1KgkxMjcuMC4wLjE&signature=AFA954BA5742C477123CBC88381BAB7A00A753C2.C20F61C61DAE9F19D87544680170885EFF045979&mm=31%2C29&ipbits=0&sparams=clen%2Cdur%2Cei%2Cgcr%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&pcm2cms=yes&keepalive=yes&c=WEB&mime=audio%2Fwebm&gcr=ru&pl=17&itag=251&ratebypass=yes'
[download] Destination: World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f251.webm
[download] 100% of 101.30MiB in 00:11
[ffmpeg] Merging formats into "World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f136.mp4' -i 'file:World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.temp.mkv'
Deleting original file World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f136.mp4 (pass -k to keep)
Deleting original file World RX of Belgium Live Show - RD3 - 2018 FIA World Rallycross Championship-KeVT_3Ek90A.f251.webm (pass -k to keep)


Description of your issue, suggested solution and other information

When youtube-dl downloads video and audio separately and muxes them with ffmpeg resulting file name may differ from the one reported by the --get-filename, sometimes .mkv extension is replaced with .mp4. I'd like to have a reliable method of determining the resulting file name.

@dstftw dstftw closed this May 15, 2018
@dstftw dstftw added the duplicate label May 15, 2018
@dcht00
Copy link

@dcht00 dcht00 commented Jul 14, 2018

Duplicate of which issue is this?

@forresthopkinsa
Copy link

@forresthopkinsa forresthopkinsa commented Mar 2, 2019

^ agreed, it's not very helpful to mark as "duplicate" without any explanation. However, it looks like the target issue is #5710

@alxnull alxnull mentioned this issue Oct 19, 2019
5 of 9 tasks complete
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.