android - Why cannot play this video -


my app use videoview play video url. video urls can played correctly, except some. video cannot played correctly android app can played correctly ios.

all videos in app directly played url, not local file. when test video system default video player, using url, not local file.

among videos cannot play, there 2 results: result case 1, video cannot play; loading. video can trigger onprepared() event, getduration() returns zero. when play these video system default video player, system player loading , cannot play. here video info got mediainfo.app after download mac:

general complete name                            : /users/aaaaa/downloads/movie.mp4 format                                   : mpeg-4 format profile                           : quicktime codec id                                 : qt   file size                                : 549 kib duration                                 : 10s 0ms overall bit rate                         : 449 kbps encoded date                             : utc 2014-12-04 22:48:13 tagged date                              : utc 2014-12-04 22:48:14 writing library                          : apple quicktime  video id                                       : 2 format                                   : avc format/info                              : advanced video codec format profile                           : high@l3.1 format settings, cabac                   : yes format settings, reframes                : 2 frames codec id                                 : avc1 codec id/info                            : advanced video coding duration                                 : 10s 0ms bit rate                                 : 194 kbps width                                    : 640 pixels height                                   : 640 pixels display aspect ratio                     : 1.000 frame rate mode                          : constant frame rate                               : 0.400 fps color space                              : yuv chroma subsampling                       : 4:2:0 bit depth                                : 8 bits scan type                                : progressive bits/(pixel*frame)                       : 1.182 stream size                              : 236 kib (43%) title                                    : core media video encoded date                             : utc 2014-12-04 22:48:13 tagged date                              : utc 2014-12-04 22:48:14 color range                              : limited  audio id                                       : 1 format                                   : aac format/info                              : advanced audio codec format profile                           : lc codec id                                 : 40 duration                                 : 10s 0ms source duration                          : 10s 54ms bit rate mode                            : constant bit rate                                 : 256 kbps channel(s)                               : 2 channels channel positions                        : front: l r sampling rate                            : 44.1 khz compression mode                         : lossy stream size                              : 308 kib (56%) source stream size                       : 309 kib (56%) title                                    : core media audio encoded date                             : utc 2014-12-04 22:48:13 tagged date                              : utc 2014-12-04 22:48:14 

result case 2: when play video, sound playing, screen black. on note3, when drag media controller progress bar, screen becomes normal; on s5, drag progress bar not work. when play system default player, same result. mediainfo:

general complete name                            : /users/aaaaa/downloads/44466705691c6b34e9ea2038ca5a6d4f031946.mp4 format                                   : mpeg-4 format profile                           : base media codec id                                 : isom file size                                : 483 kib duration                                 : 23s 749ms overall bit rate mode                    : variable overall bit rate                         : 167 kbps encoded date                             : utc 2014-12-07 03:19:38 tagged date                              : utc 2014-12-07 03:19:38 writing application                      : lavf54.6.100  video id                                       : 1 format                                   : avc format/info                              : advanced video codec format profile                           : high@l3.0 format settings, cabac                   : yes format settings, reframes                : 2 frames codec id                                 : avc1 codec id/info                            : advanced video coding duration                                 : 23s 625ms bit rate                                 : 139 kbps width                                    : 480 pixels height                                   : 480 pixels display aspect ratio                     : 1.000 frame rate mode                          : constant frame rate                               : 0.550 fps color space                              : yuv chroma subsampling                       : 4:2:0 bit depth                                : 8 bits scan type                                : progressive bits/(pixel*frame)                       : 1.095 stream size                              : 400 kib (83%) encoded date                             : utc 2014-12-07 03:19:38 tagged date                              : utc 2014-12-07 03:19:38 color primaries                          : bt.601 ntsc transfer characteristics                 : bt.709 matrix coefficients                      : bt.601 color range                              : limited  audio id                                       : 2 format                                   : aac format/info                              : advanced audio codec format profile                           : lc codec id                                 : 40 duration                                 : 23s 749ms bit rate mode                            : variable bit rate                                 : 27.5 kbps maximum bit rate                         : 32.0 kbps channel(s)                               : 2 channels channel(s)_original                      : 1 channel channel positions                        : front: c sampling rate                            : 16.0 khz compression mode                         : lossy stream size                              : 79.7 kib (17%) encoded date                             : utc 2014-12-07 03:19:38 tagged date                              : utc 2014-12-07 03:19:38 

above 2 videos have low frame rate.

why these 2 video cannot play android videoview? thanks.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -