[Gstreamer-openmax] Element omx_mpeg4enc help

Joseph, Arun arunjoseph at ti.com
Mon Mar 15 03:51:22 PDT 2010


Hi,

Thanks for your reply.

I tried this pipeline 
gst-launch-0.10 filesrc location=akiyo_qcif.yuv ! videoparse width=176 height=144 framerate=30/1 format="I420" ! omx_mpeg4enc ! filesink location=testoutput.mpeg4

Still I am getting error message 

"timebase not supported by mpeg4 standard"

I varied different combinations of arguments to videoparse; still I was getting the same error.

Please help me with your suggestions.

Thanks,
Arun




-----Original Message-----
Date: Sat, 13 Mar 2010 11:13:32 +0000
From: Tim-Philipp M?ller <t.i.m at zen.co.uk>
Subject: Re: [Gstreamer-openmax] Element omx_mpeg4enc help
To: gstreamer-openmax at lists.sourceforge.net
Message-ID: <1268478812.19970.2.camel at zingle>
Content-Type: text/plain; charset="UTF-8"

On Sat, 2010-03-13 at 13:44 +0530, Joseph, Arun wrote:

Hi,


> I was trying to encode a raw yuv file using omx_mpeg4enc. I used the
>  Bellagio omx component based on ffmpeg. I tried the below pipeline to
>  encode a qcif stream.
> 
> gst-launch-0.10 filesrc location= akiyo_qcif.yuv ! omx_mpeg4enc ! filesink location=testoutput.mpeg4
> 
> I am able to get an encoded stream but the output resolution and output color format was incorrect.
> 
> Then I tried a different pipeline
> 
> gst-launch-0.10 filesrc location= akiyo_qcif.yuv ! "video/x-raw-yuv,
>  height=144, width=176, framerate=(fraction)30/1, format=(fourcc)I420"
>  !  omx_mpeg4enc ! filesink location=testoutput.mpeg4

You need a videoparse element (from gst-plugins-bad) after filesrc, with
the properties set correctly to match your yuv format.

 Cheers
  -Tim

-----Original Message-----
From: Joseph, Arun 
Sent: Saturday, March 13, 2010 1:45 PM
To: 'gstreamer-openmax at lists.sourceforge.net'
Subject: Element omx_mpeg4enc help

Hi,

I was trying to encode a raw yuv file using omx_mpeg4enc. I used the Bellagio omx component based on ffmpeg.
I tried the below pipeline to encode a qcif stream.

gst-launch-0.10 filesrc location= akiyo_qcif.yuv ! omx_mpeg4enc ! filesink location=testoutput.mpeg4

I am able to get an encoded stream but the output resolution and output color format was incorrect.

Then I tried a different pipeline

gst-launch-0.10 filesrc location= akiyo_qcif.yuv ! "video/x-raw-yuv, height=144, width=176, framerate=(fraction)30/1, format=(fourcc)I420" !  omx_mpeg4enc ! filesink location=testoutput.mpeg4

Then gstreamer was not able to encode the stream, saying

"timebase not supported by mpeg4 standard"


So please help me by suggesting a working pipeline for mpeg4 encode using omx_mpeg4enc gstreamer element.

Thanks,
Arun




More information about the Gstreamer-openmax mailing list