newuser3000
Posts: 20
Joined: Mon Dec 31, 2012 6:19 pm

can videos be played from a usb stick?

Tue Jan 29, 2013 9:24 pm

can I play an mp4 file from a usb stick on my pi? I have heard talk of something called 'omxplayer' but being a linux/RPi noob I have no idea how to use this or if it it's even what I'm looking for
any advice?

dextrus
Posts: 119
Joined: Tue Jan 24, 2012 10:10 pm
Location: Eastleigh, Hampshire
Contact: Website

Re: can videos be played from a usb stick?

Tue Jan 29, 2013 10:19 pm

Yes you can.

What OS are you using? Is it Raspbian? You might want to consider trying XBMC on the PI which is designed to playback audio and video files and is really easy to use.

There are three variants that I know of: Raspbmc, Xbian and OpenELEC.
Have more FUN with your Pi. Visit www.pi-fun.com

KenT
Posts: 759
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: can videos be played from a usb stick?

Wed Jan 30, 2013 8:14 am

If you plug in the usb stick you will see an entry appear on the left hand panel of the Filemanager.

Click on this entry and find the directory containing the file you want to play

open a terminal window in this directory >tools>open terminal window

type omxplayer -o hdmi filename or omxplayer -o local filename for analogue out
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

newuser3000
Posts: 20
Joined: Mon Dec 31, 2012 6:19 pm

Re: can videos be played from a usb stick?

Wed Jan 30, 2013 4:27 pm

when i put in 'omxplayer -o local (file name)' i get:

have a nice day ;)

whatdo i do here?

KenT
Posts: 759
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: can videos be played from a usb stick?

Thu Jan 31, 2013 9:21 am

try 128 MB RAM, use sudo raspi-config

look in omxplayer.log using leafpad. The file should be in the directory that you ran omxplayer from

post the command you typed here.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

PS1981
Posts: 446
Joined: Wed Dec 12, 2012 4:11 pm

Re: can videos be played from a usb stick?

Thu Jan 31, 2013 9:44 am

If you just get told "Have a nice day" then the video is either finished or it didn't work. I had a problem playing from my stick, then I realised that the name of the stick, and hence the command to play for example " omxplayer stick/videos/myvideo.mp4" had a space in it (was "store n go" or something). I renamed the stick "STICK" and now it works.

User avatar
topguy
Posts: 3504
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: can videos be played from a usb stick?

Thu Jan 31, 2013 9:50 am

File-names with space in them can be used if you:
- use " around the whole name: "/media/store n go/movie.mp4"
- or use \ in front of spaces: /media/store\ n\ go/movie.mp4

( the \ character is called "escape" and has to be used if filename contains strange characters. ( space ! $ \ ) )

Return to “General discussion”

Who is online

Users browsing this forum: ghans, HawaiianPi and 45 guests