cannot play video with LVDS monitor, works well with HDMI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot play video with LVDS monitor, works well with HDMI

2,720 Views
frédéric
Contributor III

Hello,

We have a spinoff board of a Boundary Nitrogen6q, using an imx6q cpu, linux 3.0.35 and android 4.2.2, when we plug the HDMI monitor we can play video with the Android Player, 1080p, etc, but when we plug the LVDS monitor, Player says "cannot play video" for any video, still pictures works fine.

Monitor is decided at boot by uboot, we use a command line like this for HDMI:

setenv bootargs $bootargs video=mxcfb0:dev=hdmi,bpp=32,1920x1080M@60,if=RGB24 fbmem=48M

abd this for LVDS:

setenv bootargs $bootargs video=mxcfb0:dev=ldb,1920x1080MR@60,if=RGB24,fbpix=RGB32 ldb=spl0 fbmem=48M

Is this because of some RGB24/RGB32 mix?

Labels (3)
0 Kudos
11 Replies

1,129 Views
SergioSolis
NXP Employee
NXP Employee

Not sure, but have you tried it without the ,fbpix=RGB32 ldb=spl0 ?

0 Kudos

1,129 Views
saurabh206
Senior Contributor III

Hi,

Frederic

Can you provide the logcat detail?

Try to install another video player like MX player and check.

It may possible that Memory allocation for the VPU buffer has failed and Video playback is failed.

Regards

Saurabh

0 Kudos

1,129 Views
frédéric
Contributor III

> Try to install another video player like MX player and check.

With MX player, video can play, without sound, but decoding of the video is made in software only so it's notperfect :-/ If I try to activate HW decoding, it fails.

0 Kudos

1,129 Views
saurabh206
Senior Contributor III

Hi,

First install AACP library.

And check.

0 Kudos

1,129 Views
frédéric
Contributor III

I did install aacplus, video can play without sound, using software decoding for video.

0 Kudos

1,129 Views
joshcollins
Contributor II

Hi,

Have you had luck fixing this issue? We are having the same problem. When running with 2 LVDS displays, we get no sound when playing a video, but if we switch to 1 HDMI and 1 LVDS display, the audio works correctly.

0 Kudos

1,129 Views
frédéric
Contributor III

here is the part when I click on the "arrow" to start the video:

I/ActivityManager( 2592): START u0 {act=android.intent.action.VIEW dat=content://media/external/video/media/26 typ=video/* cmp=com.android.gallery3d/.app.MovieActivity (has extras)} from pid 3083

W/BlobCache( 3083): cannot read header

I/AudioService( 2592):  AudioFocus  requestAudioFocus() from android.media.AudioManager@41bd6560

E/BufferQueue( 2320): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/ActivityManager( 2592): Displayed com.android.gallery3d/.app.MovieActivity: +265ms

I/OMXPlayer( 2323): Loading content: sharedfd://24:0:725106140:0

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: MediaTypeInspect LINE: 1655

I/OMXPlayer( 2323): Can't inspect media content type by subfix.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: prepare LINE: 422

I/OMXPlayer( 2323): failed to open file: /data/system/audio_pass_through_pref.

I/OMXPlayer( 2323): Can't open library: lib_aacplusd_wrap_arm12_elinux_android.so

I/OMXPlayer( 2323): Cannot load library: load_library(linker.cpp:745): library "lib_aacplusd_wrap_arm12_elinux_android.so" not found

I/vpu-lib ( 2323): Product Info: i.MX6Q/D/S

I/OMXPlayer( 2323): VideoRender role: video_render.surface

V/StateManager( 3083): saveState

V/StateManager( 3083): saveState class com.android.gallery3d.app.AlbumSetPage

V/StateManager( 3083): saveState class com.android.gallery3d.app.AlbumPage

V/StateManager( 3083): saveState class com.android.gallery3d.app.PhotoPage

I/OMXPlayer( 2323): nPreCacheSize = 1216621

W/AudioPolicyManagerBase( 2323): getOutput() could not find output for stream 3, samplingRate 0,format 0, channels 3, flags 0

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: SetDevice LINE: 221

I/OMXPlayer( 2323): Failed to open AudioOutput device.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: SysEventHandler LINE: 1535

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based report Error 80001009.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: SysEventHandler LINE: 1535

E/MediaPlayer( 3083): error (1, 0)

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based report Error 80001009.

E/MediaPlayer( 3083): error (1, 0)

D/dalvikvm( 2592): GC_CONCURRENT freed 401K, 11% free 5845K/6532K, paused 4ms+6ms, total 126ms

E/MediaPlayer( 3083): Error (1,0)

D/VideoView( 3083): Error: 1,0

E/MediaPlayer( 3083): Error (1,0)

D/VideoView( 3083): Error: 1,0

E/BufferQueue( 2320): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

E/BufferQueue( 2320): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: PortUsePeerBuffers LINE: 1272

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based use buffer for port 0 failed.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: Load LINE: 753

I/OMXPlayer( 2323): StartPipeline faint

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: Load LINE: 764

I/OMXPlayer( 2323): Load faint and stop

I/OMXPlayer( 2323): Stop Player.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: StateTransDownWard LINE: 336

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based Invalid state transitioin: 1 -> 4.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: StateTransDownWard LINE: 336

I/OMXPlayer( 2323): OMX.Freescale.std.video_render.surface.sw-based Invalid state transitioin: 1 -> 4.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: StateTransDownWard LINE: 336

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based Invalid state transitioin: 1 -> 2.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: StateTransDownWard LINE: 336

I/OMXPlayer( 2323): OMX.Freescale.std.video_decoder.avc.v3.hw-based Invalid state transitioin: 1 -> 2.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: StateTransDownWard LINE: 336

I/OMXPlayer( 2323): OMX.Freescale.std.video_render.surface.sw-based Invalid state transitioin: 1 -> 2.

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: SendCommand LINE: 985

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based Time out for Sending Command [2:1], Busy on Command [0:2].

I/OMXPlayer( 2323): LEVEL: 1 FUNCTION: WaitCommand LINE: 1038

I/OMXPlayer( 2323): OMX.Freescale.std.audio_render.android.sw-based Wait incorrect Command[2:1], ProcessingCmd is [0:2].

E/MediaPlayer( 3083): error (-2147483648, 0)

E/MediaPlayer( 3083): Error (-2147483648,0)

D/VideoView( 3083): Error: -2147483648,0

E/BufferQueue( 2320): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/AudioService( 2592):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@4170e370com.android.music.MediaPlaybackService$3@4170cf90

I/ActivityManager( 2592): Start proc com.android.musicfx for broadcast com.android.musicfx/.ControlPanelReceiver: pid=3152 uid=10025 gids={50025, 3003, 3002, 1028}

E/Trace   ( 3152): error opening trace file: No such file or directory (2)

V/MusicFXControlPanelReceiver( 3152): onReceive

V/MusicFXControlPanelReceiver( 3152): Action: android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION

V/MusicFXControlPanelReceiver( 3152): Package name: com.android.music

V/MusicFXControlPanelReceiver( 3152): Audio session: 3

V/MusicFXControlPanelEffect( 3152): closeSession(android.app.ReceiverRestrictedContext@41708b80, com.android.music, 3)

I/GalleryEGLConfigChooser( 3083): Config chosen: R8 G8 B8 A8 D24 S8 ID19 CAVEAT12344

E/BufferQueue( 2320): [SurfaceView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/GLRootView( 3083): GLObject has changed from com.google.android.gles_jni.GLImpl@4173aa00 to com.google.android.gles_jni.GLImpl@42284388

I/GLRootView( 3083): onSurfaceChanged: 1920x1044, gl10: com.google.android.gles_jni.GLImpl@42284388

E/BufferQueue( 2320): [com.android.gallery3d/com.android.gallery3d.app.Gallery] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/Choreographer( 3083): Skipped 32 frames!  The application may be doing too much work on its main thread.

I/GLRootView( 3083): onSurfaceChanged: 1920x1044, gl10: com.google.android.gles_jni.GLImpl@42284388

0 Kudos

1,129 Views
saurabh206
Senior Contributor III

Hi,

from log it seems that you have not added AAC plus library.

But it should also failed in with HDMI display.

Can you try with following command and try to play that vector

setprop media.omxgm.enable-player 0

Saurabh

0 Kudos

1,129 Views
frédéric
Contributor III

EDIT: I can confirm that unplugging LVDS, plugging HDMI, reboot, and we can play videos.

the setprop changes nothing, can't play video.

Note that we do not have the SGTL5000 codec on the board, so no sound card. Sometimes we see some:

W/audio_hw_primary( 2360): card -1, port 0 device 0x2

W/audio_hw_primary( 2360): rate 44100, channel 2 period_size 0xc0

E/audio_hw_primary( 2360): cannot open pcm_out driver 0: cannot open device '/dev/snd/pcmC4294967295D0p': No such file or directory

in the logcat too.

0 Kudos

1,129 Views
saurabh206
Senior Contributor III

Hi,

I know with /dev/snd/pcmC4294967295D0p error you will not have audio.

But if do

setprop media.omxgm.enable-player 0

Will decode with stagefright framework so you can debug it.

Can you update the log after setprop.

0 Kudos

1,129 Views
frédéric
Contributor III

here is the log after setprop:

I/ActivityManager( 2610): START u0 {act=android.intent.action.VIEW dat=content://media/external/video/media/44 typ=video/* cmp=com.android.gallery3d/.app.MovieActivity (has extras)} from pid 3155

I/AudioService( 2610):  AudioFocus  requestAudioFocus() from android.media.AudioManager@421c68a0

E/BufferQueue( 2339): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/ActivityManager( 2610): Displayed com.android.gallery3d/.app.MovieActivity: +262ms

D/dalvikvm( 2610): GC_CONCURRENT freed 319K, 10% free 5899K/6492K, paused 4ms+6ms, total 89ms

E/WVMExtractor( 2342): Failed to open libwvm.so

E/MediaPlayerService( 2342):   error: -2147483648

E/MediaPlayer( 3155): Unable to to create media player

D/MediaPlayer( 3155): Couldn't open file on client side, trying server side

D/ActivityManager( 2610): checkComponentPermission() adjusting {pid,uid} to {2342,1013}

E/WVMExtractor( 2342): Failed to open libwvm.so

E/MediaPlayerService( 2342):   error: -2147483648

E/MediaPlayer( 3155): Unable to to create media player

W/VideoView( 3155): Unable to open content: content://media/external/video/media/44

W/VideoView( 3155): java.io.IOException: setDataSource failed.: status=0x80000000

W/VideoView( 3155):     at android.media.MediaPlayer._setDataSource(Native Method)

W/VideoView( 3155):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:960)

W/VideoView( 3155):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:948)

W/VideoView( 3155):     at android.media.MediaPlayer.setDataSource(MediaPlayer.java:901)

W/VideoView( 3155):     at android.widget.VideoView.openVideo(VideoView.java:236)

W/VideoView( 3155):     at android.widget.VideoView.access$2000(VideoView.java:52)

W/VideoView( 3155):     at android.widget.VideoView$6.surfaceCreated(VideoView.java:490)

W/VideoView( 3155):     at android.view.SurfaceView.updateWindow(SurfaceView.java:569)

W/VideoView( 3155):     at android.view.SurfaceView.setVisibility(SurfaceView.java:249)

W/VideoView( 3155):     at com.android.gallery3d.app.MoviePlayer$4.run(MoviePlayer.java:147)

W/VideoView( 3155):     at android.os.Handler.handleCallback(Handler.java:725)

W/VideoView( 3155):     at android.os.Handler.dispatchMessage(Handler.java:92)

W/VideoView( 3155):     at android.os.Looper.loop(Looper.java:137)

W/VideoView( 3155):     at android.app.ActivityThread.main(ActivityThread.java:5041)

W/VideoView( 3155):     at java.lang.reflect.Method.invokeNative(Native Method)

W/VideoView( 3155):     at java.lang.reflect.Method.invoke(Method.java:511)

W/VideoView( 3155):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

W/VideoView( 3155):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

W/VideoView( 3155):     at dalvik.system.NativeStart.main(Native Method)

D/VideoView( 3155): Error: 1,0

E/BufferQueue( 2339): [com.android.gallery3d/com.android.gallery3d.app.MovieActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

V/StateManager( 3155): saveState

V/StateManager( 3155): saveState class com.android.gallery3d.app.AlbumSetPage

V/StateManager( 3155): saveState class com.android.gallery3d.app.AlbumPage

V/StateManager( 3155): saveState class com.android.gallery3d.app.PhotoPage

0 Kudos