Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greno
Visitor

Android video files

I'm in the process of testing playback of 3 video fomats from an Android phone. Two of them don't play back at all, and the third shows video with no audio for a few seconds, then starts buffering constantly. Just wondering if anyone can let me know why these won't play back.

I'm working on a project to stream content directly from the phone to the Roku. Photos and music work great, and I can stream other videos downloaded to the phone from other sources. But I can't get the videos taken directly on the phone to work.

Thanks!

StreamFormat = "mp4"
StreamQualities = ["HD"]
StreamBitrates = [0]


Complete name                    : D:\Android\Android Video Files\test_h263.3gp
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 1.22 MiB
Duration : 4s 620ms
Overall bit rate : 2 215 Kbps

Video
ID : 2
Format : H.263
Format profile : BaseLine@1.0
Codec ID : s263
Duration : 4s 530ms
Bit rate : 815 Kbps
Width : 352 pixels
Height : 288 pixels
Display aspect ratio : 1.222
Frame rate mode : Variable
Frame rate : 29.803 fps
Minimum frame rate : 18.754 fps
Maximum frame rate : 71.885 fps
Standard : PAL
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.270
Stream size : 451 KiB (36%)
Title : VideoHandle
Writing library : (empty)
Language : English

Audio
ID : 1
Format : AMR
Format/Info : Adaptive Multi-Rate
Format profile : Narrow band
Codec ID : samr
Duration : 4s 620ms
Bit rate mode : Constant
Bit rate : 12.8 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 13 bits
Stream size : 7.22 KiB (1%)
Title : SoundHandle
Writing library :
Language : English


Complete name                    : D:\Android\Android Video Files\test_h264.3gp
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 1.97 MiB
Duration : 6s 660ms
Overall bit rate : 2 477 Kbps

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L2.2
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 6s 499ms
Bit rate : 1 528 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Frame rate : 28.159 fps
Minimum frame rate : 13.133 fps
Maximum frame rate : 56.711 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.177
Stream size : 1.18 MiB (60%)
Title : VideoHandle
Language : English

Audio
ID : 1
Format : AMR
Format/Info : Adaptive Multi-Rate
Format profile : Narrow band
Codec ID : samr
Duration : 6s 660ms
Bit rate mode : Constant
Bit rate : 12.8 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 13 bits
Stream size : 10.4 KiB (1%)
Title : SoundHandle
Writing library :
Language : English


And this is the one the plays some video with no audio:

Complete name                    : D:\Android\Android Video Files\test_mpeg4.3gp
Format : MPEG-4
Format profile : 3GPP Media Release 4
Codec ID : 3gp4
File size : 3.31 MiB
Duration : 7s 60ms
Overall bit rate : 3 929 Kbps

Video
ID : 2
Format : MPEG-4 Visual
Format profile : Simple@L6
Format settings, BVOP : Yes
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : 20
Duration : 7s 58ms
Bit rate mode : Constant
Bit rate : 2 999 Kbps
Nominal bit rate : 256 Kbps
Width : 800 pixels
Height : 480 pixels
Display aspect ratio : 1.667
Frame rate mode : Variable
Frame rate : 26.779 fps
Minimum frame rate : 12.844 fps
Maximum frame rate : 66.176 fps
Color space : YUV
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.292
Stream size : 2.52 MiB (76%)
Title : VideoHandle
Language : English

Audio
ID : 1
Format : AMR
Format/Info : Adaptive Multi-Rate
Format profile : Narrow band
Codec ID : samr
Duration : 7s 60ms
Bit rate mode : Constant
Bit rate : 12.8 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 13 bits
Stream size : 11.0 KiB (0%)
Title : SoundHandle
Writing library :
Language : English
0 Kudos
3 REPLIES 3
RokuJoel
Binge Watcher

Re: Android video files

Look at the Roku Encoding Guide in your Roku SDK for a list of supported formats and frame rates.

- Joel
0 Kudos
greno
Visitor

Re: Android video files

Well, they are all mpeg4 videos. The frame rates are all variable: 29.803, 28.159 and and 26.779 which seems to be in the range listed in the encoding guide. I can see the docs don't mention anything about supporting AMR audio encoding. Maybe it's the video codec id of 20 that is causing the problem.

Are there any plans to support additional formats like these?

Thanks,
-Gregg
0 Kudos
RokuJoel
Binge Watcher

Re: Android video files

The officially supported frame rates from the Supported Video Formats section of the Roku Encoding Guide are 23.976 and 29.97. Audio should be AAC. I note in your above posting, looks like h.263, video, roku supports h.264.

If you would like, PM me a link to a few of these files that won't play, I can investigate a little bit.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.