OMX client failed

VLC for Android and Chrome OS specific usage questions
wminghao
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Mar 2014 00:26

OMX client failed

Postby wminghao » 07 May 2014 02:39

Hi,

I am running VLC built from scratch to play videos, works perfectly fine with software decoding, and gpu output on most devices, but failed miserably on Galaxy S4, with OMX.

There is no error message, logcat shows:

Code: Select all

looking for decoder module module matching "mediacodec,iomx,all" Using client-side OMX mux.
Then VLC gets stuck there.

OpenMax IL is notoriously unstable, and it's really device dependent. How do I manually turn off iomx in configure.sh?

I checked there are 3 flags, --enable-omxil, --enable-omxil-vout, --enable-raspery-pi-omixl. Neither are turned on, however, why vlc is still trying to use OMX?

Kind of weirld. Please help.

Thanks,
wminghao


ps. The log message

Code: Select all

D/VLC (11526): core stream: AStreamReadStream: 32768 pos=32768 tk=0 start=0 offset=32768 end=48072 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamReadStream: 32768 pos=65536 tk=0 start=0 offset=65536 end=80120 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamReadStream: 32768 pos=98304 tk=0 start=0 offset=98304 end=112168 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamReadStream: 32768 pos=131072 tk=0 start=0 offset=131072 end=144216 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core stream: AStreamRefillStream: used=16024 toread=16024 D/VLC (11526): core input: selecting program id=0 D/VLC (11526): avformat demux: adding es: video codec = h264 (28) D/VLC (11526): avformat demux: adding es: audio codec = mp4a (86018) D/VLC (11526): avformat demux: AVFormat supported stream D/VLC (11526): avformat demux: - format = flv (FLV (Flash Video)) D/VLC (11526): avformat demux: - start time = 0 D/VLC (11526): avformat demux: - duration = 0 D/VLC (11526): core demux: using demux module "avformat" D/VLC (11526): core decoder: looking for decoder module matching "mediacodec,iomx,all": 34 candidates D/AbsListView(11526): unregisterIRListener() is called I/OMXClient(11526): Using client-side OMX mux. I/SurfaceFlinger( 205): id=1616 Removed moading (4/6) I/SurfaceFlinger( 205): id=1616 Removed moading (-2/6)

wminghao
Blank Cone
Blank Cone
Posts: 18
Joined: 18 Mar 2014 00:26

Re: OMX client failed

Postby wminghao » 07 May 2014 03:01

For your reference, on devices where there is no IOMX, the normal playback is as follows:

Code: Select all

D/VLC (13633): core input: selecting program id=0 D/VLC (13633): avformat demux: adding es: video codec = h264 (28) D/VLC (13633): avformat demux: adding es: audio codec = mp4a (86018) D/VLC (13633): avformat demux: AVFormat supported stream D/VLC (13633): avformat demux: - format = flv (FLV (Flash Video)) D/VLC (13633): avformat demux: - start time = 0 D/VLC (13633): avformat demux: - duration = 0 D/VLC (13633): core demux: using demux module "avformat" D/VLC (13633): core decoder: looking for decoder module matching "any": 33 candidates D/VLC (13633): avcodec decoder: CPU flags: 0x0000003f D/VLC (13633): avcodec decoder: trying to use direct rendering D/VLC (13633): avcodec decoder: allowing 3 thread(s) for decoding D/VLC (13633): avcodec decoder: avcodec codec (H264 - MPEG-4 AVC (part 10)) started D/VLC (13633): avcodec decoder: using frame thread mode with 3 threads D/VLC (13633): core decoder: using decoder module "avcodec" D/VLC (13633): core decoder: looking for decoder module matching "any": 33 candidates D/VLC (13633): avcodec decoder: CPU flags: 0x0000003f D/VLC (13633): avcodec decoder: avcodec codec (MPEG AAC Audio) started D/VLC (13633): core decoder: using decoder module "avcodec" D/VLC (13633): core demux meta: looking for meta reader module matching "any": 1 candidates D/VLC (13633): core demux meta: no meta reader modules matched
Everything works fine from there.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: OMX client failed

Postby edwardw » 08 May 2014 06:44

LibVLC.setHardwareAcceleration(LibVLC.HW_ACCELERATION_DISABLED) ?


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: loukaskork1 and 5 guests