Questions about transcoding video with audio and subtitle passthrough using MKV files

gotsring gotsring at live.com
Fri Mar 5 16:54:03 UTC 2021


I'll be honest, I've not really dealt with more than one stream out of
matroskademux, so not sure if there's a more automatic way.

You can try something like this. This assumes the audio is FLAC, thus the
flacparse, but you should be able to change out the parser (or maybe remove
it?) for other audio streams.

gst-launch-1.0.exe filesrc location=2.mkv ! matroskademux name=d \
d.video_0 ! queue ! h264parse ! nvv4l2decoder ! nvv4l2h265enc
bitrate=2000000 ! h265parse ! matroskamux name=m ! filesink
location=new2.mkv \
d.audio_0 ! queue ! flacparse ! m. \
d.audio_1 ! queue ! flacparse ! m.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list