Cannot display videos in some devices

VLC for Android and Chrome OS specific usage questions
K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Cannot display videos in some devices

Postby K-Fung » 11 Jul 2015 15:01

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 15 Jul 2015 23:53

Can you give the full name of the device?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 16 Jul 2015 07:04

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

betruek
Blank Cone
Blank Cone
Posts: 26
Joined: 02 Jun 2015 07:35

Re: Cannot display videos in some devices

Postby betruek » 16 Jul 2015 07:26

Is it probably related to the video types you wanna play on that device?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 16 Jul 2015 10:38

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 16 Jul 2015 12:58

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.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 16 Jul 2015 13:00

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 16 Jul 2015 13:04

in the preferneces.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 17 Jul 2015 10:07

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 17 Jul 2015 10:21

Look at the Media playback
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 17 Jul 2015 10:50

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 17 Jul 2015 10:51

Look at the logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 17 Jul 2015 10:59

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Cannot display videos in some devices

Postby Jean-Baptiste Kempf » 17 Jul 2015 10:59

not using hardware decoding.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 17 Jul 2015 11:02

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.

K-Fung
Blank Cone
Blank Cone
Posts: 20
Joined: 26 Oct 2011 19:58

Re: Cannot display videos in some devices

Postby K-Fung » 17 Jul 2015 14:52

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


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 9 guests