-
Notifications
You must be signed in to change notification settings - Fork 4
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
impd should automatically choose right internal subs #7
Comments
Edit your config file and add the following lines:
|
My config:
|
Try it yourself with any file from this folder: https://mega.nz/folder/oW8ihKCZ#sHuu63kset-BAn-XqFa7Nw Condensing doesn't work tho. But it's because of bmp fonts I guess. But that's not critical. |
I guess you need to manually set what tracks you want because the tracks are incorrectly named. |
Where they are incorrectly named? |
For example, here it chooses
Can you add smth to detect the largest target-language sub track? |
Based on the number of symbols used? If so, that is a good idea but I'm not sure if it's easy to do. |
@tatsumoto-ren
This outputs the number of the largest track. (Main snippet found here: https://gist.github.com/kowalcj0/ae0bdc43018e2718fb75290079b8839a) |
Or much simpler: while IFS=',' read -r idx lang; do printf "$idx " && ffmpeg -nostdin -hide_banner -loglevel quiet -i "la_directora_S01E02.mkv" -map 0:"$idx" -f srt - | wc -l; done < <(ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "la_directora_S01E02.mkv" | grep ",spa") | sort -nrk2,2 | head -n1 | awk '{print $1}' |
How fast does it work for a typical episode? |
For 379mb mkv file output of |
Alright, if it's not too slow (need to test on anime specifically), you can submit the PR. But you also need to think about the following:
|
Long story short. I have a video file with a bunch of internal subs:
impd probe
output:When I
add
a video to my collection, it condenses video with5
subtitle, which is that sub track for songs and other sounds. I think that impd should choose internal subs based on:So the largest and target subs should be chosen for condensing. What do you think?
The text was updated successfully, but these errors were encountered: