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
Failed to merge formats with error: No such file or directory
#6536
Comments
I haven't attempted to reproduce the issue, but it appears the issue is that the audio formats saves as (red line), and then yt-dlp looks for (green line) -ASMR You'll doze off in 5 minutes 😴-nqccaxxsTGM-1920x1080_60.f140.m4a
+ASMR You'll doze off in 5 minutes 😴-nqccaxxsTGM-1280x720_60.f140.m4a Technically it's behaving entirely as intended-both formats are saved using the output template, and thus can't be merged, since they have a different template. I'm not sure how this will be fixed, because prioritising the video's filename, or the audio's filename, could both have unintended effects |
Note this used to work fine before😅 (probably up to version [2023.02.17]) |
2023.02.17:
2023.03.04:
Right, it used to work |
Not sure exactly why yet but this is related to the constructed dash formats if you
EDIT: I can reproduce the issue with DASH formats from other sites. Maybe an old bug that was just brought to light by the dashy youtube formats? HLS formats do not seem to be affected |
what happens if you run |
yt-dlp --print resolution -f 298-0+140-0,298-0-dashy+140-0-dashy nqccaxxsTGM yt-dlp --print resolution -f 298-0,140-0,298-0-dashy,140-0-dashy nqccaxxsTGM yt-dlp --print resolution -f 298,140 nqccaxxsTGM |
This seems to fix the issue for me diff --git a/yt_dlp/downloader/dash.py b/yt_dlp/downloader/dash.py
index 4328d739c..1dca1991f 100644
--- a/yt_dlp/downloader/dash.py
+++ b/yt_dlp/downloader/dash.py
@@ -30,7 +30,7 @@ def real_download(self, filename, info_dict):
except TypeError:
fragment_count = None
ctx = {
- 'filename': fmt.get('filepath') or filename,
+ 'filename': filename,
'live': 'is_from_start' if fmt.get('is_from_start') else fmt.get('is_live'),
'total_frags': fragment_count,
} It looks like |
The above patch will break The actual issue is that when the first |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
the bug hasn't been fixed, it just no longer presents itself with Youtube since the default behavior was reverted from dashy to https to reproduce now with nightly/master: |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
Example url: https://www.youtube.com/watch?v=nqccaxxsTGM
Trying to download a video from youtube in 2 resolutions
1920x1080
and1280x720
, with the command:yt-dlp -f 299+140,298+140 -o '%(title)s-%(id)s-%(resolution)s_%(fps)s.%(ext)s' nqccaxxsTGM
but when it is time to merge the audio and video for the second video, the merge failsNo such file or directory
error. The files in the folder after running the command:Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: