Comments (5)
I swear there is an open issue for this, but I can't find it
from yt-dlp.
You always should append .%(ext)s
to the output template, otherwise it might cause even more problems (Like when the name contains a .
).
- In the first case, yt-dlp implicitly appends an extension for processing so ffmpeg can merge the files
- In the second case, it will download straight to the file, so it can use the filename as given
Why do you want to download without the extension in the first place?
from yt-dlp.
Presumably the merge process is applying the extension even though it wasn't specified in the output template.
Actually, as the first log shows, yt-dlp is forcing the {format_id}.webm
extension to avoid having one format overwrite the other (function correct_ext()
, I think), the merge command is using a temp.webm
extension for the output, and that is being renamed by just removing the temp.
part (because dl_filename
passed to the post_process()
is that temp filename when no file has been downloaded).
Would the answer to this be a documentation note that an output template with no %(ext)s
is likely to cause unexpected behaviour except in very simple cases, like downloading one combined format video with a specific filename?
from yt-dlp.
but I can't find it
And I was looking for it. I was also surprised that for the entire existence of "yt-dlp", I was the first one who encountered this problem. :)
upd. If this is not a problem but a feature, it is advisable to mention it in the readme.
from yt-dlp.
This old upstream issue, with its relatives, is somewhat similar: user who specified a fixed --output
value (in particular, without %(ext)s
) was surprised when the final file had a .webm
or .mkv
extension as a side-effect of merging.
from yt-dlp.
Related Issues (20)
- ERROR: Postprocessing: Error opening input files: Result too large
- orf.on No video formats found! HOT 7
- Youtube comment Extractor Failed HOT 1
- DownloadError: ERROR: [vimeo] 942547573: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>) HOT 1
- Produce json output when a live content is upcoming or offline, communicating as such HOT 9
- [ThePlatform] [CWTV] - This format is DRM protected HOT 2
- [NoodleMagazine] Unable to extract player path HOT 1
- [TubiTV] Unable to download JSON metadata: HTTP Error 401: Unauthorized HOT 12
- yt-dlp do not working with drm files from WOWPRESENTSPLUS HOT 1
- How do I remux video to a different format Using the Python yt-dlp invocation? HOT 1
- BBC News fails with "Unable to extract playlist data" error HOT 5
- yt-dlp --write-subs --sub-lang "live_chat" on a Live stream is always Top Chat
- 3speak broken HOT 2
- PhantomJS is unmaintained HOT 1
- X/Twitter video URLs no longer work HOT 1
- Add options to prevent download if sponsorblock entry not found HOT 2
- 6play.fr No video formats found HOT 1
- FFMPEG Convertion failed HOT 2
- yt-dlp cannot download video using its id code: no such option: -0. How i can do it? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt-dlp.