[Gambas-user] gb.media record to file
T Lee Davidson
t.lee.davidson at gmail.com
Wed Apr 15 20:04:14 CEST 2020
On 4/14/20 10:47 AM, Mayost Sharon wrote:
> First, thank you
>
> I tried the first example and it helps me a lot.
>
> When I want to change the recording to 30/1 frame per second it doesn't work, the file stays 2.8kB
> Only if I leave on 1/1 does it record the screen.
>
> I tried on Benoît Minisini's recommendation to try the gst-launch-1.0 tool and it does work when I change to 30/1
> The command is:
> gst-launch-1.0 ximagesrc! video / x-raw, framerate = 30/1! videoconvert! theoraenc! oggmux! filesink location = desktop.ogg
>
> Thanks
>
[snip]
>>
>> Hi,
>>
>> I recommend these pages of the Italian wiki:
>> https://www.gambas-it.org/wiki/index.php?title=La_gestione_del_video_e_dei_file_video_con_il_componente_gb.media
>>
>> Regards
>> Gianluigi
> ------- End of Original Message -------
>
The command line you gave does not work for me. For a 10 second screen capture, it gives a video file of only about 1 second.
However,
gst-launch-1.0 ximagesrc ! video/x-raw,framerate=5/1 ! videoconvert ! theoraenc ! oggmux ! filesink location=desktop.ogg
does work for me giving a video length nearly equal to the length of the screen capture.
https://gstreamer.freedesktop.org/documentation/ximagesrc/index.html states that the framerate of ximagesrc defaults to 25 fps.
Even so, bypassing (ie. not using) the filter still gives me a short video file.
I don't know why that is, and my research has so far not enlightened me.
It seems, though, that the last three examples linked on the page Gianluigi recommended would be more suited to your stated
objective of capturing camera output to a file.
--
Lee
P.S. Please don't top post.
↓ ↓ ↓ ↓ ↓
More information about the User
mailing list