-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
--split-chapters with --add-metadata enabled produces incorrect metadata for m4a files #8363
Comments
I added a simple pull request #8364 which replaces all metadata copying from parent file to split files with directly setting title which is present in chapter |
According to https://superuser.com/questions/1674960/splitting-mp4-with-ffmpeg-does-not-remove-chapters, passing Does this bug occur on all FFmpeg versions? I'll look into submitting a bug report if this is definitely an ffmpeg bug |
Passing map_metadata -1 to ffmpeg fixes it. But as far as I understand there is no direct way to pass this parameter to the ffmpeg split chapters post processor. map_metadata argument you see in the log related to the main downloaded file , not to split files produced by ffmpeg postprocessor. The only known to me way is to remove --add-metadata argument from yt-dlp. My pull request 8364 passes map_metadata -1 to split chapters post processor and sets selected metadata , eg. track title from the chapter title I checked both on ffmpeg 5-1.3 and latest ffmpeg from git. Both have this issue |
Is this specific only to m4a files? I'd think it would impact other formats as well |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
USA
Provide a description that is worded well enough to be understood
Run command
It produces 3 files
the problem is ffmpeg appends all chapters to all split files. For example:
Then add first file 'ADMO - 77 (Full EP) - 001 1. Chamomile Tea [UoY2jh-lHMU].m4a' to Deadbeef or haruna
Deadbeef adds it as three files .
Haruna displays 3 chapters for the single file and fails to play the 2 out of 3 because they are not exist.
It's an ffmpeg problem since its used for splitting files and adding metadata and happens only for m4a files.
Opus works fine.
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: