michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

omxplayer file formats

Tue Mar 31, 2015 11:25 am

Hi guys.
I'm having trouble with omxplayer. When starting "omxplayer video.mp4" it prints: have a nice day ;)

When running "omxplayer -i video.mp4" I get:

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf53.21.1
  Duration: 00:00:32.53, start: 0.000000, bitrate: 1869 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 1867 kb/s, 15 fps, 15 tbr, 15 tbn, 30 tbc (default)
    Metadata:
      handler_name    : VideoHandler
have a nice day ;)
If I run "omxplayer -g video.mp4" I get:

Code: Select all

11:18:37 T:18446744072679365947   DEBUG: DllBcm: Using omx system library
11:18:37 T:18446744072679367663   DEBUG: DllOMX: Using omx system library
11:18:37 T:18446744072679368519   DEBUG: DllAvFormat: Using libavformat system library
11:18:37 T:18446744072679371845   DEBUG: DBus connection succeeded
11:18:37 T:18446744072679374014   DEBUG: Keyboard: DBus connection succeeded
11:18:37 T:18446744072679374306   DEBUG: OMXThread::Create - Thread with id 1917510720 started
11:18:37 T:18446744072679374536   DEBUG: DllAvUtilBase: Using libavutil system library
11:18:37 T:18446744072679374710   DEBUG: DllAvCodec: Using libavcodec system library
11:18:37 T:18446744072679374782   DEBUG: DllAvFormat: Using libavformat system library
11:18:37 T:18446744072679445149   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x71b166f8
11:18:37 T:18446744072679445694   DEBUG: OMXClock::OMXStop
11:18:37 T:18446744072679445886   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
11:18:37 T:18446744072679446189   DEBUG: DllAvUtilBase: Using libavutil system library
11:18:37 T:18446744072679446248   DEBUG: DllAvCodec: Using libavcodec system library
11:18:37 T:18446744072679446291   DEBUG: DllAvFormat: Using libavformat system library
11:18:37 T:18446744072679447784   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131 m_handle 0x71b13ac0
11:18:37 T:18446744072679448981   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.video_decode) - port(130), nBufferCountMin(1), nBufferCountActual(60), nBufferSize(81920), nBufferAlignmen(16)
11:18:37 T:18446744072679458505   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.video_decode - OMX_ErrorInsufficientResources, insufficient resources
11:18:37 T:18446744072679465462   ERROR: COMXCoreComponent::FreeInputBuffers WaitForCommand:OMX_CommandPortDisable failed on OMX.broadcom.video_decode omx_err(0x80001000)
11:18:37 T:18446744072679466078   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.video_decode handle 0x71b13ac0
11:18:37 T:18446744072679466438   DEBUG: OMXClock::OMXStop
11:18:37 T:18446744072679475300   DEBUG: OMXThread::Run - Exited thread with  id 1917510720
11:18:37 T:18446744072679475785   DEBUG: OMXThread::StopThread - Thread stopped
11:18:37 T:18446744072679477295   DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.clock handle 0x71b166f8
I can show other files which are mpeg4 in avi containers. But I read that H264 and MP4 container should work as well ?

Anyway what I need is a codec and container which can be shown in both HTML5 video and omxplayer?

Does anyone have an idea ?

Thanks.
Michael Franz

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

Re: omxplayer file formats

Tue Mar 31, 2015 11:32 am

I've got thousands of videos (avi, mpeg, mkv, mp4 etc. using different kind of codes) and omxplayer can play them all. This must be a very special format(isomiso??), perhaps setting very special encoding settings for h264.
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

michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

Re: omxplayer file formats

Tue Mar 31, 2015 11:39 am

gkreidl wrote:I've got thousands of videos (avi, mpeg, mkv, mp4 etc. using different kind of codes) and omxplayer can play them all. This must be a very special format(isomiso??), perhaps setting very special encoding settings for h264.
It is encoded with avconv/ffmpeg with the following settings: -acodec aac -c:v libx264 -y -strict experimental

michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

Re: omxplayer file formats

Tue Mar 31, 2015 11:46 am

and both vlc and quicktime can play the file :)

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

Re: omxplayer file formats

Tue Mar 31, 2015 12:14 pm

Install mediainfo and run it with that video file.

And you might create an issue at https://github.com/popcornmix/omxplayer/issues
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

michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

Re: omxplayer file formats

Tue Mar 31, 2015 12:34 pm

gkreidl wrote:Install mediainfo and run it with that video file.

And you might create an issue at https://github.com/popcornmix/omxplayer/issues
This is what mediainfo gives me:

Code: Select all

[email protected] ~ $ mediainfo video.mp4 
General
Complete name                            : video.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 7.25 MiB
Duration                                 : 32s 534ms
Overall bit rate                         : 1 869 Kbps
Writing application                      : Lavf53.21.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 3 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 32s 534ms
Bit rate                                 : 1 868 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 15.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.060
Stream size                              : 7.24 MiB (100%)
Writing library                          : x264 core 120 r2151 a3f4407
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=1 / weightp=2 / keyint=600 / keyint_min=15 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.25 / aq=1:1.00
Language                                 : English
can you spot any errors with this fileformat ?

Cheers
Michael Franz

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5145
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: omxplayer file formats

Tue Mar 31, 2015 2:10 pm

The clue is this:

Code: Select all

11:18:37 T:18446744072679458505   ERROR: COMXCoreComponent::DecoderEventHandler OMX.broadcom.video_decode - OMX_ErrorInsufficientResources, insufficient resources
I suspect you have too small a gpu_mem setting. Change to gpu_mem=128.

michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

Re: omxplayer file formats

Sun Apr 05, 2015 12:45 pm

Thanks a lot :) - That did the trick!

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: omxplayer file formats

Sun Apr 05, 2015 1:02 pm

dom wrote:I suspect you have too small a gpu_mem setting. Change to gpu_mem=128.
michaelfranz wrote:Thanks a lot :) - That did the trick!

The question then becomes, what was it set to, and how did it get that way?

Because I, like, I assume, most people, have no problems running with the defaults (I never edited my config.txt file at all - in fact, it is untouched [i.e., all comments] except for some stuff at the end added by NOOBS - which doesn't have any "mem" settings).

So, this boils down to:
  1. How did yours get set to a low value?
  2. What is the default (if you don't set any value - i.e., you're just using the default config.txt) ?
  3. How to check to see what values (for arm_mem and gpu_mem) you're current running with? I think it is some vgcommand or some such thing, but I don't remember it off-hand.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

michaelfranz
Posts: 50
Joined: Mon Mar 30, 2015 10:40 am

Re: omxplayer file formats

Sun Apr 05, 2015 1:09 pm

Joe Schmoe wrote:
dom wrote:I suspect you have too small a gpu_mem setting. Change to gpu_mem=128.
michaelfranz wrote:Thanks a lot :) - That did the trick!

The question then becomes, what was it set to, and how did it get that way?

Because I, like, I assume, most people, have no problems running with the defaults (I never edited my config.txt file at all - in fact, it is untouched [i.e., all comments] except for some stuff at the end added by NOOBS - which doesn't have any "mem" settings).

So, this boils down to:
  1. How did yours get set to a low value?
  2. What is the default (if you don't set any value - i.e., you're just using the default config.txt) ?
  3. How to check to see what values (for arm_mem and gpu_mem) you're current running with? I think it is some vgcommand or some such thing, but I don't remember it off-hand.
I am using the default /boot/config.txt file for NOOBS which does not have a gpu_mem setting. I assume it then uses the default value which is 64 MB according to this page: http://elinux.org/RPiconfig

I edited this file and added the line: "gpu_mem=128" then rebooted and the file is running :)

I dont know how to see current arm_mem and gpu_mem, but I assume it is working since it now plays the video :)

Cheers!

User avatar
rpdom
Posts: 12744
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: omxplayer file formats

Sun Apr 05, 2015 1:14 pm

Joe Schmoe wrote:So, this boils down to:

How did yours get set to a low value?
What is the default (if you don't set any value - i.e., you're just using the default config.txt) ?
How to check to see what values (for arm_mem and gpu_mem) you're current running with? I think it is some vgcommand or some such thing, but I don't remember it off-hand.
I can answer the last one of those simply enough:

Code: Select all

[email protected] ~ $ vcgencmd get_mem gpu
gpu=16M
[email protected] ~ $ vcgencmd get_mem arm
arm=992M
Ah, it appears the default (on a 256MB Model A, anyway) is 64M

Code: Select all

[email protected]:~$ vcgencmd get_mem gpu
gpu=64M
[email protected]:~$ vcgencmd get_mem arm
arm=192M

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: omxplayer file formats

Sun Apr 05, 2015 1:19 pm

OK - the last two posts answer all my questions.

It boils down to:
  1. The OP had been using the default, but the default isn't good enough for this one particular file. It is good enough for most files, but not for this one specific file. That's good to know.
  2. Yes, I get 64M & 944M when I run the two "vcgencmd get_mem" commands.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

alxprogramz
Posts: 8
Joined: Sat Apr 15, 2017 8:32 pm

Re: omxplayer file formats

Sat Jul 29, 2017 3:53 am

* failed to open vchiq instance
This is the error I get when tried to open a .mov
Any suggestion????
Command ran is
omxplayer -o hdmi -- win "0 0 640 480" myvideo.vom

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

Re: omxplayer file formats

Sat Jul 29, 2017 5:49 am

alxprogramz wrote:
Sat Jul 29, 2017 3:53 am
* failed to open vchiq instance
This is the error I get when tried to open a .mov
Any suggestion????
Command ran is
omxplayer -o hdmi -- win "0 0 640 480" myvideo.vom
You are posting to a very old thread, better start a new one.

Did you enable the (experimental) GL driver? It's not compatible with omxplayer (or anything else using the GPU).
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

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5145
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: omxplayer file formats

Sun Jul 30, 2017 3:40 pm

gkreidl wrote:
Sat Jul 29, 2017 5:49 am
Did you enable the (experimental) GL driver? It's not compatible with omxplayer (or anything else using the GPU).
Setting gpu_mem=16 would be another way of stopping omxplayer working in this way.

User avatar
rpdom
Posts: 12744
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: omxplayer file formats

Sun Jul 30, 2017 4:47 pm

It might help to mention that you aren't running Raspbian (and have started a new thread on the subject) viewtopic.php?f=63&t=189663

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 2 guests