Using ffmpeg to record what comes from the web browser

Technical issues/questions of an intermediate or advanced nature.
Kulle
Black ninja
Black ninja
Posts: 76
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit
Location: Berlin

Re: Using ffmpeg to record what comes from the web browser

Post#16 by Kulle » 06 Feb 2019, 14:35

Hi Donald,
The last step (In Volume Control: click the device and select Monitor of ...) costs time.
It is better, everything on the command line:

Code: Select all

ffmpeg -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -c:a libmp3lame output.mkv
I found that here:
https://ask.fedoraproject.org/en/questi ... mmandline/
PS
I had already used ffplay, but I did not know the many options yet.
Many Thanks

donald
Full of knowledge
Full of knowledge
Posts: 1461
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Using ffmpeg to record what comes from the web browser

Post#17 by donald » 06 Feb 2019, 22:25

The last step ...... costs time.
Kulle, the settings in the pulseaudio mixer (record tab) only have to be made once.
It stays that way, you do not have to do it again and again..

The record tab is empty until you actually record something.
The "Monitor of..." setting is retained.

EDIT
You could add some quality/bitrate options if you encode to mp3 format.
( output.mp3 not mkv )
https://trac.ffmpeg.org/wiki/Encode/MP3

or even better, record as wav format and convert it to mp3 later.
Use lame; see lame --help and lame --longhelp
Lame offers more options to get "better" sounding mp3 files.

Example:

Code: Select all

lame -m s -b 256 --strictly-enforce-ISO -q 2 ./music.wav music.mp3

raja
Samurai
Samurai
Posts: 156
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and v4.0-rc1-64
Location: Chennai,India

Re: Using ffmpeg to record what comes from the web browser

Post#18 by raja » 11 Feb 2019, 17:53

This is a bit cumbersome procedure to make clean audio/video capture, which does not require much editing. Audio streams can be recorded using Audacious (Porteus 4.0)or VLC as they have , "Record" function. Straight forward and easy, if the Players work as intended. Both work for me.

For Video capture, Simple screen recorder, is the best, easy and simple. In Porteus 4.0, I tested by activating dependencies separately, and Screen Recorder works fine, using installed FFMPEG and Pulse Audio server. I didn't merge and forgot to untick "save session" during shut down. All those separate modules kept in a directory get activated on boot. No issues on that.

But, after merging and building a single module I, tested in Neko's Cinnamon. It does its job ,but Video frames are jumping, audio is perfect. Any suggestions?

Tried in old Porteus 4.0rc4. Pulse audio server not working. Jack and Alsa too fail.

jss or others who have a developer setup, may try to compile a "SSR" module,using his qt5 and current ffmpeg and current libraries installed in Porteus 4.0.
Linux Kernel-4.4.120-32 bit; Linux kernel-4.19.7-64 bit.

Kulle
Black ninja
Black ninja
Posts: 76
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit
Location: Berlin

Re: Using ffmpeg to record what comes from the web browser

Post#19 by Kulle » 14 Feb 2019, 16:41

Hi raja,
The Natural-Reader can speak:
https://www.naturalreaders.com/online/

If I want to record such spoken text (for example, as an mp3 file),
then I have to use the cumbersome procedure discussed above.
I tried: Audacious and VLC are not working in this case

Post Reply