wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

omxplayer invalid format

Sun Apr 26, 2015 3:37 am

I tried playing video on omxplayer. Video starts but crash soon after and screen shows "INVALID FORMAT"

Im running raspbian wheezy latest version. please help

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Sun Apr 26, 2015 7:57 pm

:( anyone having the same problem here? i want to watch movies on my raspberry pi but the video stops and displays the same message INVALID FORMAT, tried reloading new OS but the problem remains

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: omxplayer invalid format

Sun Apr 26, 2015 8:13 pm

Perhaps you could tell us about the video file you're trying to play. What is the file extension of the video file? What type of audio and video streams does it contain? One way to get that information would be to try opening the video file in VLC (Tools > Codec Information). There are other video applications which provide similar information. You're going to need to provide more information if you expect for any of us to be able to help you.

What is gpu_mem set to in /boot/config.txt?

Code: Select all

sudo /opt/vc/bin/vcgencmd get_mem gpu
What Raspberry Pi model are you using?

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Mon Apr 27, 2015 7:11 am

im using raspberry pi 2 model b.
im trying to play an .mp4 file directly from usb, as for the type of audio and video stream i have no idea. i am new with this and am trying to learm much about it. i will try to get the info once i run it again later, i hope you'll be patient with me.

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

Re: omxplayer invalid format

Mon Apr 27, 2015 10:23 am

First install mediainfo:

Code: Select all

sudo apt-get update
sudo apt-get install mediainfo
Then run media info for the video:

Code: Select all

mediainfo pathtovideofile
and post the output here.
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

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Mon Apr 27, 2015 10:59 am

@gkreidl, ill try to do it and poest the outcome here. thanks

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Wed Apr 29, 2015 3:20 am

after running media info i got the following

General
Complete name : /media/KRISTANWEIN/Frozen.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 991 MiB
Duration : 1h 42mn
Overall bit rate mode : Variable
Overall bit rate : 1 355 Kbps
Writing application : Lavf54.3.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 42mn
Bit rate : 1 200 Kbps
Width : 720 pixels
Height : 320 pixels
Display aspect ratio : 2.25:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.217
Stream size : 872 MiB (88%)
Writing library : x264 core 120 r2164 da19765
Encoding settings : cabac=0 / ref=5 / deblock=1:0:0 / analyse=0x1:0x111 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=1200 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=10000 / vbv_bufsize=10000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Language : English

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 42mn
Bit rate mode : Variable
Bit rate : 156 Kbps
Maximum bit rate : 10 000 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 114 MiB (12%)
Language : English

Menu
00:00:00.000 : Chapter 1
00:05:59.819 : Chapter 2

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Wed Apr 29, 2015 3:31 am

i run omxplayer to pay a video. the video starts playing but without audio and it turns to blank screen on and off for about 2-3 second intermittently.

with just web browser or other programs, i have no problem. could it be the peower supply cant give enough to run the player continuously? im using Asus tablet charger

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Wed Apr 29, 2015 3:35 am

ktb wrote:What is gpu_mem set to in /boot/config.txt?

Code: Select all

sudo /opt/vc/bin/vcgencmd get_mem gpu
What Raspberry Pi model are you using?
gpu=64M

Raspberry Pi 2 Model B / Raspbian OS

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

Re: omxplayer invalid format

Wed Apr 29, 2015 9:28 am

Set GPU memory to 128 MB.
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

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Wed Apr 29, 2015 11:55 am

gkreidl wrote:Set GPU memory to 128 MB.
Thanks for the advice, i hope this will solve one of my problems with my raspi :D im new to this and am enjoying the learning part

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Wed Apr 29, 2015 9:04 pm

Set GPU Memory to 128 but same problem happens, tried GPU AT 240, 256 and still have that intermittent blank screen and no sound still. Need to find another way,

after i stopped playing the video, this was shown in the terminal

Chapter : 13 Chapter 14 4953.00
Chapter : 14 Chapter 15 5230.00
Chapter : 15 Chapter 16 5553.00
Video codec omx-h264 width 720 height 320 profile 578 fps 23.976025
Audio codec aac channels 2 samplerate 48000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 720x320@23.98 interlace:0 deinterlace:0 anaglyph:0 par:1.00 layer:0
Stopped at: 00:00:34
have a nice day ;)

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Thu Apr 30, 2015 4:53 am

Ive got a 16GB spare card so i decided to install openelec. Install was successful but same problem happen, it runs then turn blank intermitently.
I read a post regarding the square rainbow at the upper right corner that said to indicate insufficient power. Maybe i need a dedicated power supply and not just connect to my tv's usb port or celphone charge

Do you think that would solve the problem? I only experience this problem when playing video on raspbian and in openelec

wahoofrix
Posts: 15
Joined: Mon Apr 20, 2015 10:46 am

Re: omxplayer invalid format

Thu Apr 30, 2015 6:47 pm

now got audio(sound) coming out from headphone throug 3.5mm jack, i used

Code: Select all

omxplayer -o local pathtofile
instead of hdmi, thats a good sign but the video oroblem still persist. It still turns blank and on intermittently. But the audio is continuous

Anyways atleast oart of the problem is solved

Return to “Troubleshooting”