Transcoding a video to XviD format with GStreamer
Luis Menina
liberforce at freeside.fr
Thu Sep 10 15:11:01 PDT 2015
Hi Tim, thanks for answering,
Le 07/09/2015 17:59, Tim Müller a écrit :
>> I'd just like to know hot to port this 0.10 command line to 1.0, as
>> xvidenc element doesn't exist anymore.
>
> I think I have a partial port of it somewhere, I'll try to dig it up
> once the 1.6 release is out.
Ok, thanks.
>> gst-launch-1.0 videotestsrc num-buffers=250 \
>> !
>> 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1'
>> \
>> ! xvidenc ! queue ! mux. \
>> audiotestsrc num-buffers=440 ! audioconvert !
>> 'audio/x-raw,rate=44100,channels=2' \
>> ! lame ! queue ! mux. \
>> avimux name=mux ! filesink location=test.avi
>>
>> Any ideas someone ?
>
> You could use the avenc_mpeg4 element instead.
I tried: avenc_mpeg4, avenc_msmpeg4 and avenc_msmpeg4v2.
I generated test videos with no sound channel to see if I could have
them to play but they don't work.
Here's one of the test videos I used:
gst-launch-1.0 videotestsrc num-buffers=200 \
! 'video/x-raw,framerate=(fraction)20/1,width=320,height=240' \
! videoflip method=clockwise \
! avenc_mpeg4 bitrate=384000 \
! queue \
! avimux name=mux \
! progressreport \
! filesink location="test-1-avenc_mpeg4.avi"
I've also tried forcing the mpeg4 profile to simple and advanced-simple,
but the Meizu device still doesn't play the produced videos. In fact,
the specs say it only plays XviD, so unless it's possible to somehow
produce XviD using avenc_mpeg4, I think I'm stuck...
More information about the gstreamer-devel
mailing list