LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-29-2023, 02:37 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Rep: Reputation: Disabled
If i limit cpu max frequency video playing is starting to stutter


I am watching joe rogan podcast in firefox but then my cpu is running on max frequency which causes high cpu temperature and noisy fan which makes the experience not very pleasant. I am using cpupower to limit the max cpu frequency which reduce fan noise but after while the video starts stuttering. Why reducing cpu max frequency cause video stuttering?

I am limiting cpu frequency like this: sudo cpupower frequency-set --max 2000mhz. My cpu frequency range is 800mhz-3400mhz.
 
Old 04-29-2023, 07:32 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,147
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
That depends. Are you using hardware acceleration. Or is firefox. That shifts some of the video chip load off onto the processor. If you slow down the cpu then it may not be fast enough to play the video.

Depends on the video. x265 needs a lot of cpu to decompress while playing.

I'm not using hardware acceleration on anything. And I'm on an old 15 year old dual core machine.

Let me try a test...
Code:
cpupower frequency-set -u 1600MHz
cpupower frequency-info
...
  current policy: frequency should be within 1.60 GHz and 1.60 GHz.
                  The governor "schedutil" may decide which speed to use
                  within this range.
  current CPU frequency: 1.60 GHz (asserted by call to hardware
I can still play this ok.
Code:
yt-dlp -f 22 https://m.youtube.com/watch?v=EbjZv3PCCLM -o - | mplayer -
And that is
Code:
22  mp4   1280x720    25  2 │ ~186.00MiB  718k https │ avc1.64001F    718k mp4a.40.2    0k 44k 720p
Also, I assume that firefox is using gstreamer? Instead of a media player.

You have a link the the podcast video?
Or you could check it with ffprobe

Lot of posts about firefox not using hardware accell the way other software does. With a machine new enough to have 3400mhz cpu, you probably don't need it.
 
Old 04-29-2023, 11:45 AM   #3
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
I tried enabling hardware acceleration in firefox but i don't think it worked. On theory it should work, but it doesn't. Maybe it's hardware specific issue for my laptop.

Joe Rogan podcast is on Spotify, and you can watch it only in the browser. Spotify have restrictions and you can't stream podcast using third party software like mpv, similar to youtube videos.
 
Old 04-29-2023, 12:19 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,147
Blog Entries: 6

Rep: Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834Reputation: 1834
You just need to scrape a little.

https://podcasts.apple.com/us/podcas...=1000610538418

Code:
mplayer https://s351.podbean.com/pb/1f381c7c6167cc462247e7999a4bab72/644ce310/data1/fs176/3751525/uploads/JREE_-_Episode_234_-_MIXED7pb77.mp3
Or

Code:
curl "$url" -o Joe234.mp3
 
Old 04-29-2023, 01:35 PM   #5
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 249

Original Poster
Rep: Reputation: Disabled
This is only audio. I don't have issue listening only audio stream of the podcast on spotify in firefox. My issue is with the video stream of the podcast.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openvpn - unable to max out tc rate limit, CPU not pegged (~10% at most) psycroptic Linux - Networking 2 11-10-2013 07:45 AM
resources: how to limit process to max. 20% CPU usage alesz Linux - Software 4 03-30-2006 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration