occivink / mpv-scripts

Various scripts for mpv
The Unlicense
420 stars 38 forks source link

encode_webm.conf ignores audio and subtitle tracks. #29

Closed Naomi010Sentzke closed 4 years ago

Naomi010Sentzke commented 4 years ago

Whether , I set 'only_active_tracks' as yes or no, it will only encode the video track. I want it to encode the subs too. I use Zeranoe's latest ffmpeg build.

occivink commented 4 years ago

Hello, encode_webm.conf passes -an -sn as arguments to ffmpeg (see codec option) which respectively disable audio and subtites. You can simply remove them, and maybe add -a copy to avoid re-encoding the audio.

Naomi010Sentzke commented 4 years ago

Thanks

slrslr commented 3 years ago

on Linux, this command fixed the issue: sed -i "s|-an -sn||g" ~/.config/mpv/scripts/encode.lua