Jump to content

Fire TV Lite Transcoding


stenweb

Recommended Posts

stenweb

Hi

I've noticed that the majority of my x265 videos, when streaming onto a Fire TV Stick Lite (https://www.amazon.co.uk/fire-tv-stick-lite-with-alexa-voice-remote-lite/dp/B091G31KSJ/ref=sr_1_1?keywords=fire+tv+stick&qid=1691495353&sprefix=fire%2Caps%2C125&sr=8-1), it causes my Raspberry Pi 4 to transcode the video. This doesn't happen with apps on other devices (e.g. iOS, iPadOS, Samsung TV, LG TV). When playing x264 videos, I don't get the same effect.

Hopefully I've included enough information below, but can provide more if needed! Screenshot of the details of the video too!

 

Quote
2023-08-07 17:23:45.486
Operating System: Linux version 6.1.21-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1642 SM
OS/Process: arm64/arm64
Emby Server version: 4.7.13.0
Operating system: Unix 6.1.21.8
Command Line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_arm64.deb
 
App: AndroidTv 2.0.79a
Steven's FireTVStick
 
http://192.168.1.6:8096/emby/videos/894/main.m3u8?DeviceId=0135e079e7bd24d5&MediaSourceId=0026a1754ca7606bdac6d0bc8a75a83b&PlaySessionId=85b5ae50f2cc40a1b0c747dd6260b0d4&api_key=cd45a1c455204f8abc82fb619325323b&VideoCodec=h264,mpeg2video,hevc,h265&AudioCodec=aac_latm,mp4a_latm,ac3,aac,mp3&VideoBitrate=79776000&AudioBitrate=224000&MaxHeight=1080&AudioStreamIndex=1&CopyTimestamps=true&SegmentContainer=ts&MinSegments=2&AllowInterlacedVideoStreamCopy=True&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=2&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&hevc-profile=Main&aac_latm-audiochannels=8&mp4a_latm-audiochannels=8&ac3-audiochannels=8&aac-audiochannels=8&mp3-audiochannels=8&TranscodeReasons=VideoProfileNotSupported
 
http://192.168.1.6:8096/emby/videos/894/hls1/main/0.ts?PlaySessionId=85b5ae50f2cc40a1b0c747dd6260b0d4
 
{"Protocol":"File","Id":"0026a1754ca7606bdac6d0bc8a75a83b","Path":"/mnt/usb-movies/Movies/1917 (2019)/1917 (2019) 1080p AAC.mp4","Type":"Default","Container":"mp4","Size":1976353359,"Name":"1080p AAC","IsRemote":false,"RunTimeTicks":71381860000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"hevc","CodecTag":"hev1","Language":"und","TimeBase":"1/24000","VideoRange":"SDR","DisplayTitle":"1080p HEVC","IsInterlaced":false,"BitRate":1985555,"BitDepth":10,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":800,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":false,"AttachmentSize":0},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","DisplayTitle":"English AAC 5.1 (Default)","DisplayLanguage":"English","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":224000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","AttachmentSize":0},{"Codec":"srt","Language":"eng","DisplayTitle":"English (SRT)","DisplayLanguage":"English","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/usb-movies/Movies/1917 (2019)/1917 (2019) 1080p AAC.eng.srt","Protocol":"File","AttachmentSize":0}],"Formats":[],"Bitrate":2214964,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}
 
>>>>>> User policy for Steven
Enable Playback Remuxing: True
Enable Video Playback Transcoding: True
Enable Audio Playback Transcoding: True
 
>>>>>> Selected Codecs
Decoder Automatic software decoder
 
 
Encoder x264 Software Encoder
Max Bitrate: 781 Mbit/s
Color Formats: YUV420P, YUVJ420P, YUV422P, YUVJ422P, YUV444P, YUVJ444P, NV12, NV16, NV21, YUV420P10, YUV422P10, YUV444P10, NV20, GRAY8, GRAY10 - Bit Depths: 8, 10, 12, 14
Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)
 
 
>>>>>> FindVideoEncoder - MediaType: h264, UseHardwareCodecs: True, HWA-Mode: Automatic
Info Checking: 'x264 Software Encoder'
Info Check successful - selecting 'x264 Software Encoder'
 
>>>>>> FindVideoDecoder - MediaType: hevc, UseHardwareCodecs: True, HWA-Mode: Automatic
Info Checking: 'Automatic software decoder'
Info Check successful - selecting 'Automatic software decoder'
 
>>>>>> Processing Plan
Name CanDoInHW WillDoInHW Reason 
Automatic software decoder >> False False Software Codec 
VideoInput >> False False Not a hardware decoder 
ColorConversion >> False False 
VideoOutput >> False False Not a hardware encoder 
x264 Software Encoder >> False False Software Codec 
 
>>>>>> Video Processing Steps for [0:0]: H.265 (HEVC)
Step HW-Context Format SW-Format Size Next
HEVC >> - yuv420p10 yuv420p10 1920x800 >> format
format >> - yuv420p yuv420p 1920x800 >> 
 
/opt/emby-server/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/var/lib/emby/logs/ffmpeg-transcode-b191a951-e335-4a21-ab47-80068a7d9bd0_1graph.txt" -copyts -start_at_zero -f mp4 -c:v:0 hevc -i "/mnt/usb-movies/Movies/1917 (2019)/1917 (2019) 1080p AAC.mp4" -filter_complex "[0:0]format@f1=pix_fmts=yuv420p[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 4963888 -bufsize:v:0 9927776 -sc_threshold:v:0 0 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -level:v:0 4.0 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 copy -metadata:s:a:0 language=eng -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/var/lib/emby/transcoding-temp/D74CAC/D74CAC.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/D74CAC/D74CAC_%d.ts"

 

Screenshot 2023-08-08 at 12.52.21.png

Link to comment
Share on other sites

stenweb

Yes - side loading worked! Thank you.

Will the main TV app be updated at some point with whatever changes are in the standard android app?

Link to comment
Share on other sites

1 hour ago, stenweb said:

Yes - side loading worked! Thank you.

Will the main TV app be updated at some point with whatever changes are in the standard android app?

HI, yes we are working on unifying them. Thanks.

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...