Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
daria
Level 7

"Content contains no playable tracks" for YouTube HD videos

Hi!

My application should be able to play a number of videos, and some of them are from YouTube. I'm getting mp4 urls from YouTube API, but Roku is only able to show streams with low quality.

That's example code (actually it is from Roku samples, I just specified another url):


this.player.SetContentList([{
Stream: {
quality: true
url: "http://r8---sn-n3toxu-axqe.googlevideo.com/videoplayback?itag=22&mn=sn-n3toxu-axqe&cnr=14&signature=9A9E9052BF12F7CDA68C124344AFDD34B404E111.C3A0F27722821D752BB7EE7161B6B952DDD9EBAD&key=yt6&ms=au&mv=m&mt=1464891262&dur=1861.590&sver=3&lmt=1461051538955103&ip=188.242.217.203&fexp=9405824%2C9416126%2C9416891%2C9418403%2C9418777%2C9422596%2C9422842%2C9425619%2C9428398%2C9431012%2C9432025%2C9432564%2C9432684%2C9433096%2C9433380%2C9433457%2C9433946%2C9435138%2C9435398%2C9435527%2C9435697%2C9435876%2C9435944%2C9436061%2C9437066%2C9437079%2C9437158%2C9437424%2C9437553%2C9437948%2C9437955&expire=1464913144&id=o-AJMBGGWdHjXllrg-2eatT_OGvNBh4tt8raTNujubGm7s&upn=sRjfQCpMbo8&initcwndbps=3315000&source=youtube&sparams=cnr%2Cdur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&pl=24&mm=31&ratebypass=yes&ipbits=0&mime=video%2Fmp4"
}
StreamFormat: "mp4"
SwitchingStrategy: "full-adaptation"
isHD: true
}])
this.player.Play()


Error log:

Stream started <Component: roAssociativeArray> =
{
IsUnderrun: false
MeasuredBitrate: 3895
StreamBitrate: 0
Url: http://r8---sn-n3toxu-axqe.googlevideo.com/videoplayback?itag=22&mn=sn-n3toxu-axqe&cnr=14&signature=9A9E9052BF12F7CDA68C124344AFDD34B404E111.C3A0F27722821D752BB7EE7161B6B952DDD9EBAD&key=yt6&ms=au&mv=m&mt=1464891262&dur=1861.590&sver=3&lmt=1461051538955103&ip=188.242.217.203&fexp=9405824%2C9416126%2C9416891%2C9418403%2C9418777%2C9422596%2C9422842%2C9425619%2C9428398%2C9431012%2C9432025%2C9432564%2C9432684%2C9433096%2C9433380%2C9433457%2C9433946%2C9435138%2C9435398%2C9435527%2C9435697%2C9435876%2C9435944%2C9436061%2C9437066%2C9437079%2C9437158%2C9437424%2C9437553%2C9437948%2C9437955&expire=1464913144&id=o-AJMBGGWdHjXllrg-2eatT_OGvNBh4tt8raTNujubGm7s&upn=sRjfQCpMbo8&initcwndbps=3315000&source=youtube&sparams=cnr%2Cdur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&pl=24&mm=31&ratebypass=yes&ipbits=0&mime=video/mp4
}
Event: [ 33], index [ 1]: Format Detected
Event info:<Component: roAssociativeArray> =
{
audio: NONE
captions: NONE
video: NONE
}
Event: [ 11], index [ 0]: Content contains no playable tracks.
Event: [ 9], index [-5]: malformed data
Event info:<Component: roAssociativeArray> =
{
MediaFormat: <Component: roAssociativeArray>
}
Media format:<Component: roAssociativeArray> =
{
}


YouTube API returns several urls for different formats, and for other urls playback works fine, but they have much worse quality.

Such HD urls are working fine in browsers and mobile applications (Android and iOS). Why Roku app doesn't want to play it and is it a way to fix this?
0 Kudos
4 Replies
belltown
Level 7

Re: "Content contains no playable tracks" for YouTube HD vid

How are you using the YouTube API to get the mp4 urls?
https://github.com/belltown/
0 Kudos
RobSMS
Level 7

Re: "Content contains no playable tracks" for YouTube HD vid

Last time I checked that it was against their TOS to use a non-youtube player for their videos. Has that changed?
Need Apps Templates? Content Management for OTT/IPTV? Check me out @ http://rovidx.com
0 Kudos
daria
Level 7

Re: "Content contains no playable tracks" for YouTube HD vid

It seems that issue is not about YouTube. Found a video with same error located on other server. Video info is below. What can be wrong with it?


General
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/mp42)
File size : 131 MiB
Duration : 15mn 57s
Overall bit rate mode : Variable
Overall bit rate : 1 145 Kbps
Encoded date : UTC 2016-05-17 04:50:29
Tagged date : UTC 2016-05-17 04:50:29
gsst : 0
gstd : 957056

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 15mn 56s
Bit rate : 1 015 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.037
Stream size : 116 MiB (89%)
Title : ISO Media file produced by Google Inc.
Encoded date : UTC 2016-05-17 04:50:29
Tagged date : UTC 2016-05-17 04:50:29
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 15mn 57s
Source duration : 15mn 57s
Bit rate mode : Variable
Bit rate : 126 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Frame rate : 43.066 fps (1024 spf)
Compression mode : Lossy
Stream size : 14.3 MiB (11%)
Source stream size : 14.3 MiB (11%)
Title : ISO Media file produced by Google Inc.
Encoded date : UTC 2016-05-17 04:50:29
Tagged date : UTC 2016-05-17 04:50:29
0 Kudos
Bacon
Level 9

Re: "Content contains no playable tracks" for YouTube HD vid

Currently HD videos don't play on Roku other than through the official Youtube. Something changed in their transcoder a few months back. If you try and download an mp4 directly from Roku and play it through Roku Media Player, it will also fail. The file needs to be transcoded to play. Noticed this a couple months ago when trying to use Watch Later with Plex.

http://forums.plex.tv/discussion/214864 ... or-roku/p1
0 Kudos