[solved via direct download of blob video instead] Desktop screen recorder *with* *sound*

Technical issues/questions of an intermediate or advanced nature.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[solved via direct download of blob video instead] Desktop screen recorder *with* *sound*

Post#1 by Rava » 22 Sep 2022, 09:34

Up to now I always used recordmydesktop-0.3.8.1-x86_64-1ftm.xzm for desktop screen recording purposes. It is a bit dated but worked, I usually have to make a screenshot first and figure out the

Code: Select all

 -x  -y  --width  --height
parameters.
But sound never worked, it is completely distorted. Therefore I run it always as e.g.

Code: Select all

recordmydesktop --no-sound --no-cursor -x 1 -y 1 --width 1024 --height 768
And now I want to record a video that is only a blob:https:// stream I found no solution of downloading in any other way.

What desktop screen recorders do you use where the sound as well as the video works flawlessly.

Or does anyone know a method to download blob:https:// streams?
Cheers!
Yours Rava

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

Desktop screen recorder *with* *sound*

Post#2 by donald » 22 Sep 2022, 22:45

...how about this thread - might still contain useful info.
Using ffmpeg to record what comes from the web browser (Post by donald #61551)

...link/url to the video you could't download?

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Desktop screen recorder *with* *sound*

Post#3 by Rava » 23 Sep 2022, 01:58

beep is a script that plays a short notification sound.
I used this:

Code: Select all

sleep 10;beep;ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 25 -s 1088x608 -i :0.0+409,254 -vcodec libx264 -preset ultrafast L+B_2022-09-22.mkv
While it did work, the sound is faint and noisy. When I do the recording without anything of sound or music played on my PC there is still the same background noise, similar to as if the ffmpeg would record the PCs fan or such, or the faint sound of a server running (not that I have one in my home, the recorded background noise just reminded me of that).
Is there a way to better the sound quality? E.g. make it less faint and omit the background noise?
Cheers!
Yours Rava

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Desktop screen recorder *with* *sound*

Post#4 by babam » 23 Sep 2022, 05:50

Try using ssr (SimpleScreenRecorder)
Sorry, my English is bad.

User avatar
M. Eerie
Moderator
Moderator
Posts: 616
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Desktop screen recorder *with* *sound*

Post#5 by M. Eerie » 23 Sep 2022, 08:33

Rava wrote: ↑
22 Sep 2022, 09:34
Or does anyone know a method to download blob:https:// streams?
Assuming this is what you want to achieve:
This answer has worked for me so far.

Once you get the .m3u8 it's just a matter of yt-dlp <link>
> Does not compute_ πŸ––

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Desktop screen recorder *with* *sound*

Post#6 by Rava » 23 Sep 2022, 15:54

M. Eerie wrote: ↑
23 Sep 2022, 08:33
Assuming this is what you want to achieve:
This answer has worked for me so far.
Indeed it is. :Rose: :friends:

Just a small repeat of how it's done.
Open the browser console (or e.g. "Developer Tools") with F12 (that's the key for Firefox and Palemoon, maybe that key differs for your browser; if so press the correct key to open the browser console)
Delete all previous entries in console.
Reload the page where the video is, maybe start the video when it is not started by itself.
Go in the console to "network" and look for m3u8
The corresponding URL to that m3u8 appears on the right side of the console. Copy that URL.
I choose the 1st URL that had m3u8 in it and gave that to yt-dlp and it worked.
(sometimes you have to check the other m3u8's to get to the correct one.)
M. Eerie wrote: ↑
23 Sep 2022, 08:33
Once you get the .m3u8 it's just a matter of yt-dlp <link>
Or first yt-dlp -F <link> and then choose a (smaller) format, since FullHD is overkill most of the time…

But one thing did not work as planned.
I looked up the formats and got these

Code: Select all

ID   EXT RESOLUTION β”‚   TBR PROTO β”‚ VCODEC        VBR ACODEC    ABR
───────────────────────────────────────────────────────────────────
697  mp4 480x270    β”‚  697k m3u8  β”‚ avc1.64001e  697k mp4a.40.2  0k
994  mp4 640x360    β”‚  994k m3u8  β”‚ avc1.64001f  994k mp4a.40.2  0k
1640 mp4 960x540    β”‚ 1641k m3u8  β”‚ avc1.640020 1641k mp4a.40.2  0k
2516 mp4 1280x720   β”‚ 2516k m3u8  β”‚ avc1.640020 2516k mp4a.40.2  0k
4755 mp4 1920x1080  β”‚ 4755k m3u8  β”‚ avc1.64002a 4755k mp4a.40.2  0k
I choose -f 1640 since I deem 960x540 good enough (nice compromise between file size and quality)

But running yt-dlp -f 2516 <url> still resulted in the FullHD video.

Any ideas why the formats as listed by yt-dlp -F <url> fails? Never before that happened, only when downloading a blob: video via .m3u8 I not got the formats but the largest resolution available.

Another strange thing:
running yt-dlp <url> yt-dlp told me the resulting video will be ~242.71MiB (I aborted that download approach)

running yt-dlp -f 2516 <url> I still got a FullHD video, yt-dlp told me the size will be ~78.45MiB and it is in reality 76.20 MB.

Added in 10 minutes 56 seconds:
I now also downloaded the -f 994 format (640x360) and this time, it really is a 640x360 video.
Maybe the "1640 mp4 960x540" is a wrong info set up in the file that handles the videos on the server, and yt-dlp just reports what the server tells it (and gets it wrong when the server info is also [for whatever reason] wrong)
Last edited by Rava on 29 Sep 2022, 04:40, edited 1 time in total.
Reason: clarified F12 key for browser console aka "Developer Tools"
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[solved via direct download of blob video instead] Desktop screen recorder *with* *sound*

Post#7 by Rava » 24 Jan 2023, 05:00

Sadly, the m3u search part via the browser console part and then downloading can fail at the yt-dlp stage.
Most recent case:

https://delivery217.akamai-cdn-content.com/[…]/master.m3u8

when asking yt-dlp for the available formats, I get this error, even when using aria2c as downloader like so:

Code: Select all

yt-dlp --downloader aria2c --no-part --restrict-filenames -N 4 --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0" -F URL
results in:

Code: Select all

[generic] Extracting URL: https://delivery217.akamai-cdn-content.com/[…]
[generic] master: Downloading webpage
ERROR: [generic] None: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Added in 13 hours 55 minutes 13 seconds:
I looked up some same errors on the yt-dlp developers issues on github, but none solved my issue. For now I have no solution to that one error. :(
Cheers!
Yours Rava

jelly
Ronin
Ronin
Posts: 1
Joined: 25 Sep 2023, 15:44
Distribution: mobile

[solved via direct download of blob video instead] Desktop screen recorder *with* *sound*

Post#8 by jelly » 25 Sep 2023, 15:50

Rava wrote: ↑
22 Sep 2022, 09:34
Up to now I always used recordmydesktop-0.3.8.1-x86_64-1ftm.xzm for desktop screen recording purposes. It is a bit dated but worked, I usually have to make a screenshot first and figure out the
I've relied on RecordMyDesktop-0.3.8.1-x86_64-1ftm.gb whatsappxzm to record desktop screens. Even though it's a little antiquated, it consistently does the job, and I've added annotations for clarification. :beer: :hammer: :showoff: :worship: :worthy:

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

[solved via direct download of blob video instead] Desktop screen recorder *with* *sound*

Post#9 by Rava » 25 Sep 2023, 22:41

jelly wrote: ↑
25 Sep 2023, 15:50
I've relied on RecordMyDesktop-0.3.8.1-x86_64-1ftm.gb whatsappxzm to record desktop screens. Even though it's a little antiquated, it consistently does the job, and I've added annotations for clarification.
I full agree.

Code: Select all

guest@rava:/welt/programmieren/bash$ help.recordmydesktop 
help.recordmydesktop V0.2

   ●●●●● CAVE! Run as root or else clip is a mere second long! ●●●●●

recordmydesktop  --delay 5 -x 500 -y 100 --width 990 --height 555  -o out.ogv
or
recordmydesktop --delay 5 --no-sound --no-cursor  -x 500 -y 100 --width 990 --height 555  -o out.ogv

or often better:
sleep 5;beep;recordmydesktop --no-sound --no-cursor -x 1 -y 1 --width 1024 --height 768 

or for copy & paste:
sleep 5;beep;recordmydesktop --no-sound --no-cursor -x  -y  --width  --height 

CAVE! "-x 0" exits with error. When X or Y offset are zero, omit parameter!
some of these output is coloured, e.g. the

Code: Select all

    ●●●●● CAVE! Run as root or else clip is a mere second long! ●●●●●
line is set in bold and red.

Added in 3 minutes 32 seconds:
And you need to create your own script "beep" for all of the listed code to work:

Code: Select all

guest@rava:/welt/programmieren/bash$ file $(which beep)
/usr/local/bin/beep: POSIX shell script, ASCII text executable
:D
Cheers!
Yours Rava

Post Reply