Sharkfin
Posts: 9
Joined: Fri Nov 06, 2015 8:18 am

Improving video playback

Sun Nov 15, 2015 5:28 am

I'm using a 3.5" lcd touchscreen that is connected to my RPi 2 Model B through an SPI interface.

I'm currently using notro's fbtft drivers to drive the screen and it works fine.

However, I need it to be able to play videos smoothly but it keeps turning out choppy. For example, I tested it with a short video of a seaside with waves crashing but the waves look like they're afraid of the sand with the way they're inching closer second by second .___.

I've tried mplayer (-vo fbdev2:/dev/fb1) and omxplayer with fbcp. I've also tried increasing the speed and fps of the screen itself by editing the dtoverlay in /boot/config.txt. Are there any other ways to improve video playback that I can try?

hello world :-)
Posts: 121
Joined: Sat Nov 14, 2015 7:12 am
Location: England, in an insecure cloud, ie. The Interwebs
Contact: Website Yahoo Messenger AOL

Re: Improving video playback

Sun Nov 15, 2015 10:10 am

Sharkfin wrote:I'm using a 3.5" lcd touchscreen that is connected to my RPi 2 Model B through an SPI interface.

I'm currently using notro's fbtft drivers to drive the screen and it works fine.

However, I need it to be able to play videos smoothly but it keeps turning out choppy. For example, I tested it with a short video of a seaside with waves crashing but the waves look like they're afraid of the sand with the way they're inching closer second by second .___.

I've tried mplayer (-vo fbdev2:/dev/fb1) and omxplayer with fbcp. I've also tried increasing the speed and fps of the screen itself by editing the dtoverlay in /boot/config.txt. Are there any other ways to improve video playback that I can try?
Hmmm. Omxplayer works fine for me (Raspberry Pi B+), but I have a normal computer monitor (1024x768 I think). Are you trying to play HD video? I'm not sure, but I don't think RPi B handles HD very well...
Last edited by hello world :-) on Sun Dec 06, 2015 12:36 pm, edited 5 times in total.
I do moral support. Here: https://www.raspberrypi.org/forums/search.php?search_id=egosearch
I know I use too many parentheses. Problem?
Topics I have posted in: http://bit.ly/1NbDdr5
My topics: http://bit.ly/1ObnKqQ
All my posts: http://bit.ly/1OHzje7

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Improving video playback

Sun Nov 15, 2015 10:34 am

hello world :-) wrote:Are you trying to play HD video? I'm not sure, but I don't think RPi B handles HD very well...
All versions of the Pi handle HD video extremely well. It's one of the things the GPU was designed for.

However, the GPU was not designed to drive a screen via the SPI interface, so a lot of the work is going to have to be done using the ARM CPUs. That might be the problem. I haven't got one of those screens, so I can't check.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26660
Joined: Sat Jul 30, 2011 7:41 pm

Re: Improving video playback

Sun Nov 15, 2015 5:48 pm

The Pi can easily play back 1080p30 to the HDMI port. In this case, the video needs to be copied from to the Linux FB, and I suspect copied again to the TFT. That is going to be a huge CPU hog, probably more than it can handle at higher resolutions. You might even exceed memory bandwidth, when added to all the other memory accesses going on.

Try lower and lower resolutions until it works.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Improving video playback

Sun Nov 15, 2015 6:11 pm

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Improving video playback

Sun Nov 15, 2015 6:16 pm

rpdom wrote:
hello world :-) wrote:Are you trying to play HD video? I'm not sure, but I don't think RPi B handles HD very well...
All versions of the Pi handle HD video extremely well. It's one of the things the GPU was designed for.
I've not found any evidence of success running North American on air full hd off a hdhomerun on any pi. That would be the right test case, I think.

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Improving video playback

Sun Nov 15, 2015 7:05 pm

stderr wrote:[
I've not found any evidence of success running North American on air full hd off a hdhomerun on any pi. That would be the right test case, I think.
I don't know what may be special about your "North American on air full hd", but my RPi2 replaces a hdomerun completely (with an USB Sat-Receiver) and can play any kind of SD and HD streams at the same time (in addition to serving them on the network). It can also transcode all TV streams in real time to low bitrate streams that can be sent across internet connections.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Beginners”