From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 64FC2E00931; Tue, 9 Dec 2014 06:30:10 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail.ufomoviez.com (mail.ufomoviez.com [202.87.45.141]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E5251E0090E for ; Tue, 9 Dec 2014 06:29:56 -0800 (PST) Received: from localhost.localdomain (114.143.20.154) by UFOExchange.ufomoviez.com (10.29.5.3) with Microsoft SMTP Server (TLS) id 14.1.218.12; Tue, 9 Dec 2014 19:56:21 +0530 Message-ID: <5487075F.3090506@ufomoviez.com> Date: Tue, 9 Dec 2014 19:59:51 +0530 From: Subodh Chiwate User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: "meta-freescale@yoctoproject.org" References: <54870729.9060504@ufomoviez.com> In-Reply-To: <54870729.9060504@ufomoviez.com> X-Forwarded-Message-Id: <54870729.9060504@ufomoviez.com> X-Originating-IP: [114.143.20.154] Subject: Gstreamer-1.0 : Unable to set framerate for video elementary stream with vpudec on IMX6Q X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 14:30:10 -0000 Content-Type: multipart/alternative; boundary="------------030800090409050705070309" --------------030800090409050705070309 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Hi, System Specs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I am using IMX6 Quad SABRE board. I have built the linux image using the Yo= cto. Linux imx6qsabresd 3.10.31-1.1.0_beta+g94a7e47 #1 SMP PREEMPT Sun Oct 12 02= :14:32 IST 2014 armv7l GNU/Linux root@imx6qsabresd:/unit_tests# gst-launch-1.0 --version gst-launch-1.0 version 1.2.3 GStreamer 1.2.3 Issue =3D=3D=3D=3D I want to play an elementary stream of H264 video at a configurable (not at= runtime) frame rate. Also I do not want to drop any frames and hence not using videorate plugin. I tried setting the caps to convey the desired frame rate but at the end of= execution I am getting 30fps for all elementary streams I have tested with= . But the same content plays at correct FPS in gst-0.10 vpu plugin. Following are the logs for both pipelines. Any suggestions regarding debugging the issue are welcome. Please let me know if should provide any specific information regarding my = setup. Thanks. Command Line Output =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D root@imx6qsabresd:/unit_tests# gst-launch-1.0 -vvv filesrc location=3D/home= /subodh/Media/v1.m4v ! h264parse ! vpudec frame-drop=3Dfalse ! "video/x-raw= ,framerate=3D(fraction)24/1" ! imxv4l2sink Setting pipeline to PAUSED ... [INFO] Product Info: i.MX6Q/D/S Pipeline is PREROLLING ... /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =3D video/x= -h264, width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, p= arsed=3D(boolean)true, stream-format=3D(string)avc, alignment=3D(string)au,= codec_data=3D(buffer)01640028ffe1001d67640028ac24a401e0089f966e02020280000= 0030080000018478c192401000668ee06cb22c0 /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D video/x-h264= , width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, parsed= =3D(boolean)true, stream-format=3D(string)avc, alignment=3D(string)au, code= c_data=3D(buffer)01640028ffe1001d67640028ac24a401e0089f966e0202028000000300= 80000018478c192401000668ee06cb22c0 [INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnabl= e 0 /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D video/x-raw, = format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixel-aspect-= ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, colorimetry=3D= (string)bt709, framerate=3D(fraction)24/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =3D video= /x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixel= -aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, colori= metry=3D(string)bt709, framerate=3D(fraction)24/1 /GstPipeline:pipeline0/GstImxV4l2Sink:imxv4l2sink0.GstPad:sink: caps =3D vi= deo/x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pi= xel-aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, col= orimetry=3D(string)bt709, framerate=3D(fraction)24/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =3D vide= o/x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixe= l-aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, color= imetry=3D(string)bt709, framerate=3D(fraction)24/1 v4l2sink need allocate 11 buffers. Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 0:01:06.674187675 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Total showed frames (1988), playing for (0:01:06.676579008), fps (29.816). Freeing pipeline ... root@imx6qsabresd:/unit_tests# gst-launch-0.10 -vvv filesrc location=3D/hom= e/subodh/Media/v1.m4v ! legacyh264parse ! vpudec framedrop=3Dfalse framerat= e-nu=3D24 framerate-de=3D1 ! imxv4l2sink MFW_GST_V4LSINK_PLUGIN 4.0.1 build on Nov 3 2014 14:23:43. Setting pipeline to PAUSED ... [INFO] Product Info: i.MX6Q/D/S vpudec versions :) plugin: 4.0.1 wrapper: 1.0.54(VPUWRAPPER_ARM_LINUX Build on Oct 20 2014 18:56:13) vpulib: 5.4.26 firmware: 3.1.1.46060 Pipeline is PREROLLING ... /GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src: caps= =3D video/x-h264, width=3D(int)1920, height=3D(int)1080, framerate=3D(frac= tion)24/1, stream-format=3D(string)byte-stream, alignment=3D(string)nal [INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnabl= e 0 /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D video/x-h264= , width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, stream= -format=3D(string)byte-stream, alignment=3D(string)nal /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D video/x-raw-y= uv, format=3D(fourcc)NV12, width=3D(int)1920, height=3D(int)1088, pixel-asp= ect-ratio=3D(fraction)1/1, crop-top=3D(int)0, crop-left=3D(int)0, crop-righ= t=3D(int)0, crop-bottom=3D(int)8, num-buffers-required=3D(int)11, framerate= =3D(fraction)24/1, alignment=3D(int)1 set v4l rotate sucessfully >>V4L_SINK: Actually buffer status: hardware buffer : 11 software buffer : 0 /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPa= d:sink: caps =3D video/x-raw-yuv, format=3D(fourcc)NV12, width=3D(int)1920,= height=3D(int)1088, pixel-aspect-ratio=3D(fraction)1/1, crop-top=3D(int)0,= crop-left=3D(int)0, crop-right=3D(int)0, crop-bottom=3D(int)8, num-buffers= -required=3D(int)11, framerate=3D(fraction)24/1, alignment=3D(int)1 WARNING: from element /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst= _v4lsink_info_t0: Internal data flow problem. Additional debug info: /Data/yocto/fsl-arm-yocto-bsp/build-dfb/tmp/work/cortexa9hf-vfp-neon-poky-l= inux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/libs/gst/base/gstbasesi= nk.c(3638): gst_base_sink_chain_unlocked (): /GstPipeline:pipeline0/MFW_GST= _V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0: Received buffer without a new-segment. Assuming timestamps start from 0. Pipeline is PREROLLED ... Setting pipeline to PLAYING ... full screen size:1920x1080 [V4L Update Display]: left=3D0, top=3D0, width=3D1920, height=3D1080 set v4l display crop sucessfully New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 83247423343 ns. Setting pipeline to PAUSED ... Running time 0:01:23.251386343 render fps 23.916 Setting pipeline to READY ... /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPa= d:sink: caps =3D NULL /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D NULL /GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D NULL /GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src: caps= =3D NULL Setting pipeline to NULL ... Total rendered:1991 Freeing pipeline ... [--->FINALIZE v4l_sink root@imx6qsabresd:/unit_tests# -- Regards, Subodh -- Regards, Subodh -- **************** CAUTION - Disclaimer ***************** This e-mail cont= ains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of= the addressee(s). If you are not the intended recipient, please notify the= sender by e-mail and delete the original message. Further, you are not to = copy, disclose, or distribute this e-mail or its contents to any other pers= on and any such actions are unlawful. This e-mail may contain viruses. UFOM= oviez India Ltd. has taken every reasonable precaution to minimize this ris= k, but is not liable for any damage you may sustain as a result of any viru= s in this e-mail. You should carry out your own virus checks before opening= the e-mail or attachment. UFOMoviez India Ltd. reserves the right to monit= or and review the content of all messages sent to or from this e-mail addre= ss. Messages sent to or from this e-mail address may be stored on the UFOMo= viez India Ltd.'s e-mail system. ***************** End of Disclaimer ******= ************* --------------030800090409050705070309 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,

System Specs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I am using IMX6 Quad SABRE board. I have built the linux image using= the Yocto.

Linux imx6qsabresd 3.10.31-1.1.0_beta+g94a7e47 #1 SMP PREEMPT Su= n Oct 12 02:14:32 IST 2014 armv7l GNU/Linux

root@imx6qsabresd:/unit_tests# gst-launch-1.0 --version
gst-launch-1.0 version 1.2.3
GStreamer 1.2.3


Issue
=3D=3D=3D=3D
I want to play an elementary stream of H264 video at a configurable (not at= runtime) frame rate. Also I do not want to drop any frames
and hence not using videorate plugin.
I tried setting the caps to convey the desired frame rate but at the end of= execution I am getting 30fps for all elementary streams I have tested with= .
But the same content plays at correct FPS in gst-0.10 vpu plugin.
Following are the logs for both pipelines.
Any suggestions regarding debugging the issue are welcome.
Please let me know if should provide any specific information regarding my = setup.

Thanks.


Command Line Output
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
root@imx6qsabresd:/unit_tests# gst-launch-1.0 -vvv filesrc location=3D/h= ome/subodh/Media/v1.m4v ! h264parse ! vpudec frame-drop=3Dfalse ! "video/x-raw,framerate=3D(fraction)24/1" ! imxv4l2s= ink
Setting pipeline to PAUSED ...
[INFO]    Product Info: i.MX6Q/D/S
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =3D video/x= -h264, width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, p= arsed=3D(boolean)true, stream-format=3D(string)avc, alignment=3D(string)au,= codec_data=3D(buffer)01640028ffe1001d67640028ac24a401e0089f966e02020280000= 0030080000018478c192401000668ee06cb22c0
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D video/x-h264= , width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, parsed= =3D(boolean)true, stream-format=3D(string)avc, alignment=3D(string)au, code= c_data=3D(buffer)01640028ffe1001d67640028ac24a401e0089f966e0202028000000300= 80000018478c192401000668ee06cb22c0
[INFO]    bitstreamMode 1, chromaInterleave 1, mapType 0, ti= led2LinearEnable 0
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D video/x-raw, = format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixel-aspect-= ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, colorimetry=3D= (string)bt709, framerate=3D(fraction)24/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =3D video= /x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixel= -aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, colori= metry=3D(string)bt709, framerate=3D(fraction)24/1
/GstPipeline:pipeline0/GstImxV4l2Sink:imxv4l2sink0.GstPad:sink: caps =3D vi= deo/x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pi= xel-aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, col= orimetry=3D(string)bt709, framerate=3D(fraction)24/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =3D vide= o/x-raw, format=3D(string)NV12, width=3D(int)1920, height=3D(int)1088, pixe= l-aspect-ratio=3D(fraction)1/1, interlace-mode=3D(string)progressive, color= imetry=3D(string)bt709, framerate=3D(fraction)24/1
v4l2sink need allocate 11 buffers.
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:01:06.674187675
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Total showed frames (1988), playing for (0:01:06.676579008), fps (29.816= ).
Freeing pipeline ...

root@imx6qsabresd:/unit_tests# gst-launch-0.10 -vvv filesrc location=3D/= home/subodh/Media/v1.m4v ! legacyh264parse ! vpudec framedrop=3Dfalse frame= rate-nu=3D24 framerate-de=3D1 ! imxv4l2sink
MFW_GST_V4LSINK_PLUGIN 4.0.1 build on Nov  3 2014 14:23:43.
Setting pipeline to PAUSED ...
[INFO]    Product Info: i.MX6Q/D/S
vpudec versions :)
    plugin: 4.0.1
    wrapper: 1.0.54(VPUWRAPPER_ARM_LINUX Build on Oct 20 201= 4 18:56:13)
    vpulib: 5.4.26
    firmware: 3.1.1.46060
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src: caps= =3D video/x-h264, width=3D(int)1920, height=3D(int)1080, framerate=3D(frac= tion)24/1, stream-format=3D(string)byte-stream, alignment=3D(string)nal
[INFO]    bitstreamMode 1, chromaInterleave 1, mapType 0, ti= led2LinearEnable 0
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D video/x-h264= , width=3D(int)1920, height=3D(int)1080, framerate=3D(fraction)24/1, stream= -format=3D(string)byte-stream, alignment=3D(string)nal
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D video/x-raw-y= uv, format=3D(fourcc)NV12, width=3D(int)1920, height=3D(int)1088, pixel-asp= ect-ratio=3D(fraction)1/1, crop-top=3D(int)0, crop-left=3D(int)0, crop-righ= t=3D(int)0, crop-bottom=3D(int)8, num-buffers-required=3D(int)11, framerate=3D(fraction)24/1, alignment=3D(int)1
set v4l rotate sucessfully
>>V4L_SINK: Actually buffer status:
    hardware buffer : 11
    software buffer : 0
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPa= d:sink: caps =3D video/x-raw-yuv, format=3D(fourcc)NV12, width=3D(int)1920,= height=3D(int)1088, pixel-aspect-ratio=3D(fraction)1/1, crop-top=3D(int)0,= crop-left=3D(int)0, crop-right=3D(int)0, crop-bottom=3D(int)8, num-buffers-required=3D(int)11, framerate=3D(fraction)24/1, alignment=3D(i= nt)1
WARNING: from element /GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst= _v4lsink_info_t0: Internal data flow problem.
Additional debug info:
/Data/yocto/fsl-arm-yocto-bsp/build-dfb/tmp/work/cortexa9hf-vfp-neon-poky-l= inux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/libs/gst/base/gstbasesi= nk.c(3638): gst_base_sink_chain_unlocked (): /GstPipeline:pipeline0/MFW_GST= _V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
Received buffer without a new-segment. Assuming timestamps start from 0. Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
full screen size:1920x1080
[V4L Update Display]: left=3D0, top=3D0, width=3D1920, height=3D1080
set v4l display crop sucessfully
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 83247423343 ns.
Setting pipeline to PAUSED ...
Running time 0:01:23.251386343 render fps 23.916
Setting pipeline to READY ...
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPa= d:sink: caps =3D NULL
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =3D NULL
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =3D NULL
/GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src: caps= =3D NULL
Setting pipeline to NULL ...
Total rendered:1991
Freeing pipeline ...
[--->FINALIZE v4l_sink
root@imx6qsabresd:/unit_tests#


--=20
Regards,
Subodh

--=20
Regards,
Subodh


-- **************** CAUTION - Disclaimer ***************** This e-mail cont= ains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of= the addressee(s). If you are not the intended recipient, please notify the= sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute th= is e-mail or its contents to any other person and any such actions are unla= wful. This e-mail may contain viruses. UFOMoviez India Ltd. has taken every= reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of= any virus in this e-mail. You should carry out your own virus checks befor= e opening the e-mail or attachment. UFOMoviez India Ltd. reserves the right= to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or f= rom this e-mail address may be stored on the UFOMoviez India Ltd.'s e-mail = system. ***************** End of Disclaimer ******************* --------------030800090409050705070309--