WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Smooth video playback on rpi 1  (Read 275 times)

Offline picoreuser

  • Newbie
  • *
  • Posts: 2
Smooth video playback on rpi 1
« on: November 03, 2024, 06:57:04 PM »
Hello, we have few devices on picore 14 and vlc was used to display videos/images. The problem is that on rpi 1 it's very slow and stuttering, any suggestions ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Smooth video playback on rpi 1
« Reply #1 on: November 04, 2024, 02:02:48 AM »
Wasn't that a 700 Mhz armv6 cpu? That's equivalent to something like a Pentium 2. Would your videos play fine on a P2? (those cpus were not able to play DVDs, for reference).
The only barriers that can stop you are the ones you create yourself.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 712
Re: Smooth video playback on rpi 1
« Reply #2 on: November 04, 2024, 02:41:53 AM »
Is vlc compiled with hw acceleration.
So not only use framebuffer and uses the gpu and av instructions on the cpu.

https://thepi.io/how-to-compile-vlc-media-player-with-hardware-acceleration-for-the-raspberry-pi/

And you could install omxplayer that support the gpu, to accelerate the picture and video.
« Last Edit: November 04, 2024, 02:46:25 AM by patrikg »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14803
Re: Smooth video playback on rpi 1
« Reply #3 on: November 04, 2024, 03:44:52 AM »
I played around with hardware acceleration on an RPi0 a while back - it was quite slow.

The vlc in the repo should use hw acceleration if available, those vlc instructions referenced above are using the old closed source omx and neon - I'm not sure neon is available on RPi0 and RPi1.

You could try ffplay:
Code: [Select]
ffplay -i /mnt/mmcblk0p2/media/video/jellyfish-3-mbps-hd-h264.mkv [I think this would use hw acceleration]
or
ffplay -codec:v h264_v4l2m2m -i /mnt/mmcblk0p2/media/video/jellyfish-3-mbps-hd-h264.mkv

Note that you may need dtoverlay=vc4-kms-v3d and dtoverlay=rpivid-v4l2, check that /dev/video* exist.

Offline picoreuser

  • Newbie
  • *
  • Posts: 2
Re: Smooth video playback on rpi 1
« Reply #4 on: November 04, 2024, 02:49:43 PM »
Is vlc compiled with hw acceleration.
So not only use framebuffer and uses the gpu and av instructions on the cpu.

https://thepi.io/how-to-compile-vlc-media-player-with-hardware-acceleration-for-the-raspberry-pi/

And you could install omxplayer that support the gpu, to accelerate the picture and video.

Thank you, do you have insights how to install omxplayer on picore 14?