Video recording with 30 frame rate.
Tim Müller
tim at centricular.com
Tue Aug 19 00:42:55 PDT 2014
On Mon, 2014-08-18 at 10:19 -0700, stmoon wrote:
Hi,
> Thank you for fast reply...
>
>
> I tried to do it..
>
>
> However, it didnot works....
> xxx at xxx:~$ gst-launch-0.10 v4l2src device=/dev/video1 !
> video/x-raw-yuv , format=I420 ! ffmpegcolorspace ! avimux ! filesink
> location=test.avi
> WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0
If you write it like this, the "format" field will be of type 'string',
which is how it's used in 1.0 (video/x-raw,format=(string)I420) but not
0.10. The 'string' type is incompatible with the 'fourcc' type used in
0.10.
> xxx at xxx:~$ gst-launch-0.10 v4l2src device=/dev/video1 !
> video/x-raw-yuv , format="I420" ! ffmpegcolorspace ! avimux ! filesink
> location=test.avi
> WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0
Same here, the quotes are just for the shell and don't change anything.
>
>
>
> So I change a little like this.. and WORKS...
>
>
> xxx at xxx:~$ gst-launch-0.10 v4l2src device=/dev/video1 !
> video/x-raw-yuv , format=\(fourcc\)I420 ! ffmpegcolorspace ! avimux !
> filesink location=test.avi
> Setting pipeline to PAUSED ...
Yup, that is correct for 0.10.
> However, it play like 3x fast movie....
Try adding a videorate in front of avimux, or use a different container
such as matroskamux or qtmux.
> Thus,,, I think it is working max 10 frame when playinh 1280x720...
> because, the attached file (result2) shows like below, when I play
>
>
> 0:00:01.035881398 3255 0x154da00 INFO v4l2src
> v4l2src_calls.c:278:gst_v4l2src_set_capture:<v4l2src0> Set framerate
> to 10/1 and duration to 0:00:00.100000000
>
>
>
> However, I don't know how it plays 30 frame in this caes.
> * gst-launch-0.10 -e v4l2src device=/dev/video1 !
> video/x-raw-yuv, framerate=30/1, width=1280, height=720 !
> vp8enc ! webmmux ! filesink location=test.webm
>
> But.. I think it seems to work at 10 frame..
>
The framerate negotiated via the caps is more of a 'max' framerate for
these kind of webcams. The actual number of frames per second you get
will depend on things like light conditions etc., the sensor might give
you fewer frames per second if there's not enough light, for example.
Cheers
-Tim
>
> Thanks in advance
>
>
>
>
>
>
>
>
>
>
>
>
> 2014-08-19 1:42 GMT+09:00 Dušan Poizl [via GStreamer-devel] <[hidden
> email]>:
> try run gst-launch-0.10 v4l2src device=/dev/video1 !
> video/x-raw-yuv,format=I420 ! ffmpegcolorspace ! avimux !
> filesink location=test.avi
>
> Dňa 18.08.2014 o 14:36 stmoon napísal(a):
>
> > Thank you very much..
> >
> >
> > However, I cannot solve this problem
> >
> >
> > I attach the log (GST_DEBUG=4 )
> >
> >
> > 2014-08-18 18:46 GMT+09:00 Dušan Poizl [via GStreamer-devel]
> > <[hidden email]>:
> >
> > I have same issue with my notebook webcam. When you
> > run GST_DEBUG=4 gst-launch v4l2src ! xvimagesink it
> > should print out
> >
> > v4l2
> > gstv4l2object.c:2729:gst_v4l2_object_get_caps:<v4l2src0> probed caps: video/x-raw, format=(string)YUY2, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction){ 10/1 }; video/x-raw, format=(string)YUY2, width=(int)960, height=(int)544, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction){ 10/1 }; ... and much more
> >
> > one of the caps is "video/x-raw,
> > format=(string)I420, width=(int)1280,
> > height=(int)720, pixel-aspect-ratio=(fraction)1/1,
> > interlace-mode=(string)progressive,
> > framerate=(fraction){ 30/1 }"
> >
> > so first caps which is printed is YUV2 format but
> > only 10fps. but there is I420 which enable 30fps. So
> > try run your piepline with GST_DEBUG=4 so you find
> > out all supported caps to find suitable format.
> >
> > Dňa 18.08.2014 o 03:07 stmoon napísal(a):
> >
> > > no...
> > >
> > >
> > >
> > >
> > > 1280x720 and 30 fps .. but webm file is
> > > generated...
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 2014-08-18 1:36 GMT+09:00 Dušan Poizl [via
> > > GStreamer-devel] <[hidden email]>:
> > >
> > > what resolution have that cheese? because
> > > you may limit your resolution
> > > to 640x480 to be able record 30fps.
> > >
> > > Dňa 17.08.2014 o 16:20 stmoon napísal(a):
> > >
> > > > Hi. I'm newbie of GStreamer.
> > > >
> > > >
> > > > I want to record video from camera (
> > > >
> > > http://www.hardkernel.com/main/products/prdt_info.php?g_code=G137517754892 )
> > > >
> > > > so I use gst-launch like below
> > > >
> > > > gst-launch-0.10 v4l2src
> > > device=/dev/video1 ! ffmpegcolorspace !
> > > avimux !
> > > > filesink location=test.avi
> > > >
> > > > however the problem is the frame rate is
> > > 10 !!!
> > > >
> > > > in this website
> > > >
> > > (http://www.hardkernel.com/main/products/prdt_info.php?g_code=G137517754892)
> > > > , it can record 30 frame
> > > > however it can reocrd just 10 frame.
> > > >
> > > > Can you advice me how to control the
> > > frame rate?
> > > >
> > > > I tried something like below.. but all
> > > fails...
> > > >
> > > > 1. gst-launch-0.10 v4l2src
> > > device=/dev/video1 !
> > > video/x-raw-yuv,width=1280,
> > > > height=720, framerate=30/1 !
> > > ffmpegcolorspace ! avimux ! filesink
> > > > location=test.avi
> > > > ==> in this case, just record 1 sec or
> > > 3 sec and.. too fast..
> > > >
> > > > However, I can record it with 30 frame
> > > rate by using cheese program
> > > >
> > > (https://help.ubuntu.com/community/Webcam)
> > > >
> > > > Thank you in advances
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321.html
> > > > Sent from the GStreamer-devel mailing
> > > list archive at Nabble.com.
> > > >
> > > _______________________________________________
> > > > gstreamer-devel mailing list
> > > > [hidden email]
> > > >
> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > >
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > >
> > >
> > >
> > > __________________________________________
> > > If you reply to this email, your message
> > > will be added to the discussion below:
> > > http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668323.html
> > > To unsubscribe from Video recording with
> > > 30 frame rate., click here.
> > > NAML
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > View this message in context: Re: Video recording
> > > with 30 frame rate.
> > >
> > > Sent from the GStreamer-devel mailing list archive
> > > at Nabble.com.
> > >
> > >
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >
> > ____________________________________________________
> > If you reply to this email, your message will be
> > added to the discussion below:
> > http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668327.html
> > To unsubscribe from Video recording with 30 frame
> > rate., click here.
> > NAML
> >
> >
> >
> > result (4M) Download Attachment
> > result2 (94K) Download Attachment
> >
> >
> > ____________________________________________________________
> > View this message in context: Re: Video recording with 30
> > frame rate.
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> ______________________________________________________________
> If you reply to this email, your message will be added to the
> discussion below:
> http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668334.html
> To unsubscribe from Video recording with 30 frame rate., click
> here.
> NAML
>
>
>
>
> ______________________________________________________________________
> View this message in context: Re: Video recording with 30 frame rate.
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list