Page 1 of 1

Cannot display videos in some devices

Posted: 11 Jul 2015 15:01
by K-Fung
Hi,
In the current version from Google Play,
I found that some devices cannot display the video correctly.
The video cannot be shown on screen, when I rotate the phone, it is shown 1 second and then dismissed.
The audio has no problem.

Please refer to this youtube:
http://www.youtube.com/watch?v=1m1IDGpFCMM

Testing device:
Redmi
Android version: 4.2.2 HM2013023
CPU Quad-core 1.5GHz
Ram: 1GB

I compile the code once by myself, also have this problem.
Does anyone has a solution?

Re: Cannot display videos in some devices

Posted: 15 Jul 2015 23:53
by Jean-Baptiste Kempf
Can you give the full name of the device?

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 07:04
by K-Fung
Can you give the full name of the device?
We have this problem in the following devices:

Xiaomi Redmi 2
http://www.mi.com/en/redmi#param

Sony Xperia SL
OS: 4.1.2

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 07:26
by betruek
Is it probably related to the video types you wanna play on that device?

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 10:38
by Jean-Baptiste Kempf
Can you give the full name of the device?
We have this problem in the following devices:

Xiaomi Redmi 2
http://www.mi.com/en/redmi#param

Sony Xperia SL
OS: 4.1.2
Try to activate hardware decoding.

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 12:58
by K-Fung
Is it probably related to the video types you wanna play on that device?
In Sony Xperia SL, it can play FLV, but mp4 not.
In Xiaomi Redmi 2, all files cannot play.

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 13:00
by K-Fung
Can you give the full name of the device?
We have this problem in the following devices:

Xiaomi Redmi 2
http://www.mi.com/en/redmi#param

Sony Xperia SL
OS: 4.1.2
Try to activate hardware decoding.
Hi, could you please give me some hints that how to enable the hardware decoding?

Re: Cannot display videos in some devices

Posted: 16 Jul 2015 13:04
by Jean-Baptiste Kempf
in the preferneces.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:07
by K-Fung
in the preferneces.
Hi, I have successful when using your app download from Play Store.
However, I cannot find the working code when I compile myself.
In

@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if(key.equalsIgnoreCase("hardware_acceleration")
|| key.equalsIgnoreCase("subtitle_text_encoding")
|| key.equalsIgnoreCase("aout")
|| key.equalsIgnoreCase("vout")
|| key.equalsIgnoreCase("chroma_format")
|| key.equalsIgnoreCase("deblocking")
|| key.equalsIgnoreCase("enable_frame_skip")
|| key.equalsIgnoreCase("enable_time_stretching_audio")
|| key.equalsIgnoreCase("enable_verbose_mode")
|| key.equalsIgnoreCase("network_caching")
|| key.equalsIgnoreCase("dev_hardware_decoder")) {
VLCInstance.restart(this, sharedPreferences);
restartService(this);
}
}


I cannot find the correspond changes made by dev_hardware_decoder in VLCInstance.restart. Where is the code?
How to enable the hardware decoder in our code?
Please help.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:21
by Jean-Baptiste Kempf
Look at the Media playback

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:50
by K-Fung
Look at the Media playback
Thanks for your prompt reply.
Could you please give me more hints?
Do you mean setHWDecoderEnabled(true, true)?
I set it, but failed to play.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:51
by Jean-Baptiste Kempf
Look at the logs.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:59
by K-Fung
Look at the logs.
Any idea? it is mp4 file taken by the native camera.



07-17 16:58:13.025 20602-20602/? E/Trace﹕ error opening trace file: No such file or directory (2)
07-17 16:58:13.445 20602-20602/? E/dalvikvm﹕ Could not find class 'android.app.Notification$Action$Builder', referenced from method b.a
07-17 16:58:13.505 20602-20602/? E/dalvikvm﹕ Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method b.a
07-17 16:58:13.635 20602-20602/? E/dalvikvm﹕ Could not find class 'android.app.Notification$Action$Builder', referenced from method b.a
07-17 16:58:13.675 20602-20602/? E/dalvikvm﹕ Could not find class 'android.transition.Transition', referenced from method b.a
07-17 16:58:13.675 20602-20602/? E/dalvikvm﹕ Could not find class 'android.transition.Transition', referenced from method b.a
07-17 16:58:13.685 20602-20602/? E/dalvikvm﹕ Could not find class 'android.transition.Transition', referenced from method b.a
07-17 16:58:13.735 20602-20602/? E/dalvikvm﹕ Could not find class 'android.app.RemoteInput[]', referenced from method b.a
07-17 16:58:13.745 20602-20602/? E/dalvikvm﹕ Could not find class 'android.transition.Transition', referenced from method b.b
07-17 16:58:13.805 702-702/? E/StatusBar.NetworkController﹕ updateDataNetType NETWORK_TYPE_UNKNOWN
07-17 16:58:14.095 174-532/? E/AudioHardwareMSM8660﹕ write(): dec_id = 1 cur_rx = 23
07-17 16:58:14.095 174-532/? E/AudioHardwareMSM8660﹕ cur_rx for pcm playback = 23
07-17 16:58:14.095 174-532/? E/AudioHardwareMSM8660﹕ value of device and enable is 23 1 ALSA dev id:20
07-17 16:58:14.935 702-702/? E/StatusBar.NetworkController﹕ updateDataNetType NETWORK_TYPE_UNKNOWN
07-17 16:58:15.045 174-533/? E/MM_OSAL﹕ ValidateAACFile failed
07-17 16:58:15.135 174-174/? E/MM_OSAL﹕ ValidateAACFile failed
07-17 16:58:15.175 19794-20666/? E/VLC﹕ [5d13e6ec] core vout display: Failed to change zoom
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:20.685 19794-20655/? E/VLC﹕ [5f3626f4] avcodec decoder: more than 5 seconds of late video -> dropping frame (computer too slow ?)
07-17 16:58:22.445 19794-20651/? E/VLC﹕ [647c68bc] core input: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 300 ms)
07-17 16:58:22.445 19794-20651/? E/VLC﹕ [647c68bc] core input: ES_OUT_RESET_PCR called

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 10:59
by Jean-Baptiste Kempf
not using hardware decoding.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 11:02
by K-Fung
not using hardware decoding.
I don't know how to turn it on as I read the source code, I cannot find where you make the "dev_hardware_decoder" works.
I am sorry for bothering you, but could you please figure it out? Thanks a lot.

Re: Cannot display videos in some devices

Posted: 17 Jul 2015 14:52
by K-Fung
not using hardware decoding.
When I try to compile the vlc again, it is failed in 1.5.0


freetype-2.5.5.tar.gz: FAILED
sha512sum: WARNING: 1 computed checksum did NOT match
make: *** [.sum-freetype2] Error 1
contribs: make fetch failed


Would you please help. I have used more than a month but cannot get the job done. HELP