Skip to content
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

Must run mkvMerge prior to ffmpeg to prevent errors on some files #2

Open
vorwd opened this issue Nov 26, 2023 · 0 comments
Open

Must run mkvMerge prior to ffmpeg to prevent errors on some files #2

vorwd opened this issue Nov 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vorwd
Copy link
Owner

vorwd commented Nov 26, 2023

I found it works best to complete the mkvMerge-Eng-Only.sh script on the directory/file prior to calling one of the ffmpeg variants. This is due to the ffmpeg options/arguments I've chosen to call in the script. You may find better suited options to feed into ffmpeg which would prevent this sort of issue from occuring. I will work to update the chosen options, while still acheivng a successful outcome, if it becomes a hassle for me to trigger the scripts in this sequence.**

Error initializing output stream 0:3 -- Subtitle encoding currently only possible from text to text or bitmap to bitmap

What's strange about this error, is that my $map_audio_args should be excluding subtitles all together and the script should only be working on audio streams -- I did fiddle around with the jq outputs of ffprobe-original, which feeds into the $map_audio_args, but didn't resolve it yet

map_audio_args=()
for index in $eng_audio_streams; do
lang=$(echo "$ffprobe_output" | jq -r ".streams[] | select(.index == $index and .codec_type == "audio") | .tags.language")
if [ "$lang" == "eng" ]; then
map_audio_args+=("-map" "0:$index")
fi
done

@vorwd vorwd self-assigned this Nov 26, 2023
@vorwd vorwd added the bug Something isn't working label Nov 26, 2023
@vorwd vorwd assigned vorwd and unassigned vorwd Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant