I am using gst-omapfb plugin built from openembedded which
contains X-overlay patch on normal omapfb plugin as my video sink. My normal
pipeline is as followed.
$gst-launch-0.10 filesrc location=1.mp4 ! myparser ! mydecoder ! omapfbsink.
Src pad of my decoder is set as following caps .
"width", G_TYPE_INT, mpeg4dec->info.width,
"height", G_TYPE_INT, mpeg4dec->info.height,
"framerate", GST_TYPE_FRACTION, mpeg4dec->fps_nu, mpeg4dec->fps_de,
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'),
"pixel-aspect-ratio", GST_TYPE_FRACTION,1,1,i NULL);
Omapfbsink will accept I420 format and convert it to UYVY
format and copy it to frame buffer. In these all process it is using memcpy
which copy data from buffer pushed from my decoder to buffer allocated
locally. Here in omapfbsink memcpy is time consuming. Instead of using
memcpy I would like to use some other method. But I am getting how can I
If anyone can guide me to replace memcpy, I will be pleasure
Hello All/Arnout Vandecappelle,
First of all I am really sorry for creating new chain of
mail. My system crashes and I could not take any back up of previous mails.
As last discussed by Arnout , I found that my decoder was allocating memory
for internal buffers with g_malloc and at the time of pushing buffer I
allocated buffer with buffer alloc of omapfbsink of the size (width * height
* 3/2). That memory is allocated from buffer_alloc of omapfbsink. But I was
pushing buffer of my internal decoder. So I was doing mistakes at that side
and I improve allocation buffers. So now my following pipeline is working
fine and no memcpy is called in between.
$gst-launch-0.10 filesrc location=1.flv ! myparser ! mydecoder !
Now I would like to make it work into playbin architecture. But in playbin
it is calling ffmpegcolorspace and other Plugins. Is it possible I can
remove videoscale and ffmpegcolorspace from that pipeline ?
On Friday 02 April 2010 06:41:12, Tejas wrote:
> Now I would like to make it work into playbin architecture. But in
> playbin it is calling ffmpegcolorspace and other Plugins. Is it possible
> I can remove videoscale and ffmpegcolorspace from that pipeline ?
Set the native-video flag in the flags property of playbin2. Or if you're
using the old playbin: don't use playbin, use playbin2 :-)
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43