[SOLVED][ubuntu] screen recording through commend line

*nix specific usage questions
peng1774
New Cone
New Cone
Posts: 4
Joined: 23 Nov 2016 20:17

[SOLVED][ubuntu] screen recording through commend line

Postby peng1774 » 08 Dec 2016 00:26

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
Last edited by peng1774 on 08 Dec 2016 20:11, edited 1 time in total.

peng1774
New Cone
New Cone
Posts: 4
Joined: 23 Nov 2016 20:17

Re: [ubuntu] screen recording through commend line

Postby peng1774 » 08 Dec 2016 18:35

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

peng1774
New Cone
New Cone
Posts: 4
Joined: 23 Nov 2016 20:17

Re: [ubuntu] screen recording through commend line

Postby peng1774 » 08 Dec 2016 20:10

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.

rmvb
Blank Cone
Blank Cone
Posts: 47
Joined: 19 Oct 2011 11:14
Operating System: Linux

Re: [SOLVED][ubuntu] screen recording through commend line

Postby rmvb » 16 Dec 2016 08:07

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: [SOLVED][ubuntu] screen recording through commend line

Postby Rémi Denis-Courmont » 16 Dec 2016 18:36

Code: Select all

% cat `which cvlc` #! /bin/sh exec /usr/bin/vlc -I "dummy" "$@"
Yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rmvb
Blank Cone
Blank Cone
Posts: 47
Joined: 19 Oct 2011 11:14
Operating System: Linux

Re: [SOLVED][ubuntu] screen recording through commend line

Postby rmvb » 16 Dec 2016 18:52

Nice !
Not such a definitive suggestion for this question Rémi?

MrUmunhum
New Cone
New Cone
Posts: 6
Joined: 18 Mar 2011 02:51
Location: Mt Umunhum, Santa Clara county, USA, Earth
Contact:

Re: [SOLVED][ubuntu] screen recording through commend line

Postby MrUmunhum » 14 Jan 2017 19:49

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.
William Estrada
Mt Umunhum, CA, USA
HTTP://Mt-Umunhum-Wireless.net
Skype: MrUmunhum

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: [SOLVED][ubuntu] screen recording through commend line

Postby Rémi Denis-Courmont » 15 Jan 2017 15:14

Does the file play in VLC? Firefox simply might not support that format...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rmvb
Blank Cone
Blank Cone
Posts: 47
Joined: 19 Oct 2011 11:14
Operating System: Linux

Re: [SOLVED][ubuntu] screen recording through commend line

Postby rmvb » 15 Jan 2017 16:47

Code: Select all

...cvlc -I dummy...
...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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 11 guests