Page 1 of 1
[SOLVED][ubuntu] screen recording through commend line
Posted: 08 Dec 2016 00:26
by peng1774
Hi all,
I asked this question before. but i guess experts didn't see it, i got no reply.
but i think i will just update what i have done for so far. and pull out the question again.
I have found a commend to record:
cvlc -I dummy screen:// --screen-fps=25 --quiet --sout "#transcode{vcodec=h264}:standard{access=file,mux=mp4,dst="screenrecord.mp4"}"
this will build the mp4 video file of recorded screen, you can see this as a solution. but i have a few following questions:
1. to stop the recording, i have to use ctr+c to manually stop. does anyone have a better solution to stop?
2. the recorded video is compressed mp4 video. does anyone know how to get a uncompressed avi? (i tried to replace 'vcodec=h264' by 'vcodec=hfyu', and 'mux=mp4' by 'mux=avi', and name it 'screenrecord.avi', but the recorded file is empty).
any advise will be greatly appreciated. thanks guys
Re: [ubuntu] screen recording through commend line
Posted: 08 Dec 2016 18:35
by peng1774
figured out solution to question 1:
timeout 15 cvlc -I dummy screen:// --screen-fps=30 --quiet --sout "#transcode{vcodec=h264}:standard{access=file,mux=mp4,dst="screeb.mp4"}" --run-time=10
this command will run vlc for 15 second, and record the first 10 second.
still looking for solution to #2
Re: [ubuntu] screen recording through commend line
Posted: 08 Dec 2016 20:10
by peng1774
solution to #2:
timeout 15 cvlc -I dummy screen:// --screen-fps=30 --quiet --sout "#transcode{vcodec=HFYU}:standard{access=file,mux=avi,dst="screenrecord.avi"}" --run-time=10
simply use huffyuv to make lossless avi. i guess there is no way to make uncompressed avi. so lossless should be the second choice.
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 16 Dec 2016 08:07
by rmvb
Hi man
This surely isn't an answer, more a question for me : isn't
vlc -I dummy the same as
cvlc ?
Help didn't help:
Code: Select all
vlc --longhelp --advanced |grep -A10 "intf" # <--how did I find that !!! ???
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
--
-I, --intf <Chaîne> Module d'interface
--extraintf <Chaîne> Modules d'interfaces supplémentaires
--control <Chaîne> Interfaces de contrôle
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 16 Dec 2016 18:36
by Rémi Denis-Courmont
Code: Select all
% cat `which cvlc`
#! /bin/sh
exec /usr/bin/vlc -I "dummy" "$@"
Yes.
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 16 Dec 2016 18:52
by rmvb
Nice !
Not such a definitive suggestion for
this question Rémi?
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 14 Jan 2017 19:49
by MrUmunhum
OK, On my Fedora 23 Linux, I used:
Code: Select all
timeout 15 cvlc -I dummy screen:// --screen-fps=30 --quiet --sout "#transcode{vcodec=HFYU}:standard{access=file,mux=avi,dst="screenrecord.avi"}" --run-time=10
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
Which ran for 15 seconds, created a file "screenrecord.avi". But when I attempted to open it in Firefox with default program, I get an error message "Could not demultiplex stream".
Any ideas? I am really new to VLC.
Thanks for you time.
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 15 Jan 2017 15:14
by Rémi Denis-Courmont
Does the file play in VLC? Firefox simply might not support that format...
Re: [SOLVED][ubuntu] screen recording through commend line
Posted: 15 Jan 2017 16:47
by rmvb
...in Firefox with default program...
Any ideas? I am really new to VLC.
Thanks for you time.
As Denis showed us above -I dummy is useless with
cvlc.
I don't understand what means "in FF with default program..", no plugin or you mean something else ?
Also, just being a transcoder newby myself too, I'd advise you to use ogg+theora because it is opensource & royalties free, so you have more chance to find help @ Xiph.org , e.g the mime type (application/ogg or old application/x-ogg). BTW, I don't know if if you open your video file in FF directly (File/Open or right-clik/open with) or embedded in a web page. Maybe this is important.
Note I don't anything about the format you choose, which means I don't say it's a bad choice, and your choice may be mandatory for you. I just advise things from Xiph because I ended in success when trying them (audio ogg & flac).
Bye bye and good luck