<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">In general, doing something like this
will not be easy, since the timestamps need to be modified. I know
that the FSL VPU decoder element does some weird timestamp
estimation which is very different from the other GStreamer video
decoders. Perhaps it can modify the timestamps, but if so, it is a
special feature of this element.<br>
<br>
That's a good question, actually. Is it possible to re-timestamp a
video stream to match a certain framerate?<br>
<br>
On 2014-12-09 15:28, Subodh Chiwate wrote:<br>
</div>
<blockquote cite="mid:54870729.9060504@ufomoviez.com" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi,<br>
<br>
System Specs <br>
==========<br>
I am using <b>IMX6 Quad SABRE board</b>. I have built the linux
image using the <b>
Yocto</b>. <br>
<br>
Linux imx6qsabresd <b>3.10.31-1.1.0</b>_beta+g94a7e47 #1 SMP
PREEMPT Sun Oct 12 02:14:32 IST 2014 armv7l GNU/Linux<br>
<br>
root@imx6qsabresd:/unit_tests# gst-launch-1.0 --version <br>
<b>gst-launch-1.0 version 1.2.3</b><b><br>
</b><b>GStreamer 1.2.3</b><br>
<br>
<br>
Issue<br>
====<br>
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<br>
and hence not using videorate plugin. <br>
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.<br>
But the same content plays at correct FPS in gst-0.10 vpu plugin.<br>
Following are the logs for both pipelines.<br>
Any suggestions regarding debugging the issue are welcome.<br>
Please let me know if should provide any specific information
regarding my setup.<br>
<br>
Thanks.<br>
<br>
<br>
Command Line Output<br>
===============<br>
root@imx6qsabresd:/unit_tests# <b>gst-launch-1.0 -vvv filesrc
location=/home/subodh/Media/v1.m4v ! h264parse ! vpudec
frame-drop=false !
</b><b>"video/x-raw,framerate=(fraction)24/1" </b><b>!
imxv4l2sink</b><br>
Setting pipeline to PAUSED ...<br>
[INFO] Product Info: i.MX6Q/D/S<br>
Pipeline is PREROLLING ...<br>
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
video/x-h264, width=(int)1920, height=(int)1080,
framerate=(fraction)24/1, parsed=(boolean)true,
stream-format=(string)avc, alignment=(string)au,
codec_data=(buffer)01640028ffe1001d67640028ac24a401e0089f966e020202800000030080000018478c192401000668ee06cb22c0<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =
video/x-h264, width=(int)1920, height=(int)1080,
framerate=(fraction)24/1, parsed=(boolean)true,
stream-format=(string)avc, alignment=(string)au,
codec_data=(buffer)01640028ffe1001d67640028ac24a401e0089f966e020202800000030080000018478c192401000668ee06cb22c0<br>
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0,
tiled2LinearEnable 0<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =
video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, colorimetry=(string)bt709,
framerate=(fraction)24/1<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps
= video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, colorimetry=(string)bt709,
framerate=(fraction)24/1<br>
/GstPipeline:pipeline0/GstImxV4l2Sink:imxv4l2sink0.GstPad:sink:
caps = video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, colorimetry=(string)bt709,
framerate=(fraction)24/1<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps
= video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, colorimetry=(string)bt709,<b>
framerate=(fraction)24/1</b><br>
v4l2sink need allocate 11 buffers.<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
Got EOS from element "pipeline0".<br>
Execution ended after 0:01:06.674187675<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
Total showed frames (1988), playing for <b>(0:01:06.676579008),
fps (29.816).</b><br>
Freeing pipeline ...<br>
<br>
root@imx6qsabresd:/unit_tests# <b>gst-launch-0.10 -vvv filesrc
location=/home/subodh/Media/v1.m4v ! legacyh264parse ! vpudec
framedrop=false framerate-nu=24 framerate-de=1 ! imxv4l2sink
</b><br>
MFW_GST_V4LSINK_PLUGIN 4.0.1 build on Nov 3 2014 14:23:43.<br>
Setting pipeline to PAUSED ...<br>
[INFO] Product Info: i.MX6Q/D/S<br>
vpudec versions :)<br>
plugin: 4.0.1<br>
wrapper: 1.0.54(VPUWRAPPER_ARM_LINUX Build on Oct 20 2014
18:56:13)<br>
vpulib: 5.4.26<br>
firmware: 3.1.1.46060<br>
Pipeline is PREROLLING ...<br>
/GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src:
caps = video/x-h264, width=(int)1920, height=(int)1080,
framerate=(fraction)24/1, stream-format=(string)byte-stream,
alignment=(string)nal<br>
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0,
tiled2LinearEnable 0<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps =
video/x-h264, width=(int)1920, height=(int)1080,
framerate=(fraction)24/1, stream-format=(string)byte-stream,
alignment=(string)nal<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps =
video/x-raw-yuv, format=(fourcc)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
crop-top=(int)0, crop-left=(int)0, crop-right=(int)0,
crop-bottom=(int)8, num-buffers-required=(int)11,
framerate=(fraction)24/1, alignment=(int)1<br>
set v4l rotate sucessfully<br>
>>V4L_SINK: Actually buffer status:<br>
hardware buffer : 11<br>
software buffer : 0<br>
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPad:sink:
caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
crop-top=(int)0, crop-left=(int)0, crop-right=(int)0,
crop-bottom=(int)8, num-buffers-required=(int)11,
framerate=(fraction)24/1, alignment=(int)1<br>
WARNING: from element
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:
Internal data flow problem.<br>
Additional debug info:<br>
/Data/yocto/fsl-arm-yocto-bsp/build-dfb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r2/gstreamer-0.10.36/libs/gst/base/gstbasesink.c(3638):
gst_base_sink_chain_unlocked ():
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0:<br>
Received buffer without a new-segment. Assuming timestamps start
from 0.<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
full screen size:1920x1080<br>
[V4L Update Display]: left=0, top=0, width=1920, height=1080<br>
set v4l display crop sucessfully<br>
New clock: GstSystemClock<br>
Got EOS from element "pipeline0".<br>
Execution ended after 83247423343 ns.<br>
Setting pipeline to PAUSED ...<br>
<b>Running time 0:01:23.251386343 render fps 23.916</b><br>
Setting pipeline to READY ...<br>
/GstPipeline:pipeline0/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0.GstPad:sink:
caps = NULL<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:src: caps = NULL<br>
/GstPipeline:pipeline0/GstVpuDec:vpudec0.GstPad:sink: caps = NULL<br>
/GstPipeline:pipeline0/GstLegacyH264Parse:legacyh264parse0.GstPad:src:
caps = NULL<br>
Setting pipeline to NULL ...<br>
Total rendered:1991<br>
Freeing pipeline ...<br>
[--->FINALIZE v4l_sink<br>
root@imx6qsabresd:/unit_tests# <br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Subodh</pre>
-- **************** CAUTION - Disclaimer ***************** This
e-mail contains 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 person and any
such actions are unlawful. 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 before 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 from this e-mail address may be stored on the
UFOMoviez India Ltd.'s e-mail system. ***************** End of
Disclaimer *******************
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>