Jump to content

No videos play on Amazon FireTV


skug67
Go to solution Solved by skug67,

Recommended Posts

For the last few weeks (so I'm suspecting the latest update from the Amazon app store) every time I try to watch any video (format doesn't matter) on my FireTV I get the following message "Player error encountered. Will re-try..." followed by the app eventually giving up on trying to play the video altogether.

 

I'm running version 3.1.235.0 on a Debian box via the beta repository.  I can access and play videos on other devices (iPad, android phone, web browser) so it seems like the problem must be isolated in the AFTV app.

 

Thanks in advance for any help.

Link to comment
Share on other sites

Please note we don't recommend switching the same Emby Server installation between release channels, so you'll need a separate environment. If you're going to run pre-release though it's important that you stay up to date with the latest as your version is now several behind.

 

Thanks !

Link to comment
Share on other sites

So the docker install didn't work -- for some reason it gave file not found errors when it tried to play any file. Maybe because of trying to access files via NFS and su links (since I didn't want to actually copy everything over to the new machine). But I did a full uninstall/reinstall of the debian packages on my existing machine and the problem still continues.

 

Checked the logs and it seems like anything I access via AFTV is trying to be transcoded to mkv, which seems kind of weird. The vast majority of my files are in mp4 format with h264/aac encoding. Which I would have thought AFTV could play over the LAN w/o transcoding to mkv. (I've got the nitrate set to auto).

 

FWIW here are excerpts of the server log when it tries to play a file.

 

http://[server ip]:8096/emby/videos/4faa57c06ecdce88f538197c3d8008ce/stream.mkv?DeviceId=f9eb2ae280f19503&MediaSourceId=4faa57c06ecdce88f538197c3d8008ce&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=67004867&AudioBitrate=128000&MaxAudioChannels=2&PlaySessionId=9fd22eacd9414dd489ce49f1e3ac16de&api_key=edfd847f26884bac8db2a75648d4668e&CopyTimestamps=true&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=7509bd52444ee8202a3f70c5a88dd13f&EnableSplittingOnNonKeyFrames=false&RequireAvc=false

 

{"Protocol":"File","Id":"4faa57c06ecdce88f538197c3d8008ce","Path":"/[path/filename].mp4","Type":"Default","Container":"mp4","Name":"1080P/H264/AAC","ETag":"7509bd52444ee8202a3f70c5a88dd13f","RunTimeTicks":19794450000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/30000","CodecTimeBase":"1001/60000","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":4561561,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC 5.1 Default","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":488721,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":5058449,"RequiredHttpHeaders":{}}

 

/usr/bin/ffmpeg -fflags +genpts -i file:"/[path/filename].mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -copyts -avoid_negative_ts disabled -start_at_zero -map_metadata -1 -threads 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "aresample=async=1,volume=3" -y "/storage/emby-server/transcoding-temp/fa4017200e99acc93e53b4844d7b39d3.mkv"

 

 

ffmpeg version 3.2 Copyright © 2000-2016 the FFmpeg developers

built with gcc 6.2.0 (Debian 6.2.0-9) 20161019

configuration: --cc='ccache cc' --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --disable-mips32r2 --disable-mips32r6 --disable-mips64r6 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-libopencv --disable-podpages --disable-stripping --enable-avfilter --enable-avresample --enable-gcrypt --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libzvbi --enable-nonfree --enable-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --incdir=/usr/include/x86_64-linux-gnu --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened --enable-frei0r --enable-chromaprint --enable-libx264 --enable-libiec61883 --enable-libdc1394 --enable-vaapi --disable-opencl --enable-libmfx --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu

libavutil 55. 34.100 / 55. 34.100

libavcodec 57. 64.100 / 57. 64.100

libavformat 57. 56.100 / 57. 56.100

libavdevice 57. 1.100 / 57. 1.100

libavfilter 6. 65.100 / 6. 65.100

libavresample 3. 1. 0 / 3. 1. 0

libswscale 4. 2.100 / 4. 2.100

libswresample 2. 3.100 / 2. 3.100

libpostproc 54. 1.100 / 54. 1.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/[path/filename].mp4':

Metadata:

major_brand : isom

minor_version : 512

compatible_brands: isomiso2avc1mp41

encoder : Lavf57.56.100

Duration: 00:32:59.45, start: 0.000000, bitrate: 5058 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [sAR 1:1 DAR 16:9], Closed Captions, 4561 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)

Metadata:

handler_name : VideoHandler

Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 488 kb/s (default)

Metadata:

handler_name : SoundHandler

Output #0, matroska, to '/storage/emby-server/transcoding-temp/fa4017200e99acc93e53b4844d7b39d3.mkv':

Metadata:

encoder : Lavf57.56.100

Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [sAR 1:1 DAR 16:9], q=2-31, 4561 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 30k tbc (default)

Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 128 kb/s (default)

Metadata:

encoder : Lavc57.64.100 aac

Stream mapping:

Stream #0:0 -> #0:0 (copy)

Stream #0:1 -> #0:1 (aac (native) -> aac (native))

Press [q] to stop, [?] for help

frame= 277 fps=0.0 q=-1.0 size= 10245kB time=00:00:09.15 bitrate=9170.6kbits/s speed=18.3x

frame= 609 fps=609 q=-1.0 size= 21018kB time=00:00:20.22 bitrate=8515.1kbits/s speed=20.2x

frame= 930 fps=620 q=-1.0 size= 34880kB time=00:00:30.93 bitrate=9236.9kbits/s speed=20.6x

frame= 1210 fps=604 q=-1.0 size= 38833kB time=00:00:40.27 bitrate=7898.0kbits/s speed=20.1x

frame= 1565 fps=625 q=-1.0 size= 44507kB time=00:00:52.12 bitrate=6995.4kbits/s speed=20.8x

frame= 1837 fps=610 q=-1.0 size= 47044kB time=00:01:01.19 bitrate=6297.7kbits/s speed=20.3x

frame= 2106 fps=598 q=-1.0 size= 52412kB time=00:01:10.17 bitrate=6118.8kbits/s speed=19.9x

frame= 2367 fps=589 q=-1.0 size= 55535kB time=00:01:18.88 bitrate=5767.5kbits/s speed=19.6x

frame= 2632 fps=581 q=-1.0 size= 60707kB time=00:01:27.72 bitrate=5669.2kbits/s speed=19.4x

frame= 2714 fps=570 q=-1.0 Lsize= 62674kB time=00:01:30.47 bitrate=5674.9kbits/s speed= 19x

video:61231kB audio:1392kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.081273%

[aac @ 0x56157c02f900] Qavg: 2983.348

Link to comment
Share on other sites

Hi @@skug67, we've updated our docker package with a different build of ffmpeg. if you just re-install on top of your existing install that should take care of this. thanks.

Link to comment
Share on other sites

  • Solution

Was only using docker for diagnosis, the baseline problem is on an emby server installed from the debian packages.

 

That being said, was able to get the AFTV working by adding the nfs path to my files in the "Shared network folder" option for each of my libraries.  So still not quite sure what the problem was, but since I've found a work around that's good enough for me.

  • Like 1
Link to comment
Share on other sites

kkalbaugh

I'm having the same problem.  Emby clients work from all my computers via browser, iOS apps AND if I use the external player via VLC but not natively in AFTV like it used to.   The video files are all in a folder that is mounted from my freenas server.   I don't have NFS setup on my server (like skug67 suggested) so I tried to the the path to the files on the freenas server in the  "Shared network folder"

 

Server is 192.168.3.7.   Freenas server is 192.168.3.8

 

Version 3.0.8500.0 Amazon AFTS 1.2.77a

 

/etc/fstab settings:

 

 

//192.168.3.8/MEDIA /media/freenas cifs iocharset=utf8,credentials=/home/kkalbaugh/.smbcredentials,uid=emby,gid=emby 0 0

 

 

5844bd304d55d_20161204_195749.jpg

 

Unfortunately, I don't know how to get the logs from the AFTV to post because it just "Sends to the Developer".

 

http://192.168.3.7:8096/emby/videos/863e4090d787d4b763d5fcba0469d190/stream.mkv?DeviceId=aa950e50ad05e942&MediaSourceId=863e4090d787d4b763d5fcba0469d190&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=71089611&AudioBitrate=285854&MaxAudioChannels=2&PlaySessionId=1b80d9ef4a1b4932832521b2ff4deea1&api_key=cf67c1d1f4b94b8cb27fe2684acebb3b&CopyTimestamps=true&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=675cde4eeac5a4daad1a2bae85f683f6&EnableSplittingOnNonKeyFrames=false

{"Protocol":"File","Id":"863e4090d787d4b763d5fcba0469d190","Path":"/media/freenas/RecordedTVSeries/Anthony Bourdain Parts Unknown/Season 8/Anthony Bourdain Parts Unknown S08E08 Buenos Aires.mp4","Type":"Default","Container":"mp4","Name":"720P/H264/AAC","ETag":"675cde4eeac5a4daad1a2bae85f683f6","RunTimeTicks":38395030000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/60000","CodecTimeBase":"1001/120000","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":2670282,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":59.94006,"RealFrameRate":59.94006,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"und","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Und AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":285854,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":2968738,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -fflags +genpts -i file:"/media/freenas/RecordedTVSeries/Anthony Bourdain Parts Unknown/Season 8/Anthony Bourdain Parts Unknown S08E08 Buenos Aires.mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -copyts -avoid_negative_ts disabled -start_at_zero -map_metadata -1 -threads 0 -codec:a:0 copy -y "/var/lib/emby-server/transcoding-temp/1441c825ed0619c3ba669575637d7d9e.mkv"


ffmpeg version 3.2.1-1~ubuntu16.04.1york1 Copyright © 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Ubuntu 5.4.1-3ubuntu1~ubuntu16.04.1york0) 20161019
configuration: --prefix=/usr --extra-version='1~ubuntu16.04.1york1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-libtesseract --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/freenas/RecordedTVSeries/Anthony Bourdain Parts Unknown/Season 8/Anthony Bourdain Parts Unknown S08E08 Buenos Aires.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.56.100
Duration: 01:03:59.50, start: 0.000000, bitrate: 2968 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [sAR 1:1 DAR 16:9], Closed Captions, 2670 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 285 kb/s (default)
Metadata:
handler_name : SoundHandler
Output #0, matroska, to '/var/lib/emby-server/transcoding-temp/1441c825ed0619c3ba669575637d7d9e.mkv':
Metadata:
encoder : Lavf57.56.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [sAR 1:1 DAR 16:9], q=2-31, 2670 kb/s, 59.94 fps, 59.94 tbr, 1k tbn, 60k tbc (default)
Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 285 kb/s (default)
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=11050 fps=0.0 q=-1.0 size= 81964kB time=00:03:04.30 bitrate=3643.2kbits/s speed= 369x
frame=21974 fps=21974 q=-1.0 size= 161391kB time=00:06:06.55 bitrate=3606.9kbits/s speed= 367x
frame=37066 fps=24710 q=-1.0 size= 245006kB time=00:10:18.33 bitrate=3246.0kbits/s speed= 412x
frame=54825 fps=27412 q=-1.0 size= 339913kB time=00:15:14.61 bitrate=3044.5kbits/s speed= 457x
frame=70732 fps=28279 q=-1.0 size= 439659kB time=00:19:39.99 bitrate=3052.3kbits/s speed= 472x
frame=88326 fps=29430 q=-1.0 size= 535536kB time=00:24:33.52 bitrate=2977.3kbits/s speed= 491x
frame=102707 fps=29334 q=-1.0 size= 631130kB time=00:28:33.44 bitrate=3017.4kbits/s speed= 489x
frame=117156 fps=29262 q=-1.0 size= 719382kB time=00:32:34.51 bitrate=3015.2kbits/s speed= 488x
frame=128653 fps=28544 q=-1.0 size= 781900kB time=00:35:46.31 bitrate=2984.3kbits/s speed= 476x
frame=134670 fps=28362 q=-1.0 Lsize= 821603kB time=00:37:26.69 bitrate=2995.8kbits/s speed= 473x
video:741876kB audio:78027kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.207230%

Edited by kkalbaugh
Link to comment
Share on other sites

kkalbaugh

Hi there @@kkalbaugh can you please describe the issue you're experiencing in more detail? thanks !

 

I am unable to play videos from my Amazon Fire TV (2nd gen) Emby App.   I get "Player error encountered. Will re-try.."      Live TV works but not any videos.     

Link to comment
Share on other sites

Unfortunately, I don't know how to get the logs from the AFTV to post because it just "Sends to the Developer".

 

Please create the problem, then send the log, then provide the information requested under "Emby for Android TV/Fire TV logs" here.  Thanks.

Link to comment
Share on other sites

kkalbaugh

Please create the problem, then send the log, then provide the information requested under "Emby for Android TV/Fire TV logs" here.  Thanks.

Sent the log at 8:48pm EST.    Login name was "Kids".   Tried "Anthony Bourdain: Parts Unknown" as an example.

Link to comment
Share on other sites

Sent the log at 8:48pm EST.    Login name was "Kids".   Tried "Anthony Bourdain: Parts Unknown" as an example.

 

Okay, we are transcoding and the player does not like what it is being fed.  Have you customized your version of ffmpeg or are you trying to use hardware acceleration?

Link to comment
Share on other sites

kkalbaugh

Okay, we are transcoding and the player does not like what it is being fed.  Have you customized your version of ffmpeg or are you trying to use hardware acceleration?

 

I haven't customized the ffmpeg (at least not on purpose  :)) and I've not selected hardware acceleration.   However, I am unable to select "Use System Installed Version" because upon save it reverts back to custom.     Obviously, I would love for it not to transcode it to reduce server load, but I have no idea what happened.     And I want to say that I appreciate your help with this.

 

 5847237862fd1_20161206_154655.jpg

Link to comment
Share on other sites

kkalbaugh

Can you please try this version of ffmpeg?

 

https://github.com/M...er/ffmpeg/linux

 

Thanks.

 

This got it working!!   Thank you very much!  

 

I would like to ask what I can do to get Emby to encode the files so that the AFTV doesn't require transcoding.   I bought the 2nd gen Amazon Fire TVs after my 2nd gen sticks stopped working with HD programming.   I would love to shift the processing to the AFTVs so that the server can handle recording multiple live TV feeds.   I have it set to "Automatically convert recordings to a streaming friendly format".    Any help would be appreciated.   I've searched around but my googling skills must be lacking on this.

Link to comment
Share on other sites

I believe the reason that item is transcoding is because it is an mp4 with only 1 ref frame.

 

If you want to try the new beta, it will attempt to direct stream this item (but may not work and have to fall back to transcoding it).  If you repackage into an mkv, does it direct stream?

Link to comment
Share on other sites

kkalbaugh

I believe the reason that item is transcoding is because it is an mp4 with only 1 ref frame.

 

If you want to try the new beta, it will attempt to direct stream this item (but may not work and have to fall back to transcoding it).  If you repackage into an mkv, does it direct stream?

I installed the new beta and it stopped working all together.  I think because it reverted back to using the ffmpeg that is in /usr/bin/ffmpeg not the one that I downloaded last night.   Apparently the place to specify the path of ffmpeg is gone from the Transcoding menu.      Where can I specify that at or should I just delete everything in /usr/bin/ffmpeg and install the version I downloaded from you.

 

I sent the logs from AFTV at 5:36pm.   Login name was "Kids".

Link to comment
Share on other sites

kkalbaugh

I think you installed the beta of the server but I was referring to the app...

I'm sure I'll feel stupid about this later, but I don't see where to install the beta app.  

Link to comment
Share on other sites

  • 2 weeks later...
kkalbaugh

Sorry for the long delay in my testing all this.  Unfortunately, it worked until the recent updates and it has stopped working on my AFTV again.   I have a feeling that it might be related to FFMPEG again because it seems to consistently lose its settings for Live TV during upgrades.    

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