<br clear="all">Hi,<br><br> Thanks for the clarifications.<br>
<br><br><div class="gmail_quote">On Sat, Aug 6, 2011 at 1:48 PM, Edward Hervey <span dir="ltr"><<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
On Fri, 2011-08-05 at 17:11 +0530, vineeth wrote:<br>
> Hi,<br>
> I wanted to know the difference between "duration" and<br>
> "media-duration" in GnlObject and I couldn't comprehend this clearly<br>
> from the documentation.<br>
<br>
</div> Duration is for how long something will be played from the outside.<br>
Media-duration is how long you're taking from the contained media.<br>
<br>
99.99% of the time you want media_duration == duration.<br>
<br>
If you want a source to play faster/slower (without any extra cost),<br>
you can modify those values accordingly.<br>
Ex : I want to playback an intro video two times slower. That video is<br>
originally 3s:<br>
media_duration = 3s<br>
duration = 6s<br>
<br>
The rate is computed from the duration/media_duration values<br>
automatically, it's just provided as a convenience.<br>
<div class="im"><br>
> If I want the Gnl pipeline to render at a faster rate, (but without<br>
> changing the timestamp of sources) which property should I change? I<br>
> read that rate is a read-only property.<br>
<br>
</div> You can either:<br>
* Seek with a rate of 0.5 if you just want to play it back slower<br>
* OR you'll have to modify all the source duration/media_duration<br>
values accordingly.<br></blockquote><div> </div><div>I was trying a mp4 (with h264) trim on 0.10.32 <br><br>When the duration was made half of media-duration, I was expecting the pipeline to run faster, however, I didn't see any significant change in save time (compared to case where duration and media-duration are same). <br>
<br>for ex:<br><br><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">gst-launch gnlcomposition { gnlfilesource name="s1" location="/mnt/hgfs/ubuntu_shared/h264/4.mp4" start=0 duration=10000000000 media-start=0 media-duration=10000000000 } ! ffmpegcolorspace ! x264enc ! mp4mux ! filesink location="/mnt/hgfs/ubuntu_shared/output-d-10-md-10.mp4" </span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">
</span><p style="color: rgb(0, 0, 0);" class="MsoNormal"></p><p style="color: rgb(0, 0, 0);" class="MsoNormal">Time take : ~41 seconds</p><p style="color: rgb(0, 0, 0);" class="MsoNormal"><br></p><p style="color: rgb(0, 0, 0);" class="MsoNormal">
<span style="font-family: courier new,monospace;">gst-launch gnlcomposition { gnlfilesource name="s1" location=/mnt/hgfs/ubuntu_shared/h264/4.mp4 start=0 duration=5000000000 media-start=0 media-duration=10000000000 } ! ffmpegcolorspace ! x264enc ! mp4mux ! filesink location=/mnt/hgfs/ubuntu_shared/output-d-5-md-10.mp4</span><br>
</p><span style="color: rgb(0, 0, 0);">
</span>Time take : ~41 seconds<br><span style="color: rgb(0, 0, 0);"> </span><br>Our intention is to speed up the gnl pipeline so that the media content is saved faster. Is there anything missing / incorrect in the above pipeline?<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Edward<br>
<br>
> Thanks.<br>
> --vineeth<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>