I am trying to convert a videofile from mpeg2 to h265 using omxh265enc.
Transcoding the video stream works fine. However the file has an audio and a video stream. I want to keep the audio stream as is, since it is already mp3. I tried the following queue:
gst-launch-1.0 filesrc location=sourcefile.mkv ! matroskademux name=demux matroskamux name=mux ! filesink location=destfile.mkv
demux.audio_0 ! queue ! mux.
demux.video_0 ! mpegvideoparse ! omxmpeg2videodec ! queue ! omxh265enc preset-level=3 bitrate=750000 EnableTwopassCBR=true control-rate=variable ! mux.
However this hangs in prerolling. Doing just one of the two streams work. What am I doing wrong?