-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Rename Audio #362
Comments
You want to relabel any audio stream marked as "und" as "eng" instead? what if it's not really "eng"? Or is it that you know they are "eng" but they just just need to be correctly marked? |
That is correct. Like I said I already know that the audio was correct because I've watched most of the movies that I have. I just like to fix this cosmetic issue as a batch rather than a 1x1 which is very tedious. |
so, i started a plugin to do this, but i have no mkv files that have "und" tagged language streams, and oddly when i went to edit one (using ffmpeg or mkvpropedit), i can execute the command, but it simply wipes out the language tag. So net/net, i have no way to test it. so here are 2 options - i can make the plugin available for you to try, OR, here is a bash shell script that you can run in your library that will make the changes. In EITHER case i would suggest making a test directory/library with a couple of files that you can try this on. You can run these command interactively or put it in a shell script.
For testing, i would put this/run this in a directory that only has a few test files in it. (cd to the directory you wish to run in - it will grab mkv files at that level and below). If you navigate to the root of your library and run it, it will select ALL mkv files in your library. This is the globstar functioning like this - without this it gets a little more complex to find all the mkv files and put them in an array and process them all. It equates to the same thing, but this is simpler to code. |
I've been playing with a solution for this same issue with my own files and wanted to share the above script I ended up going with. I ended up finding a way to accomplish the file searching using ffprobe but also an alternative using mkvmerge that makes this script dependent entirely on the mkvinfo tools. The script by default is using the mkverge method. The main source of confusion I found was that ffprobe does NOT return It should be noted this search is a bit fragile. It's expecting your files to have only 1 audio track that's got an undefined language. It's pretty basic to run. I've named mine |
What is your new plugin request?
I have many video files with unknown audio. It would be nice to be able to map unknown audios to English. Just a cosmetic issue but it's anoying to see that when the audio is correct. I've been able to do it file by file with makemkv edit header but 1x1 is VERY tedious and slow.
Additional Context
No response
The text was updated successfully, but these errors were encountered: