Video recording with 30 frame rate.

stmoon munhoney at gmail.com
Mon Aug 18 10:19:30 PDT 2014


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

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


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 ...


However, it play like 3x fast movie....

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..

Thanks in advance







2014-08-19 1:42 GMT+09:00 Dušan Poizl [via GStreamer-devel] <
ml-node+s966125n4668334h76 at n4.nabble.com>:

> 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] <http://user/SendEmail.jtp?type=node&node=4668329&i=0>>:
>
>  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] <http://user/SendEmail.jtp?type=node&node=4668325&i=0>>:
>>
>>  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://user/SendEmail.jtp?type=node&node=4668323&i=0>
>>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4668323&i=1>
>>> 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
>>> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>> ------------------------------
>> View this message in context: Re: Video recording with 30 frame rate.
>> <http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668325.html>
>>
>> Sent from the GStreamer-devel mailing list archive
>> <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list[hidden email] <http://user/SendEmail.jtp?type=node&node=4668327&i=0>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email] <http://user/SendEmail.jtp?type=node&node=4668327&i=1>
>> 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
>> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>  *result* (4M) Download Attachment
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4668329/0/result>
>  *result2* (94K) Download Attachment
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4668329/1/result2>
>
> ------------------------------
> View this message in context: Re: Video recording with 30 frame rate.
> <http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668329.html>
> Sent from the GStreamer-devel mailing list archive
> <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
>
>
> _______________________________________________
> gstreamer-devel mailing list[hidden email] <http://user/SendEmail.jtp?type=node&node=4668334&i=0>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4668334&i=1>
> 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
> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4668321&code=bXVuaG9uZXlAZ21haWwuY29tfDQ2NjgzMjF8NDU3MTg4MTE4>
> .
> NAML
> <http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-recording-with-30-frame-rate-tp4668321p4668336.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140818/289f61b9/attachment-0001.html>


More information about the gstreamer-devel mailing list