AW: AW: gstreamer - how to convert .ts to .mkv or .mp4 with sound

Ian Davidson id012c3076 at blueyonder.co.uk
Wed Oct 18 07:10:28 UTC 2017


Perhaps you should include a videoscale in your pipeline to resize the 
image.


On 17/10/2017 22:41, fufu5000 wrote:
> If I make that command:
>
> gst-launch-1.0 filesrc location=1.ts \
> ! decodebin name=demux demux. \
> ! queue \
> ! audioresample \
> ! "audio/x-raw,rate=44100" \
> ! audioconvert \
> ! "audio/x-raw,format=F32LE" \
> ! vorbisenc \
> ! mux. matroskamux name=mux \
> ! filesink location=1.mkv demux. \
> ! queue \
> ! videoconvert \
> ! omxh264enc \
> ! "video/x-h264,profile=high" \
> ! h264parse \
> ! mux.
>
> Working, but I can't resize video. For example if I change to:
>
> !
> "video/x-h264,stream-format=byte-stream,profile=high,width=480,height=270,framerate=25/1"
>
> Gstreamer stops and 1.mkv has 0kb
>



More information about the gstreamer-devel mailing list