Closed joshinils closed 1 year ago
Can you please include the debug output as requested?
yes, it takes a long time to normalize a 10G file, when it is done i will add it
It could be that you're hitting this bug: https://github.com/slhck/ffmpeg-normalize/issues/107
In principle I just wanted to see the output of "ffmpeg -i input.mp4" to get an idea of the metadata. A small sample would be even better.
here is the complete log; https://gist.github.com/joshinils/53c5bfba7d216b68ce10a66ea978bd98
I just tried:
ffmpeg -i $title -map_metadata 0 -map 0 title.mp4
and with no different result
ffmpeg -i $title -map_metadata 0 -map 0 -codec copy title_copy.mp4
both of the outputs no longer contain the audio tracks titles
And it seems ffmpeg is indeed to blame for losing the track titles, ugh.
see the output of ffmpeg -i
:
https://gist.github.com/joshinils/2ededcb9f4f8be2091c31963ce167f2d
And mediainfo
too shows a title for all three files (handbreak output and both variants above).
This leads me to blame VLC for no longer showing the track title.
Compared with the behavior of mpv — mpv shows no title for all three.
But since emby shows them correctly i don't care :)
I guess I could have a look into extracting, temporarily storing, and after normalizing re-adding the titles in my script which I call to normalize files automagically. If that is even possible.
Thanks for confirming. Just note that you have a somewhat older version of ffmpeg. Not that I think this is fixed in 5.1 but you might want to update.
I just remuxed in handbrake to mkv, not mp4 and then normalized from mkv to mkv. now vlc does show the track title as before with the "Surround 5.1" not just the language (code).
weird that it depends on the container, but oh well somehow it has to be the fault of vlc.
Checklist
ffmpeg-normalize
(runpip3 install --upgrade ffmpeg-normalize
)ffmpeg
or a recent build from Git masterExpected behavior The titles of the individual tracks get copied over.
Actual behavior The names of the tracks get deleted, I don't know which are which. Names like "Surround 5.1" and "Surround 7.1" and "Commentary" get deleted, and I end up with multiple tracks of the same language code, no knowing what they are.
Command
Any output you get when running the command with the
--debug
flag:Environment (please complete the following information): Ubuntu 20.04.5 LTS Python 3.8.10