exoplayer-amazon-port: 4K Fire Stick - video stream stuck after few seconds, but audio stream go forward.
Issue description
Hi, I have a problem with some streams IPTV only in high resolutions on Fire TV Stick 4K. After few seconds video stream stuck but audio go forward. Then any replay/forward action causes crash app. When I testing on old FireStick, everything works correctly, low and high resolution.
01-14 12:22:22.685 21882 28884 E MtkOmxVdecEx: ## [ERROR] HandleStateSet() line: 7036 LOCK timeout...
01-14 12:22:29.986 21882 21897 E OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything... \
01-14 12:22:30.987 21882 21913 D MtkOmxVdecEx: [0xb30c9000] MtkOmxVdec::GetState (mState=OMX_StateExecuting) \
01-14 12:22:30.988 21882 21913 W OMXNodeInstance: [557a0015:MTK.DECODER.AVC] failed to enter Idle state (now Executing(3), aborting.\
01-14 12:22:30.988 21882 21913 D MtkOmxCore: Mtk_OMX_FreeHandle\
01-14 12:22:30.988 21882 21913 D MtkOmxVdecEx: [0xb30c9000] +MtkOmxVdec::ComponentDeInit
01-14 12:22:30.988 21882 21913 E MtkOmxVdecEx: [0xb30c9000] Warning!! ComponentDeInit before DeInitVideoDecodeHW! De-Init video driver..
01-14 12:22:30.998 21882 21913 I BWC : get_bwc_mm_property success
01-14 12:22:30.998 21882 21913 E BWC : fail to open ddr_type_file driver file
01-14 12:22:30.998 21882 21913 I BWC : DDR Type = -1
--------- beginning of crash
01-14 12:22:30.998 21882 28885 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb3eb30ec in tid 28885 (MtkOmxVdecDecod)
01-14 12:22:30.998 21882 21913 I BWC : smi_bw_ctrl_set: scen 3, turn off
01-14 12:22:30.998 21882 21913 I BWC : emi_string is CON_SCE_VP
01-14 12:22:30.999 198 198 W : debuggerd: handling request: pid=21882 uid=1046 gid=1013 tid=28885
01-14 12:22:30.999 21882 21913 I BWC : emi_bw_ctrl_set: CON_SCE_VP OFF
01-14 12:22:30.999 21882 21913 I BWC : set_bwc_mm_property: propterty_id=0, value1=0, value2=0
01-14 12:22:30.999 21882 21913 I BWC : gpu_bw_ultra_set: 1, enable
01-14 12:22:30.999 21882 21913 I BWC : Profile_Change:[BWCPT_VIDEO_PLAYBACK]:OFF,current concurrency is 0x0
01-14 12:22:30.999 21882 21913 I VDO_LOG : eVDecDrvRelease rhandleMem 0xb3f3e000
01-14 12:22:30.999 21882 21913 D MtkOmxVdecEx: [0xb30c9000] signal mInPortAllocDoneSem (1)
01-14 12:22:30.999 21882 28887 D MtkOmxVdecEx: [0xb30c9000] MtkOmxVdecConvertThread terminated
01-14 12:22:30.999 21882 28886 D MtkOmxVdecEx: [0xb30c9000] MtkOmxVdecPostDispThread terminated
01-14 12:22:30.999 21882 21913 D MtkOmxVdecEx: [0xb30c9000] signal mOutPortAllocDoneSem (1)
Reproduction steps
Add to media.exolist.json downloaded sample and run demo. After about 14s video stream will be stuck but audio stream go forward. Next try replay/restart sample, demo application will be crashed.
Link to test content
Sample stream https://www.dropbox.com/s/2urho8ayeuhchta/hd.ts?dl=0
Version of ExoPlayer being used
Software version Fire OS 6.2.5.8 (NS6258/1604) ExoPlayer 2.9.2 or ExoPlayer Amazon Port 2.9.0
A full bug report captured from the device
Bugreport https://www.dropbox.com/s/s77imyg3oyja6z3/bugreport-NS6258-2019-01-14-12-23-50.zip?dl=0 Log file https://www.dropbox.com/s/7t3fasnkogk0buw/log.txt?dl=0
Thanks for any help,
Regards
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 159 (7 by maintainers)
So, I have done some experimenting.
what my plan is:
The year is 2019, what is this “live tv” thing you speak of??? It’s such an issue that on the Amazon Fire topics of this little forum called Reddit you’ll find zero topics on this update. But hey, I’m glad they fixed it for whoever needs it. If I ever sell it, now I can claim it’s grandparent friendly.
Read above, issue has been reported FIXED by users, the exception is humiboy and his two alter egos. Found this file, didn’t work before, works now, perfectly: https://drive.google.com/open?id=1VxL4EtUDfourOqDudo5glVzGbzpukKBw My gramps is happy now! I’m happy for him!
It’s amazing that Amazon even bothered to fix an issue that is only relevant to a tiny, tiny number of users. Shield costs 3 or 4 times more and how long did it take them to fix the color spacing issue? 3 years? 4 years? If they even fixed it.
Let me disagree. Amazon’s marketing was at least deceptive around the FTS4K. They even made a public announcement about its MPEG2 HW 1080i de-interlacing capabilities, and never mentioned how crippled it is if you want to use it to watch MPEG4 IPTV. (there are TV apps developed for FTV, how should they perform without HW de-interlacing?)
So the marketing plan was most likely like:
This is where we are right now. Amazon just didn’t care about EU market.
@jebos what version tvheadend and what HW do you use for transcoding? I’m really curious, since I want to build a fanless home server and using a 1660 Ti’s Turing NVENC chip to deinterlace and transcode my H264 1080i to H265 1080p.
I’m on 1995 with Kodi 18.1. Streaming from tvheadend 1080i TV Channels (trying). It seems to kind of not crashing directly but the decoding quality is realy bad, the picture is choppy, trippled and not acceptable. I’m staying on transcoding the channels on the server for now but still hope things get fixed with that mysterious 1996 version - if it ever arrives.
@humiboy Stop spamming or you will get banned from this page. You have posted almost THIRTY TIMES in this thread.
@rinoshs Thanks a lot! Looking forward to the update “This fix is planned for end of Q2. The update should start going out to devices by the end of June.” !
I can understand that it needs to be scheduled together with the next, finalized, general system update (just pushing the firmware update alone, earlier, would be nice but would interfere with your release pipeline… I understand).
However, can you please answer one thing: Is this firmware fix re-enabling proper hardware deinterlacing of H264? Or will it make the devices do software decoding of interlaced H264 videos (and if so, is the CPU strong enough for that in 1080p and 4k)? Either way, we’ll be able to check that ourselves and figure out the answer when the update comes out. But it would just be nice to know ahead of time if the firmware update solves it on a hardware level, so that we get hardware-accelerated decoding of interlaced H264 videos.
Best regards!
Dude, i get for every nonsense question of you an E-Mail. Please stop this spamming.
On Mon, 3 Jun 2019, 22:43 humiboy, notifications@github.com wrote:
This fix is planned for end of Q2. The update should start going out to devices by the end of June.
@leone007 I would imagine mine on 1996 was bought around then. Either way I honestly think the 1996 bit is irrelevant as it crashes exactly the same as the rest of my stick do and always have lol
I too can confirm the same with cores hitting almost max when freeze happens.
Please everyone don’t get your hopes up thinking 1996 is the saviour as I honestly think you will be disappointed unfortunately. I don’t believe 1996 fixes anything 1995 didn’t
No one is lying about it not working please can we get the topic back on track to try and help resolve the issue between us
Joined, to report that those claiming the fix wasn’t working were lying but someone, actually lots of people beat me to it.
I guess you’re just the sort of mug punter that Amazon loves…you were delighted when they finally provide a fix for something that should’ve been working at launch, yet now you’ve not heard of Live TV?..make your mind up buddy.
Still not convinced you’re not a shill tbh, either that or a sad little troll.
@flokic Man, let us be old men and watch TV using a product that has TV in its name. (not to mention that certain content is only available on live TV)
I didn’t know that if something isn’t on Reddit it never existed.
Also, what does it have to do with our age? If I’m 65 I shouldn’t buy FTV? And BTW the issue has not been fixed, just read this thread and it will be obvious.
vs
So you are one of those ppl who needed it? The year is 2019, what is this 1080i50 streams/files thing you speak of???
You think every European using live TV is tiny? Its not amazing, unless you’re an Amazon shill.
I couldn’t care less about the shield, that’s not what’s being discussed.
What happened to the user humiboy? He’d complain every day, even started getting criticized for it and now disappeared… or he just created a new identity or better yet, identities, to do his complaining?
@watsond2002 My Firestick is in the bedroom so only running it at 1080p@50Hz as its a small telly. Irritatingly I only bought the 4k stick because of the much better x265 support, the normal Firestick wouldn’t play half of my media so I sent it back.
Im assuming the deinterlacing is being done via hardware as if I monitor the CPU usage there’s only a slight increase when watching TV compared to when its idle, id expect quite a bit more CPU usage if it was being done via software :
I’m on 6.2.6.4 (NS6264/1996) Fire TV home version 6.16.0-727
Kodi decoding UTV HD at the moment.
Video Decoder: amc-h264(S)(HW) Pixel format: Surface Deinterlace method: hardware
Working fine.
ITV2 (SD) Video Decoder: amc-mpeg2(S)(HW) Pixel format: Surface Deinterlace method: hardware
Also working fine.
Stick display set to auto. Deinterlacing fine and outputting 4K @ 60hz
I honestly don’t think 1996 is the missing link I think there must be a further update to come I would love to hear back from @VideoPlayerCode which version he is running?
I have just gone up to the TV again where 1996 is running and tried again, I use “Channels” to watch TV via a hdhomerun and ITV HD is awful on software. When I first tried to load it, the channel wouldn’t even load this time it just froze, so I restarted tried again got 2 seconds of video then got the freeze up with sound continuing only fizable again by restarting. I think my 10 minutes of hardware decoding this morning when 1996 first came through was a fluke.
It is a vendor software issue. Vendor fix development is an iterative process. The vendor fixes have to go through a full regression cycle, which usually catches regressions which might not be related to the original fix. The vendor then goes and refines the fix to account for regressions. This iterative process is what takes time.
This is a H264 deinterlacing issue. We are working our vendor partners for a fix.
This I can kind of already do via my plex media server it transcodes the HDHomeRun, but the navigation of the guide is awful the whole thing becomes so slow to use, this is what made me switch from Roku’s with Plex to Fire Sticks with Channels app as the guide and channel switching was fantastic, as close to a traditional TV as possible
@dougie175 I edited my comment with a different option 😃 I’m going to go down on the second road. Also please read this. All the services you mentioned has a kodi add-on AFAIK.
@dougie175 if you wanna keep your balls, buy some cheap S905 or S912 sticks/boxes, install CoreElec, set the GUI to 1080i, and there you go, your TVs will do the de-interlacing (and in better quality than FTS4K could ever do). Also install HDHomerun kodi add-on, or whatever PVR add-on you need.
Amazon Prime Video, and Netflix will be 720p unfortunately as this can be only SW decoded under linux and these cheap SoCs dont have the horsepower to SW decode 1080p.
OR
Buy a PC with nVidia 1660 Ti, install linux, build a tvheadend with latest NVENC API and transcode your HDHomerun streams to H265 1080p 50 fps. This way you can keep and use your FTS4Ks. 😃
And as I said:
1080i as available resolution for FTS4K would solve this whole hassle.
@gb160 I really hope not my wife will castrate me if it doesn’t start working soon I’ve been promising her the fix is coming soon so she can watch TV without massive frame skips due to software decoding!
I took the bold step to put TV’s all around the new house without a traditional TV aerial’s so the only way you can watch live TV in my house is through the HDHomeRun via the Fire Stick’s I did this because the fix was “coming by the end of Q2”
Oh well lads, on the positive side, only another 5 months 29 days to wait until we’re likely to see another attempted fix by Amazon.
I really don’t understand why this has been closed.
It gives the impression that the problem has been solved by this fix when it clearly hasn’t.
It would also be good to hear from someone at Amazon why some people are updated to 6.2.6.4 (NS6264/1996), yet some are still on 6.2.6.4 (NS6264/1995), and clear this up once and for all.
@VideoPlayerCode
Here and here for the cause.
@y2000j
Exactly, one of the cores jumps to 100%. And I can confirm that y2000j’s sample freezes my FTS4K.
Can someone capture a 3 minute TS file from channels that crash their fully updated FireTV?
Look at your M3U playlist in a text editor and find one of the crashy channels. Then run this command on a computer (with ffmpeg installed):
ffmpeg -i "the video url" -codec copy -t 00:03:00 test.ts
Share it with us and let’s all test the bad channels!
Okay my celebrations are over…
@rinoshs
Here is a video showing that deinterlacing still crashes in the new OS update:
https://vimeo.com/344003267
The update improved the situation for a lot of channels, solving many of them completely, and has now made the image nicely deinterlaced. But there are SOME channels (certain bad video data) that can still crash the player. Most likely there’s some problematic/buggy/corrupt video streams in these channels, which confuses the decoder and crashes it…
Here I am playing the “https://drive.google.com/open?id=1VxL4EtUDfourOqDudo5glVzGbzpukKBw” test file, and after a while the whole hardware decoder crashes and the hardware becomes unusable (cannot play videos) until rebooted.
Please submit the linked file (from google drive) to the team. Use the download-link from the hidden top-bar (hover over it) on the Google Drive page, and get the raw TS file. When they’ve played the file for about 40 seconds (to the end of the linked video), the hardware decoder crashes.
I described my OS update history in my previous posts above. But here it is again:
PS: My FireTV 4K unit was bought in June 2019 so is presumably the latest hardware revision.
The issue you had with deinterlacing in Prime, I’ve had yesterday as well, for the first time ever, on my 2015 samsung smart tv prime video app! Nothing to do with this update but hey let’s blame this update for everything plus the bad weather.
I still have not received an update living in Germany, someone still had that problem
Ignore Jeff Bezos’ alter ego.
@flokic did you join today? to say thanks to amazon? 🤣
Well all I can tell that there is more than 2 unhappy alter-egos 😃 Reported FIXED by someone, reported NOT FIXED by someone else. For you it means it’s fixed, for me it means quite the opposite.
Ive factory reset mine yesterday, but its back to working order, or as well as can be expected.
Wishful thinking but maybe Amazon are actually trying to fix things their end?
@leone007
Only saw one file on the Dropbox.
Works fine… kodi displays same decoding information as my UTV HD info above.
here is a screenshot
https://ibb.co/0Vf8B4c
Yeah this is what made the Firestick 4k more appealing, and at half the price was the clincher. Really hope this issue can be sorted once and for all all because, as u said, it’ll be a killer device for the price.
Waiting six months is amazing? Wow some people are easily pleased.
I don’t wanna turn this into an Amazon kicking contest but six-month wait for a fix which isn’t even available/working for most, isn’t by any means, amazing.
No deinterlacing before on 1080i50 streams/files, perfect deinterlacing now with 6.2.6.4 (NS6264/1995) Thank you amazon for the, as always, amazing client support!
That’s a very strange thing for Amazon to do make an update with no revision number difference’s I am not sure how they can track the updates.
Either way you currently seem to be the only person with this working, what’s even more strange is that I was on 1995 not updated to 1996 but haven’t received the fix you have?
@leone007 Hi. Still 1995. Exact version is shown in my post from yesterday (above).
The two separate ”System components” updates did not change any of the version numbers at all. Only the OS update changed the numbers.
Day 1:
Day 2:
Yea this could have been the perfect kodi device. Great remote, small form factor, L1 DRM for Netflix (this is the part where every other kodi device - apart from nVidia Shield - fails. ) great image quality, HDR, 4K, etc. And despite it has TV in its name, it cannot do de-interlacing.
The problem is that Netflix and its policy about 4K HDR content leaves us with only a few devices, coming from big companies, like Amazon, and they just don’t give a shit about QC. 😦
I’m in the UK with NS6264/1996 on one of the 4k’s as of this morning the other 4 haven’t been given the update yet.
Unfortunately I am not finding 1996 any better than previous version playing ITV HD it played nicely in hardware decoding until the adverts when it frozen and could only be fixed by a reset. I had tried since then and its no better than before
But at least this means the updates are rolling out, outside the US but as to who gets it and when it seems very sporadic, like I say I have 5 of these 4K’s in my house and only 1 has the update available
@gb160 So it has arrived, updated the software, and I had 1 component update right after restart from the 6.2.6.4 SW update.
Installed kodi 18.2 (not RC) & tvheadend add-on, and it works. It is far from perfect, I can still observe some artifacts from de-interlacing (maybe I shouldn’t watch it on 32 " TV from 80 cm distance), it isn’t LibreElec VAAPI Motion Adaptive, but it is totally watchable. (currently watching - solely for testing purposes - women’s football world cup, and it is definitely a watchable quality, despite lots of lateral camera movement)
@gb160 ordered one yesterday for testing purposes, will arrive today, I’ll keep you posted!
By me no available 2 or 3rd Systemupdate After 6.2.6.4
The IPTV Apps still crashes after a few zapping
@leone007 no luck im afraid with Kodi…the fact its now working with other apps is very good news though. On Kodi, playback starts and you can tell deinterlacing is working, but playback freezes after 5-10 seconds and a reboot is needed.
Ive posted my findings on a couple of threads over on the Kodi forums, so im hoping some people much smarter than me will be able to take a look at it.
Now its working on other apps Its looking promising imo.
And why end oft june and not now release the fix???
Where is the problem after 8 month with no fix?
And this ultimate fix, fixed all streaming problems with the 4K Stick?
Yes, the issue is specific to H264 interlaced video. This issue is fixed. The system ota is scheduled for mid Q2.
@humiboy Why you flame here so much?.. we are all waiting here for a fix… and how rinoshs wrote, the vendor is working on it… it make no sense with your repeated questions.