[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] Help setting frame rate with videorate
From:       "Noe Nieto" <tzicatl () gmail ! com>
Date:       2008-09-30 0:56:21
Message-ID: a6165f2a0809291756y130f4759yd113d45befc63df3 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi All

I am experiencing the same problem in a similar situation. On this case the
MJPEG source is at 25 fps. Here is the example:

gnomevfssrc location=$CAMERA ! typefind ! multipartdemux ! image/jpeg,
framerate=25/1 ! jpegdec ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink
= location=test0.ogg

The first problem here is that past the jpegdec element, the framerate is
ignored and falls back to 0/1.
The second problem is that If I try to force the framerate, say, right
before ffmpegcolorspace, then the pipeline will not construct.
The third problem occurs if I use the videorate element. The video
accumulates frames, but totem only displays a still picture instead of a
video.

Can anyone advice?

Regards.

Noe Nieto.


2007/12/19 Aaron Lindsey <aaron@8bh.com>

> With the help from Edward and quite a bit of searching on my own I was
> able to solve my problem.  The frame rates seemed to be ignored and 1/1
> was always assumed until I used the multipartdemux element.  Here is the
> pipeline that finally worked:
>
>  gnomevfssrc location=http://url?resolution=320x240\&fps=2<http://url?resolution=320x240%5C&fps=2>!
> multipartdemux ! image/jpeg,framerate=2/1 ! jpegdec ! theoraenc ! oggmux
> ! filesink location=test.ogg
>
> After looking at the docs for multipartdemux, I'm not sure why I got any
> video at all before.  I guess jpegdec was figuring out some way to parse
> the multipart stream into jpegs with the side effect that the frame rate
> from the caps filter was ignored....or something.  Haven't dug deep enough
> into gstreamer to really know.  Can anyone shed some light?
>
> Aaron
>
> > Hi,
> >
> >   Add a capsfilter informing the content is jpeg data at Xfps.
> >
> >   Ex : gnomevfssrc ! image/jpeg,framerate=2/1 ! jpegdec ....
> >
> >     Edward
> >
>
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi All<br><br>I am experiencing the same problem in a similar \
situation. On this case the MJPEG source is at 25 fps. Here is the \
example:<br><br>gnomevfssrc location=$CAMERA ! typefind ! multipartdemux ! \
image/jpeg, framerate=25/1 ! jpegdec ! ffmpegcolorspace ! theoraenc ! oggmux ! \
filesink = location=test0.ogg<br> <br>The first problem here is that past the jpegdec \
element, the framerate is ignored and falls back to 0/1. <br>The second problem is \
that If I try to force the framerate, say, right before ffmpegcolorspace, then the \
pipeline will not construct.<br> The third problem occurs if I use the videorate \
element. The video accumulates frames, but totem only displays a still picture \
instead of a video.<br><br>Can anyone advice?<br><br>Regards.<br><br>Noe \
Nieto.<br><br><br><div class="gmail_quote"> 2007/12/19 Aaron Lindsey <span \
dir="ltr">&lt;<a href="mailto:aaron@8bh.com">aaron@8bh.com</a>&gt;</span><br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> With the help from Edward and quite a bit of \
searching on my own I was<br> able to solve my problem. &nbsp;The frame rates seemed \
to be ignored and 1/1<br> was always assumed until I used the multipartdemux element. \
&nbsp;Here is the<br> pipeline that finally worked:<br>
<div class="Ih2E3d"><br>
&nbsp;gnomevfssrc location=<a href="http://url?resolution=320x240%5C&amp;fps=2" \
target="_blank">http://url?resolution=320x240\&amp;fps=2</a> !<br> \
                </div>multipartdemux ! image/jpeg,framerate=2/1 ! jpegdec ! theoraenc \
                ! oggmux<br>
! filesink location=test.ogg<br>
<br>
After looking at the docs for multipartdemux, I&#39;m not sure why I got any<br>
video at all before. &nbsp;I guess jpegdec was figuring out some way to parse<br>
the multipart stream into jpegs with the side effect that the frame rate<br>
from the caps filter was ignored....or something. &nbsp;Haven&#39;t dug deep \
enough<br> into gstreamer to really know. &nbsp;Can anyone shed some light?<br>
<div class="Ih2E3d"><br>
Aaron<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; &nbsp; Add a capsfilter informing the content is jpeg data at Xfps.<br>
&gt;<br>
&gt; &nbsp; Ex : gnomevfssrc ! image/jpeg,framerate=2/1 ! jpegdec ....<br>
&gt;<br>
&gt; &nbsp; &nbsp; Edward<br>
&gt;<br>
<br>
<br>
</div><div><div></div><div \
class="Wj3C7c">-------------------------------------------------------------------------<br>
 SF.Net email is sponsored by:<br>
Check out the new SourceForge.net Marketplace.<br>
It&#39;s the best place to buy or sell services<br>
for just about anything Open Source.<br>
<a href="http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace" \
target="_blank">http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace</a><br>
 _______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br> \
</div></div></blockquote></div><br></div>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic