Jump to content

NOWTV to only stream at 720p HD


francisuk1989

Recommended Posts

francisuk1989

How do i get my white now tv box to stream only at 720p as this is the max (from settings) that the device supports, No 1080p.

 

Also the server reports the device as a Roku 2.07

 

Thanks.

 

Server

2015-06-16 11:59:20.8539 Debug - HttpServer: HTTP GET http://192.168.0.4:8096/mediabrowser/videos/788002b3a25aabc86278025b40e7859f/hlsdynamic/main/0.ts?DeviceId=1ML442026122&MediaSourceId=788002b3a25aabc86278025b40e7859f&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=3072000&AudioBitrate=128000&MaxAudioChannels=2&MaxFramerate=30&MaxWidth=1920&MaxHeight=1080&Level=41&ClientTime=635700671598399702&MaxRefFrames=8&MaxVideoBitDepth=8&Profile=high&PlaySessionId=06eef685a7394fc1ba7f6ac97e3287e9&api_key=57b8f650b5cf4267b21ca4aac99cca28

Ip: 192.168.0.5:57953. Headers: Host=192.168.0.4:8096,User-Agent=Roku/DVP-6.1 (076.01E05660A)

2015-06-16 11:59:20.8695 Debug - App: Starting transcoding because currentTranscodingIndex=null
2015-06-16 11:59:20.9007 Info - App: C:\Users\candy\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -i file:"C:\Users\candy\Videos\Movies\Big Buck Bunny, Sunflower 1080p 30fps Normal.mp4" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 18 -maxrate 2998715 -bufsize 5997430 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2" -flags +loop-global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -y "C:\Users\candy\Videos\transcoding-temp\0cf06c8bad2befa167c0b71bee104635.m3u8"
2015-06-16 11:59:25.6587 Info - App: returning C:\Users\candy\Videos\transcoding-temp\0cf06c8bad2befa167c0b71bee1046350.ts

Video https://peach.blender.org

C:\Users\candy\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -i file:"C:\Users\candy\Videos\Movies\Big Buck Bunny, Sunflower 1080p 30fps Normal.mp4" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 18 -maxrate 2998715 -bufsize 5997430 -vsync vfr -profile:v high -level 41 -force_key_frames expr:gte(t,n_forced*3) -vf "scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2" -flags +loop-global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -y "C:\Users\candy\Videos\transcoding-temp\0cf06c8bad2befa167c0b71bee104635.m3u8"

ffmpeg version N-71182-g5cba529 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 21.100 / 54. 21.100
  libavcodec     56. 32.100 / 56. 32.100
  libavformat    56. 27.100 / 56. 27.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 13.101 /  5. 13.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:C:\Users\candy\Videos\Movies\Big Buck Bunny, Sunflower 1080p 30fps Normal.mp4':
  
Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-16 17:44:39
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2013-12-16 17:44:39
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16 17:44:42
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-16 17:44:42
      handler_name    : GPAC ISO Audio Handler
    Side data:
      unknown side data type 7 (4 bytes)
[libx264 @ 002ec560] using SAR=1/1
[libx264 @ 002ec560] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 002ec560] profile High, level 4.1

Output #0, hls, to 'C:\Users\candy\Videos\transcoding-temp\0cf06c8bad2befa167c0b71bee104635.m3u8':
 
 Metadata:
    encoder         : Lavf56.27.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, max. 2998 kb/s, 30 fps, 90k tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc56.32.100 libx264
    Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc56.32.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp3 (native) -> aac (native))
Press [q] to stop, [?] for help
Edited by francisuk1989
Link to comment
Share on other sites

we already auto-detect this. perhaps this isn't working for now tv? i'm not sure.

Link to comment
Share on other sites

francisuk1989

Luke,

I remember one of the versions auto detected the now tv box but since going back to Emby with the new update I can see is only detected it as roku lt 2.07

Link to comment
Share on other sites

snazy2000

The current now tv box only supports 720p the new one coming in august will support 1080p

Link to comment
Share on other sites

francisuk1989

Looking forward to it but emby is not auto detecting it as now tv and is only transcoding it in a 1080p AAC.

Link to comment
Share on other sites

we have never detected nowtv. we have never had anything in our code about now tv, ever. what we do have is code that detects the supported resolution, and to my knowledge it is working fine with regular roku because i know the Roku test team tests on SD. And I know this because in the past they have rejected updates that had problems on SD. So we need to figure out why it's not working for now tv.

Link to comment
Share on other sites

Happy2Play

Is there something different in the firmware?

 

Roku 3

User-Agent=Roku/DVP-6.2 (046.02E03467A)

 

vs

 

from first post

User-Agent=Roku/DVP-6.1 (076.01E05660A)

Link to comment
Share on other sites

francisuk1989

