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

Output filename broken. Cannot predict the output filename #6506

Closed
eriktjacobsen opened this issue Aug 9, 2015 · 2 comments
Closed

Output filename broken. Cannot predict the output filename #6506

eriktjacobsen opened this issue Aug 9, 2015 · 2 comments

Comments

@eriktjacobsen
Copy link

@eriktjacobsen eriktjacobsen commented Aug 9, 2015

Running the command:
youtube-dl -o 77d8f26f-3685-4c87-898f-2f4d98d3532b --get-filename -- 70wDodLb-m8

Give the following output: 77d8f26f-3685-4c87-898f-2f4d98d3532b which is of course correct, since that is the output filename I gave it. And this often works fine.

However, sometimes the following happens:

$ youtube-dl -o 77d8f26f-3685-4c87-898f-2f4d98d3532b -- 70wDodLb-m8
[youtube] 70wDodLb-m8: Downloading webpage
[youtube] 70wDodLb-m8: Downloading video info webpage
[youtube] 70wDodLb-m8: Extracting video information
[youtube] 70wDodLb-m8: Downloading DASH manifest
[youtube] 70wDodLb-m8: Downloading DASH manifest
[download] Destination: 77d8f26f-3685-4c87-898f-2f4d98d3532b.f248
[download] 100% of 152.24MiB in 00:43
[download] Destination: 77d8f26f-3685-4c87-898f-2f4d98d3532b.f171
[download] 100% of 7.41MiB in 00:01
[ffmpeg] Merging formats into "77d8f26f-3685-4c87-898f-2f4d98d3532b.webm"
Deleting original file 77d8f26f-3685-4c87-898f-2f4d98d3532b.f248 (pass -k to keep)
Deleting original file 77d8f26f-3685-4c87-898f-2f4d98d3532b.f171 (pass -k to keep)

So the resulting filename is the argument passed to -o with a ".webm" attached. Sometimes this appears to result in a ".mkv" attached as well.

I feel like this behavior is in error, and at the very least should come back with the correct filename when "--get-filename" is used.

This is currently breaking a software chain as the resulting file cannot be found.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 9, 2015

Duplicate of #5710.

@dstftw dstftw closed this Aug 9, 2015
@eriktjacobsen
Copy link
Author

@eriktjacobsen eriktjacobsen commented Aug 9, 2015

Hey @dstftw, I feel this is not a duplicate because that issue has to do with the %(ext)s template not being correct, he expects %(ext)s to be filled with .webm and it gets .mkv instead.

My issue is that I have no extension in the output filename, so I feel regardless of what internal merging needs to happen, there should be no extension on the output.

I think the final stage of saving the file should respect the -o argument, especially if no extension template is given.

Can this issue be re-opened and marked as different than that issue?

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
2 participants
You can’t perform that action at this time.