Is there something different in the firmware?

 

Roku 3

User-Agent=Roku/DVP-6.2 (046.02E03467A)

 

vs

 

from first post

User-Agent=Roku/DVP-6.1 (076.01E05660A)

 

Exactly what i thought, This is the latest release as of 16/06/2015 the box updated on 8th of june and no other updates.

 

From settings in Menu;

 

720p (no 1080p) HD output

 

4:3 and 16:19 Widescreen

 

Max video bandwidth is 3.5 Mbps.

 

Audio

 

PCM-Stereo

DD

DD+

DD+, DTS

 

3.0.5641.4 reports the device as a Roku LT 2.7

Edited by francisuk1989
Link to comment
Share on other sites

try lowering your bitrate to around 2.5. that might be one way of preventing 1080p

Link to comment
Share on other sites

francisuk1989

No luck, I have also set it to the lowest bandwidth but still streaming at 1080p, It still works but is only transcoding in 1080p

Link to comment
Share on other sites

francisuk1989

Looking more into this, I have found something that might help out but have a feeling what Happy2Play quoted.

 

Is there something different in the firmware?

 

Roku 3

User-Agent=Roku/DVP-6.2 (046.02E03467A)

 

vs

 

from first post

User-Agent=Roku/DVP-6.1 (076.01E05660A)

When i go into advanced under expert then api keys, i can see the following infomation

 

Roku Now TV Box Francis 07/06/2015 9:44

Roku Roku LT Francis 16/06/2015 11:58

 

So theres something in the firmware thats gone from "Now TV Box" to "Roku LT"

Link to comment
Share on other sites

No, it is meaningless. It is just the display name. Now that Iv'e gotten more info, what you are asking for is something that we have never actually done. Since the device supports 1080p that's why we are sending 1080p. we only force a lower resolution on SD displays. sorry.

Link to comment
Share on other sites

francisuk1989

The now tv box in the settings only given me a 720p even though my Samsung tv supports 1080p Also mentions in the now tv community that the device is only 720p.

 

Is there anyway to access the Roku LT profile settings to transcode to 720p

Link to comment
Share on other sites

Happy2Play

The current now tv box only supports 720p the new one coming in august will support 1080p

 

 

 

Since the device supports 1080p that's why we are sending 1080p. we only force a lower resolution on SD displays. sorry.

@@Luke the device doesn't support 1080p unless there is a newer model already out.

 

http://help.nowtv.com/article/NOW-TV-Box-Tech-Spec

Edited by Happy2Play
Link to comment
Share on other sites

i think it can handle the input but it just scales down to 720p. if it couldn't handle the input a lot of people would have reported problems before

Link to comment
Share on other sites

snazy2000

It can handle the content but it scales to 720 but new box comes out in Aug which will suppirt 1080 as its based off roku 3

Link to comment
Share on other sites

that's what i thought. as long as it's not failing then there's not much i can do as i don't have a now tv box to test with. if someone wants to look into it they can feel free. problem is most people want to avoid transcoding, so adding a 720p max resolution requirement is going to make transcoding happen more often.

Link to comment
Share on other sites

  • 2 weeks later...
francisuk1989

I have no idea if Plex can be mentioned? if not please delete or edit,

 

Using RARFix https://github.com/ljunkie/rarflix

 

I have got the following video:

 

Video: MPEG4 Video (H264) 1280x544 23.976fps [V: Mafiaking [eng] (h264 high L3.1, yuv420p, 1280x544) [default]]

Audio: Dolby AC3 44100Hz stereo 128kbps [A: Mafiaking [eng] (ac3, 44100 Hz, stereo, 128 kb/s)]

Jun 26, 2015 20:30:38:651 [2944] DEBUG - Request: [192.168.2.4:51163] GET /video/:/transcode/universal/session/1ML442026122/base/00456.ts?protocol=hls&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F13&session=1ML442026122&waitForSegments=1&offset=0&directPlay=0&directStream=1&videoQuality=75&videoResolution=1280x720&maxVideoBitrate=3000&subtitleSize=125&audioBoost=225&partIndex=0&X-Plex-Platform=Roku&X-Plex-Client-Profile-Extra=add-limitation%28scope%3DvideoCodec%26scopeName%3Dh264%26type%3DupperBound%26name%3Dvideo.level%26value%3D41%26isRequired%3Dtrue%29&X-Plex-Platform-Version=6.1&X-Plex-Version=3.2.6&X-Plex-Product=Plex%20for%20Roku&X-Plex-Device=Now%20TV (5 live)
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * protocol => hls
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * path => http://127.0.0.1:32400/library/metadata/13
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * session => 1ML442026122
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * waitForSegments => 1
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * offset => 0
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * directPlay => 0
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * directStream => 1
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * videoQuality => 75
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * videoResolution => 1280x720
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * maxVideoBitrate => 3000
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * subtitleSize => 125
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * audioBoost => 225
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * partIndex => 0
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Platform => Roku
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Client-Profile-Extra => add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=41&isRequired=true)
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Platform-Version => 6.1
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Version => 3.2.6
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Product => Plex for Roku
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Device => Now TV
Jun 26, 2015 20:30:38:651 [2944] DEBUG - Asked for segment 456 from session.
Jun 26, 2015 20:30:38:651 [2944] DEBUG - HLS segment range: 0 - 462; average bitrate: 1.11 Mbps (segment size min/avg/max: 0.2/1.4/4.8)
Jun 26, 2015 20:30:38:651 [2944] DEBUG - Returning segment 456 from session: C:\Users\candy\AppData\Local\Temp\plex-transcode-1ML442026122-e5255160-0ac4-40e2-90d8-8c2bae7533f5\media-00456.ts
Jun 26, 2015 20:30:38:651 [2944] VERBOSE - [IDLE] Adding (0->1) work item http_download - /video/:/transcode/universal/session/1ML442026122/base/00456.ts?protocol=hls&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F13&session=1ML442026122&waitForSegments=1&offset=0&directPlay=0&directStream=1&videoQuality=75&videoResolution=1280x720&maxVideoBitrate=3000&subtitleSize=125&audioBoost=225&partIndex=0&X-Plex-Platform=Roku&X-Plex-Client-Profile-Extra=add-limitation%28scope%3DvideoCodec%26scopeName%3Dh264%26type%3DupperBound%26name%3Dvideo.level%26value%3D41%26isRequired%3Dtrue%29&X-Plex-Platform-Version=6.1&X-Plex-Version=3.2.6&X-Plex-Product=Plex%20for%20Roku&X-Plex-Device=Now%20TV
Jun 26, 2015 20:30:38:651 [2944] VERBOSE - [IDLE] * http_download - /video/:/transcode/universal/session/1ML442026122/base/00456.ts?protocol=hls&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F13&session=1ML442026122&waitForSegments=1&offset=0&directPlay=0&directStream=1&videoQuality=75&videoResolution=1280x720&maxVideoBitrate=3000&subtitleSize=125&audioBoost=225&partIndex=0&X-Plex-Platform=Roku&X-Plex-Client-Profile-Extra=add-limitation%28scope%3DvideoCodec%26scopeName%3Dh264%26type%3DupperBound%26name%3Dvideo.level%26value%3D41%26isRequired%3Dtrue%29&X-Plex-Platform-Version=6.1&X-Plex-Version=3.2.6&X-Plex-Product=Plex%20for%20Roku&X-Plex-Device=Now%20TV - 1 active item(s)
Jun 26, 2015 20:30:38:651 [2944] VERBOSE - [IDLE] * transcoder - 1ML442026122 - 1 active item(s)
Jun 26, 2015 20:30:38:651 [2944] DEBUG - Content-Length of C:\Users\candy\AppData\Local\Temp\plex-transcode-1ML442026122-e5255160-0ac4-40e2-90d8-8c2bae7533f5\media-00456.ts is 2502844.
Jun 26, 2015 20:30:38:994 [2468] DEBUG - Request: [127.0.0.1:34893] PUT /video/:/transcode/session/1ML442026122/progress?progress=84.8&size=-22&remaining=6275 (6 live)
Jun 26, 2015 20:30:38:994 [2468] VERBOSE -  * progress => 84.8
Jun 26, 2015 20:30:38:994 [2468] VERBOSE -  * size => -22
Jun 26, 2015 20:30:38:994 [2468] VERBOSE -  * remaining => 6275

So dont know if this above helps, Plex recognizes it as Now TV roku

 

Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Client-Profile-Extra => add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=41&isRequired=true)

Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Platform-Version => 6.1
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Version => 3.2.6
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Product => Plex for Roku
Jun 26, 2015 20:30:38:651 [2944] VERBOSE -  * X-Plex-Device => Now TV

Edited by francisuk1989
Link to comment
Share on other sites

not sure how many times i need to say - detecting the device doesn't matter. detecting device capabilities has nothing to do with the device display name. Changing the name that shows up in the server is not going to magically change the transcoding to 720p. Is that what you're expecting?

 

And by the way, this is how we are getting the device name:

modelName   = device.GetModelDisplayName()
modelNumber = device.GetModel()

Now TV reports itself as Roku so that is what we display. Detecting the Now TV display name requires a special workaround, which I really don't care to do because it's something you have to keep revisiting every time there are new model and firmware updates. If Now TV tells us that it's model name is Roku, then we're going to display it as Roku. If it tells us it's Elephant, then we're going to display it as Elephant.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...