amzn / exoplayer-amazon-port

Official port of ExoPlayer for Amazon devices
Apache License 2.0
171 stars 77 forks source link

FTV Stick 4K interlaced video playback leads to media player crash #94

Closed leone007 closed 3 years ago

leone007 commented 5 years ago

Following the latest update (6.2.6.4) interlaced videos can crash FTV Stick 4K's media player, which won't be able to play any more content until a complete device restart.

video of the issue

samples that will crash the MP:

1, 2, 3

Fire OS 6.2.6.4 (NS6264/1995)
Fire TV Home Version 6.1.6.0-727
y2000j commented 5 years ago

The same situation with my FTV Stick 4k. After the video crashed, i cant do anything until a device restart.

My Version is Fire OS 6.2.6.4 (NS6264/1995)

Arcitec commented 5 years ago

@everyone: Please don't flood this thread the same way as the original ticket. That one was locked after getting like 100 replies in 1 day. xD Please be careful and only add meaningful notes to the discussion! We already know that this issue is huge and affects everyone, so we don't need 100x "me too" posts again. We already have that in the original thread. Please also remember that this is a vendor firmware (BIOS) issue and that Amazon can't fix it themselves... it must be fixed by the decoder-chip vendor, who are the only ones with the BIOS source code! Any timeframe for a fix depends completely on the chip vendor... The vendor's "fix" for the original issue did make some channels work, but still crashes badly on other channels, so they will need to do another BIOS code update...! Please be patient and let's do our best to help Amazon and the chip vendor figure out what's wrong!

@leone007 Thanks a lot for starting the ticket. I was just going to do it! Here's the sample I was playing in my crash example video (the one you linked to):

Here's more information about my crash video: https://github.com/amzn/exoplayer-amazon-port/issues/81#issuecomment-504814551

I bought my stick in late May or early June of this year.

And here's my OS version (it installed the OS update on June 22nd, and then two "System components" updates):

Fire OS 6.2.6.4 (NS6264/1995)
Fire TV Home Version 6.1.6.0-727

I can confirm that your new samples crash on my FireTV Stick 4K too!

I just saw something interesting when I ran ffprobe -- 1080i_testclip.ts. It is saying that this video is corrupt and is referencing some non-existent "PPS" (?) data. It also shows a very interesting error saying number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one...

[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7fcb89002800] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x7fcb89002800] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 0x7fcb89002800] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x7fcb89002800] Increasing reorder buffer to 2
Input #0, mpegts, from '1080i_testclip.ts':
  Duration: 00:00:37.83, start: 2908.645344, bitrate: 7943 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s

And to get the interlacing info with ffprobe, I must run this command: ffprobe -select_streams v -show_frames -- 1080i_testclip.ts

Then simply looking at one of the frames, to see what the video data is:

[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=262051200
pkt_pts_time=2911.680000
pkt_dts=262053000
pkt_dts_time=2911.700000
best_effort_timestamp=262051200
best_effort_timestamp_time=2911.680000
pkt_duration=1800
pkt_duration_time=0.020000
pkt_pos=2023632
pkt_size=12904
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=P
coded_picture_number=74
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

I then ffprobed the 3 samples you provided as well:

[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] SPS unavailable in decode_picture_timing
[h264 @ 0x7fcb89002800] non-existing PPS 0 referenced
[h264 @ 0x7fcb89002800] decode_slice_header error
[h264 @ 0x7fcb89002800] no frame!
[h264 @ 0x7f98bc809800] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
Input #0, mpegts, from 'Eurosport 1-.ts':
  Duration: 00:01:14.40, start: 5177.459467, bitrate: 6782 kb/s
  Program 1 
    Metadata:
      service_name    : ?Service01
      service_provider: ?FFmpeg
    Stream #0:0[0xd3]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0xdd](deu): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 384 kb/s

[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=466266552
pkt_pts_time=5180.739467
pkt_dts=466268352
pkt_dts_time=5180.759467
best_effort_timestamp=466266552
best_effort_timestamp_time=5180.739467
pkt_duration=1800
pkt_duration_time=0.020000
pkt_pos=2461860
pkt_size=7487
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=B
coded_picture_number=83
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

---------------------------

Input #0, mpegts, from '-Eurosport-HD2019-06-2410-37.ts':
  Duration: 00:03:00.82, start: 3907.001156, bitrate: 8645 kb/s
  Program 206 
    Metadata:
      service_name    : Eurosport HD
      service_provider: DIGI Debrecen
    Stream #0:0[0x21](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:1[0xbb8]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0xc81](hun): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s

[FRAME]
media_type=video
stream_index=1
key_frame=0
pkt_pts=351970568
pkt_pts_time=3910.784089
pkt_dts=N/A
pkt_dts_time=N/A
best_effort_timestamp=351970568
best_effort_timestamp_time=3910.784089
pkt_duration=1800
pkt_duration_time=0.020000
pkt_pos=3182652
pkt_size=7433
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=B
coded_picture_number=78
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

---------------------------

Input #0, mpegts, from '-Eurosport-2-HD2019-06-2410-23.ts':
  Duration: 00:03:01.10, start: 77289.788911, bitrate: 9666 kb/s
  Program 211 
    Metadata:
      service_name    : Eurosport 2 HD
      service_provider: DIGI Debrecen
    Stream #0:0[0xfa0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x106b](hun): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x106c](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s

[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=6956453470
pkt_pts_time=77293.927444
pkt_dts=6956453470
pkt_dts_time=77293.927444
best_effort_timestamp=6956453470
best_effort_timestamp_time=77293.927444
pkt_duration=3600
pkt_duration_time=0.040000
pkt_pos=4308584
pkt_size=35211
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=B
coded_picture_number=86
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
chroma_location=left
[/FRAME]

---------------------------
gb160 commented 5 years ago

Yep, im on:

Fire OS 6.2.6.4 (NS6264/1995) Fire TV Home Version 6.1.6.0-727

Pretty much any interlaced video is causing the player to lock up, rendering the entire device unusable until its rebooted.

leone007 commented 5 years ago

@VideoPlayerCode some working testfiles, I have no problem watching these streams nor playing these files. 1, 2

I'll try to do yourffprobemagic on them, update this post with results (to see what can be the difference between working and freezing strames)

UPDATED

[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] SPS unavailable in decode_picture_timing
[h264 @ 000001ca3a5cd540] non-existing PPS 0 referenced
[h264 @ 000001ca3a5cd540] decode_slice_header error
[h264 @ 000001ca3a5cd540] no frame!
[mpegts @ 000001ca3a5cbd00] PES packet size mismatch

frame:

[FRAME]
media_type=video
stream_index=0
key_frame=0
pkt_pts=4469443774
pkt_pts_time=49660.486378
pkt_dts=4469443774
pkt_dts_time=49660.486378
best_effort_timestamp=4469443774
best_effort_timestamp_time=49660.486378
pkt_duration=3600
pkt_duration_time=0.040000
pkt_pos=24192780
pkt_size=16991
width=1920
height=1080
pix_fmt=yuv420p
sample_aspect_ratio=1:1
pict_type=B
coded_picture_number=429
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown
chroma_location=left
[SIDE_DATA]
side_data_type=Active format description
[/SIDE_DATA]
[/FRAME]
Arcitec commented 5 years ago

@leone007 Thanks, since they work, that seems to confirm that we can safely ignore the SPS and non-existing PPS 0 referenced errors.

I have updated my post to add info about another error I discovered: Two of our four test original test files contained illegal data. They were marked as H264 Level 4.1, which only allows up to 4 reference frames at 1080p. But they instead contained 5 frames. That breaks the spec. I still think the hardware is powerful enough that it should be able to decode that violation. The spec is just meant to guide hardware decoder makers to how much data they should expect to need to decode at once. But since this hardware is capable of 4K decoding, I doubt that an extra H264 reference frame will be too much for its memory to handle. ;-) And, only 2 of the 4 bad files had that violation so it's probably not related. Still, I updated my post with those details...

@rinoshs I am very interested in knowing what these all of these test files do to your internal testing units. :-)

leone007 commented 5 years ago

also here is some mediainfo w/ advanced debug

working samples:

Video
Count                                    : 377
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0-0
Inform                                   : 9 802 kb/s, 1920*1080 (16:9), at 25.000 FPS, AVC (High@L4) (CABAC / 4 Ref Frames)
ID                                       : 200
ID                                       : 200 (0xC8)
Menu ID                                  : 314
Menu ID                                  : 314 (0x13A)
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Internet media type                      : video/H264
Codec ID                                 : 27
Duration                                 : 178960
Duration                                 : 2 min 58 s
Duration                                 : 2 min 58 s 960 ms
Duration                                 : 2 min 58 s
Duration                                 : 00:02:58.960
Duration                                 : 00:02:58:24
Duration                                 : 00:02:58.960 (00:02:58:24)
Bit rate                                 : 9802184
Bit rate                                 : 9 802 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 4474
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type                                : MBAFF
Scan type, store method                  : InterleavedFields
Scan type, store method                  : Interleaved fields
Scan order                               : TFF
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.189
Delay                                    : 49433632.000
Delay                                    : 13 h 43 min
Delay                                    : 13 h 43 min 53 s 632 ms
Delay                                    : 13 h 43 min
Delay                                    : 13:43:53.632
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 219274856
Stream size                              : 209 MiB (86%)
Stream size                              : 209 MiB
Stream size                              : 209 MiB
Stream size                              : 209 MiB
Stream size                              : 209.1 MiB
Stream size                              : 209 MiB (86%)
Proportion of this stream                : 0.86007

and

Video
Count                                    : 377
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0-0
Inform                                   : 9 931 kb/s, 1920*1080 (16:9), at 25.000 FPS, AVC (High@L4) (CABAC / 4 Ref Frames)
ID                                       : 1001
ID                                       : 1001 (0x3E9)
Menu ID                                  : 310
Menu ID                                  : 310 (0x136)
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Internet media type                      : video/H264
Codec ID                                 : 27
Duration                                 : 179120
Duration                                 : 2 min 59 s
Duration                                 : 2 min 59 s 120 ms
Duration                                 : 2 min 59 s
Duration                                 : 00:02:59.120
Duration                                 : 00:02:59:03
Duration                                 : 00:02:59.120 (00:02:59:03)
Bit rate                                 : 9930950
Bit rate                                 : 9 931 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 4478
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : MBAFF
Scan type                                : MBAFF
Scan type, store method                  : InterleavedFields
Scan type, store method                  : Interleaved fields
Scan order                               : TFF
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.192
Delay                                    : 49643848.000
Delay                                    : 13 h 47 min
Delay                                    : 13 h 47 min 23 s 848 ms
Delay                                    : 13 h 47 min
Delay                                    : 13:47:23.848
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 222353970
Stream size                              : 212 MiB (86%)
Stream size                              : 212 MiB
Stream size                              : 212 MiB
Stream size                              : 212 MiB
Stream size                              : 212.1 MiB
Stream size                              : 212 MiB (86%)
Proportion of this stream                : 0.86441

these are the bad ones

Video
Count                                    : 377
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0-0
Inform                                   : 8 856 kb/s, 1920*1080 (16:9), at 25.000 FPS, AVC (Component) (High@L4) (CABAC / 4 Ref Frames)
ID                                       : 4000
ID                                       : 4000 (0xFA0)
Menu ID                                  : 211
Menu ID                                  : 211 (0xD3)
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Format settings, GOP                     : M=8, N=24
Internet media type                      : video/H264
Codec ID                                 : 27
Duration                                 : 179560
Duration                                 : 2 min 59 s
Duration                                 : 2 min 59 s 560 ms
Duration                                 : 2 min 59 s
Duration                                 : 00:02:59.560
Duration                                 : 00:02:59:14
Duration                                 : 00:02:59.560 (00:02:59:14)
Bit rate                                 : 8855893
Bit rate                                 : 8 856 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 4489
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
**Scan type                                : MBAFF
Scan type                                : MBAFF
Scan type, store method                  : InterleavedFields
Scan type, store method                  : Interleaved fields
Scan order                               : TFF
Scan order                               : Top Field First**
Bits/(Pixel*Frame)                       : 0.171
Delay                                    : 77290888.000
Delay                                    : 21 h 28 min
Delay                                    : 21 h 28 min 10 s 888 ms
Delay                                    : 21 h 28 min
Delay                                    : 21:28:10.888
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 198770518
Stream size                              : 190 MiB (91%)
Stream size                              : 190 MiB
Stream size                              : 190 MiB
Stream size                              : 190 MiB
Stream size                              : 189.6 MiB
Stream size                              : 190 MiB (91%)
Proportion of this stream                : 0.90839
colour_description_present               : Yes
colour_description_present_Source        : Stream
Color range                              : Limited
colour_range_Source                      : Stream
Color primaries                          : BT.709
colour_primaries_Source                  : Stream
Transfer characteristics                 : BT.709
transfer_characteristics_Source          : Stream
Matrix coefficients                      : BT.709
matrix_coefficients_Source               : Stream

and

Video
Count                                    : 377
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0-1
Inform                                   : 7 868 kb/s, 1920*1080 (16:9), at 25.000 FPS, AVC (Component) (High@L4) (CABAC / 4 Ref Frames)
ID                                       : 3000
ID                                       : 3000 (0xBB8)
Menu ID                                  : 206
Menu ID                                  : 206 (0xCE)
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Internet media type                      : video/H264
Codec ID                                 : 27
Duration                                 : 178840
Duration                                 : 2 min 58 s
Duration                                 : 2 min 58 s 840 ms
Duration                                 : 2 min 58 s
Duration                                 : 00:02:58.840
Duration                                 : 00:02:58:21
Duration                                 : 00:02:58.840 (00:02:58:21)
Bit rate                                 : 7868158
Bit rate                                 : 7 868 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1080
Height                                   : 1 080 pixels
Stored_Height                            : 1088
Sampled_Width                            : 1920
Sampled_Height                           : 1080
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate                               : 25.000
Frame rate                               : 25.000 FPS
Frame count                              : 4471
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan type                                : Interlaced
Scan type, store method                  : SeparatedFields
Scan type, store method                  : Separated fields
Scan order                               : TFF
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.152
Delay                                    : 3908264.000
Delay                                    : 1 h 5 min
Delay                                    : 1 h 5 min 8 s 264 ms
Delay                                    : 1 h 5 min
Delay                                    : 01:05:08.264
Delay, origin                            : Container
Delay, origin                            : Container
Stream size                              : 175892667
Stream size                              : 168 MiB (90%)
Stream size                              : 168 MiB
Stream size                              : 168 MiB
Stream size                              : 168 MiB
Stream size                              : 167.7 MiB
Stream size                              : 168 MiB (90%)
Proportion of this stream                : 0.90008
colour_description_present               : Yes
colour_description_present_Source        : Stream
Color range                              : Limited
colour_range_Source                      : Stream
Color primaries                          : BT.709
colour_primaries_Source                  : Stream
Transfer characteristics                 : BT.709
transfer_characteristics_Source          : Stream
Matrix coefficients                      : BT.709
matrix_coefficients_Source               : Stream

It appears that the good ones have unknown color space (and won't even show up in Mediainfo)

color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown

Whereas the bad ones have BT.709

color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709

Dunno if it makes a difference though. :(

EDIT: @y2000j's (bad) sample's frame analysis also contains this:

color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709

So does the 2 bad samples provided by me (Eurosport and Eurosport 2)

I think we need more WORKING samples to see what is going on with BT.709 color space and interlaced video.

Like this one, with unknown color space. I've yet to see a sample with BT.709 color space that is actually working.

Another bad one with BT.709.

We need someone with tvheadend 4.3+ (I'm on 4.2.8) to see if a native BT.709 stream works transcoded to different color space (I believe color space option exist in 4.3+ versions w/ transcoding, but correct me if I'm wrong)

OR since I'm not an ffmpeg magician could someone, like @VideoPlayerCode :) transcode our BT.709 samples to a different color space, and upload them for testing?

UPDATE: So all I have found is how to make a video BT.709 color space, but so far handbrake only produced progressive videos, so that isn't good for testing.

-vf scale=out_color_matrix=bt709 -color_primaries bt709 -color_trc bt709 -colorspace bt709

This ffmpeg parameter needed to add as extra options during encoding, all I have to figure out is to leave the interlaced format untouched.

Arcitec commented 5 years ago

@leone007 Great work and very interesting theory!

Here's a Reddit comment which seems to tell us how to make interlaced videos with Handbrake:

https://www.reddit.com/r/DataHoarder/comments/61u76d/preferred_handbrake_settings/dfmzn38/

It says:

Most importantly, don't butcher your DVD content by deinterlacing them, but use :tff x264 advanced option in Handbrake to preserve the interlacing (add :tff into the advanced options box by hand). Anything with action/panning, you'll be happy to have 60i/50i content instead of 30p/25p/24p.

gb160 commented 5 years ago

Problem with this approach guys is that re-encoding may well fix whatever the underlying problem is, regardless of whether its related to the colourspace....so im not sure its going to prove much.

Im interested to hear any feedback from the Amazon/Chipset devs and to hear their findings. The fact that there's so many people still reporting issues with it makes you think they've overlooked something pretty big with their latest fix.

leone007 commented 5 years ago

Using this as extra parameter (don't laugh!)

:tff -vf scale=out_color_matrix=bt709 -color_primaries bt709 -color_trc bt709 -colorspace bt709

or

-vf scale=out_color_matrix=bt709 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -flags +ilme+ildct -alternate_scan 1

this is what I get, progressive, but BT.709

Scan type                                : Progressive
Writing library                          : x264 core 157 r2935 545de2f
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=31250 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
leone007 commented 5 years ago

@gb160

Problem with this approach guys is that re-encoding may well fix whatever the underlying problem is, regardless of whether its related to the colourspace....so im not sure its going to prove much.

Well this is the exact reason why I don't want to fix BT.709 videos, but want to "ruin" already working videos. IF I can produce a freezing interlaced BT.709 video from a currently working one, that can prove that my theory is working.

Arcitec commented 5 years ago

@leone007 I found another thread which says ":tff or :bff". And it also says that x264 encodes as Progressive with some flags that tell the decoder that it is actually interlaced:

https://www.hardwareheaven.com/community/threads/encoding-an-interlaced-source-into-an-interlaced-x264-format.218040/#post-1472536

So try the ffprobe tricks on your final video and see if it has interlaced_frame=1 in the output.

Edit: I guess your output is not interlaced. The "Encoding settings" line says interlaced=0 in your post above. :'( Well, I've tried Googling how to make interlaced videos with ffmpeg and the search results are very confusing, outdated and contradictory...

gb160 commented 5 years ago

@leone007 I see. Some feedback from Amazon would still be appreciated though....seems odd that you guys are doing all the heavy lifting in here.

leone007 commented 5 years ago

:tffand :bff refers to top field first and bottom field first, but 1st I have to convince handbrake to interlaced=1

EDIT: back in the days when I fought with plex, when I wanted plex to direct stream my HDHomerun content, I came across a comment, that says as soon as plex starts to transcode (due to bandwidth conservation reasons) you'll lose the chance to get the 1080i stream through, and it will be transcoded to 1080p 25 fps, since ffmpeg cannot transcode to interlaced. I'm not sure it is right, but I managed to lift the bandwidth limitations, so I circumvent the transcoding, and used it to direct stream 1080i.

y2000j commented 5 years ago

I found some more streams who crashed my FTV 4k 1 2 3 4

tele5.ts [h264 @ 000001e2e8000580] mmco: unref short failure Last message repeated 1 times [h264 @ 000001e2e8000580] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 000001e2e8000580] mmco: unref short failure Last message repeated 1 times

eurosport.ts [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame! [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] SPS unavailable in decode_picture_timing [h264 @ 00000170d46e0480] non-existing PPS 0 referenced [h264 @ 00000170d46e0480] decode_slice_header error [h264 @ 00000170d46e0480] no frame!

sixx.ts [h264 @ 000001d16bce4600] mmco: unref short failure Last message repeated 1 times [h264 @ 000001d16bce4600] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 000001d16bce4600] mmco: unref short failure

pro7.ts [h264 @ 000001e58b064600] mmco: unref short failure Last message repeated 1 times [h264 @ 000001e58b064600] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one [h264 @ 000001e58b064600] mmco: unref short failure Last message repeated 1 times

leone007 commented 5 years ago

@y2000j all files are BT.709. Can you post samples that are actually working for you?

leone007 commented 5 years ago

@VideoPlayerCode - as a sidenote - closing down the previous thread resulted the loss of people who could have provided valuable samples, like @iandarbey , who has 1996, with every stream working.

y2000j commented 5 years ago

These are samples who working for me.

1 2 3 4 5 6

leone007 commented 5 years ago

These are samples who working for me.

1 2 3 4 5 6

color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown

So far this is what we got: all working samples have unknown color space (and color range), all FTVS4K breaking samples have BT.709 color space (and color range = tv).

color_range=tv
color_space=bt709
color_primaries=bt709
color_transfer=bt709
clubsms commented 5 years ago

I have 3 Fire 4k. First one I did a factory reset and cannot get past

https://ibb.co/0Vf8B4c

Second crashes on some streams and needs reboot when crashes (NS6264/1995)

Third has has got the NS6264/1996 update, still crashes on the same streams but restarting the app will get other videos playing again, no need to reboot the stick. Video always starts with green screen after crash just like it did before we got these updates. This stick is I think Us version from ebay.co.uk as it has us power plug.

iandarbey commented 5 years ago

On 1996..... Can’t download the 1st video.

The Eurosport clip won’t start. The Eurosport 2 clip starts, video freezes after about 10 seconds.... audio keeps going to about 27 seconds.

Is there a difference between interlaced content in UK / ROI vs rest of Europe?

Can confirm the stick does not need rebooting. Force close the app (kodi in my case) and go back in and play a “working” video, flash of green screen and then plays normally.

Side note; it doesn’t seem to like switching channels particularly noticeable on switching from 1440 x 1080i (soarview) to FTA sat (1920 x 1080i)

gb160 commented 5 years ago

On 1996..... Can’t download the 1st video.

The Eurosport clip won’t start. The Eurosport 2 clip starts, video freezes after about 10 seconds.... audio keeps going to about 27 seconds.

Is there a difference between interlaced content in UK / ROI vs rest of Europe?

Can confirm the stick does not need rebooting. Force close the app (kodi in my case) and go back in and play a “working” video, flash of green screen and then plays normally.

Side note; it doesn’t seem to like switching channels particularly noticeable on switching from 1440 x 1080i (soarview) to FTA sat (1920 x 1080i)

Yeah this is what I’m suspecting, can you clarify what version of tvheadend you are running mate? And kodi version?

Should point out I got the 1996 update this morning, which made zero difference, apart from the not rebooting thing, which is a slight improvement.

iandarbey commented 5 years ago

TVheadend version 4.2.8.

The news channel sample from the previous thread works fine by the way.

So it’s obviously struggling with particular types of interlaced content now.

y2000j commented 5 years ago

Now i received the Update to version NS6264/1996. The app crashes at the same streams or videos like before. The only andvantage is, that you have no need to restart the whole FTV 4K Stick after a stream crashes the app. After restarting the application, all the working channels or videos starting normaly.

Hopefully the stream and video crashes can finally be fixed. It would be a pity if that problem cant be fixed.

It's really a pity that we did not get any response or attention from the Amazon/Chipset developers. The interlaced Video Playback problem for the FTV4k Stick is still annoying.

gb160 commented 5 years ago

It'd be good if Amazon could reproduce or at least acknowledge this issue.

Arcitec commented 5 years ago

Okay I have received the 1996 update too. As others have mentioned, the crash is the same. The only difference is that after a crash (which will freeze and then close your media player), you can open the media player again. And trying to play something will lead to a black screen with audio and then a green flash and finally the image reappears.

So, 1996 adds ”live re-initialization/reset” of crashed hardware decoder. A good change. We no longer have to manually reboot the whole system!

I hope the cause of the crashes will be found. It’s interesting that leone sees the same colorspace in all crashing files and others in non-crashing files.

@y2000j: Well it’s only been 3 days. And amazon @rinoshs acknowledged the situation in the previous thread and asked us to make a new ticket. So we need to be respectful and patient. Although I do hope that Amazon pressures the hardware chip maker for a faster fix this time. :-/

gb160 commented 5 years ago

Although I do hope that Amazon pressures the hardware chip maker for a faster fix this time. :-/

Yeah I really hope so too...Ive had the device since xmas and barely used it because of this. I think our problem is the people experiencing this issue are a very small slither of the user base, so I doubt it'll be handled with any real urgency.

I'll probably wait it out, but where would we stand on getting a refund due to this issue?

iandarbey commented 5 years ago

Having issues with BBC one and two HD...... SD playing fine.

BBC one HD crashing after 10-15 seconds.

UTV and channel 4 still working fine, soarview still working fine.

dougie175 commented 5 years ago

Having issues with BBC one and two HD...... SD playing fine.

BBC one HD crashing after 10-15 seconds.

UTV and channel 4 still working fine, soarview still working fine.

I'm in the UK too and I am finding similar results with the SD channels, the SD channels seem to be more MPEG2 based which this latest fix seems to have improved. The HD Freeview channels i.e. BBC 1 HD, BBC 2 HD, ITV HD, 4 HD and 5 HD are interlaced H264 I am lead to believe and this fix hasn't changed anything about interlaced H264

iandarbey commented 5 years ago

I’m on FTA satellite so not the exact same streams. Might explain ITV and Channel 4 being ok for me but not for you.

dougie175 commented 5 years ago

I’m on FTA satellite so not the exact same streams. Might explain ITV and Channel 4 being ok for me but not for you.

Possibly, I can't get any HD UK TV to play reliably but all SD content seems to work correctly since the fix.

On another note @leone007 have you managed to pin point the parameters that make the video crash? It looked like you guys were making great progress getting to the bottom of the issue?

Out of interest can one of you who is much more knowledgeable on the subject than myself confirm this is definitely fixable via software / firmware? My worry is that this is actually a hardware issue that I am waiting on a fix that will never appear and I would be better looking at a different solution.

Thanks

iandarbey commented 5 years ago

Well the fact that some interlaced H264 works (FTA satellite itv and chan 4) is a good sign that it’s likely a software issue.

No one but amazon can give you an assurance as regards it’s something they’ll fix though.

gb160 commented 5 years ago

Well the fact that some interlaced H264 works (FTA satellite itv and chan 4) is a good sign that it’s likely a software issue.

No one but amazon can give you an assurance as regards it’s something they’ll fix though.

Im confident its something they can fix, however not at all confident they'll fix it any time soon. As I said earlier, we are a very small part of their user base, this won't be seen as a priority unfortunately.

dougie175 commented 5 years ago

Well the fact that some interlaced H264 works (FTA satellite itv and chan 4) is a good sign that it’s likely a software issue.

Yeah its very strange that ITV HD and 4HD work for you, no matter what I do I can't get them to avoid crashing, SD streams work fine. You are the only person I know who has ITV and 4 working on HD as several others I know of via other forums all have the same issue as myself.

dougie175 commented 5 years ago

Well the fact that some interlaced H264 works (FTA satellite itv and chan 4) is a good sign that it’s likely a software issue. No one but amazon can give you an assurance as regards it’s something they’ll fix though.

Im confident its something they can fix, however not at all confident they'll fix it any time soon. As I said earlier, we are a very small part of their user base, this won't be seen as a priority unfortunately.

It's such a shame, I unfortunately agree with what you are saying. I think if it was going to get fixed anytime soon it would have been done by now. Sorry I'll let the topic get back on track now wasn't trying to derail anything just trying to make an educated decision on hardware going forward

Arcitec commented 5 years ago

Oh dear... so many misunderstandings here. Let me summarize what has happened:

Nobody had discovered the final problem in the previous thread, because there were sadly no sample files provided with that newly discovered crashing format... so they've only fixed the general deinterlacing issue, but had missed the fact that there was another way to crash the player too... and literally nobody knew about it until now... :-(

Software or Hardware problem?

Answer: Software problem. The hardware decoder chip has a firmware (kind of like a BIOS) which decides what parts of the hardware to use for decoding various features of various video formats, and in what way...

To fix this final issue, Amazon has to tell the decoder chip manufacturer to fix their firmware again, for this newly discovered separate problem. Amazon does not have the source code for the hardware manufacturer's chip (that's their proprietary trade secret).

How long will it take to fix?

It depends on the hardware chip manufacturer. The only thing Amazon can do for us is to ask them to hurry up this time.

Releasing a fix took the the hardware chip maker around 4 months last time, because their process is as follows (it was described by Amazon in the previous H264 ticket):

After receiving the fixed firmware, Amazon has to do their own internal testing and OS development too, which took 2 months last time.

Hopefully this time they'll skip step 3 and do a quick "out-of-order" update of the decoder firmware. But unfortunately they may not be able to do that due to company routines. Sigh... From what we learned in the last thread, Amazon does all testing on their latest in-development (non-public) OS version and releases everything new "all at once" in a single finished OS update package, rather than risking bugs from sending out separate bugfixes to people running older software than what they themselves use in their development area...

But please, break that tradition this time. As soon as you receive the firmware fix, please do testing on the current public OS version and then release the fix for all of us! I can see that people are going to be very angry and it will cause a lot of ill-will towards Amazon if people have to wait 6 months yet again for the final fix... it will damage the reputation of the Amazon FireTV and it will be known as a device where fixes "take forever, if ever" to arrive...

My hope and advice is that you therefore strongly pressure the hardware chip vendor for a quicker fix for the final problem, and that you release it to us as soon as possible on the current OS version.

However...

The last we heard from Amazon was in the previous thread, where @rinoshs acknowledged this final problem and asked us to make a ticket. We haven't heard anything since then. It's still only been 7 days, but we would really appreciate hearing from someone at Amazon to know what work is being done.

We're all ready to help you do the research but we're at a point where we need your input as well... To test the various samples in this thread and trying to figure out if it's indeed a colorspace issue (BT.709 colors might be the cause of the crashes).

The bright side!

It's a software issue. It only affects a few TV channels. It'll be fixed. And I'm very happy with my FireTV 4K. It's cheap. It's small. It has a great remote control (lots of tactile buttons; far better than NVidia Shield TV or Apple TV). It's super powerful at running any software. It's 4K. It's HDR/Dolby Vision/Dolby Atmos. It's great!

gb160 commented 5 years ago

But please, break that tradition this time. As soon as you receive the firmware fix, please do testing on the current public OS version and then release the fix for all of us! I can see that people are going to be very angry and it will cause a lot of ill-will towards Amazon if people have to wait 6 months yet again for the final fix... it will damage the reputation of the Amazon FireTV and it will be known as a device where fixes "take forever, if ever" to arrive...

This is the crux of it, another six month wait for a fix is unacceptable imo.

gb160 commented 5 years ago

Fire TV Home version just got an update to 6.1.6.1-006

It makes zero difference to the problems documented here.

humiboy commented 5 years ago

Anyone use Smart IPTV with FireStick 4K? The App works a little better then before but the App still crashes after 15-20x zapping. I must waiting 3 Minuted ans then i can restart the app.

The problem with HW Decoder is not solved to 100%?

humiboy commented 5 years ago

No more discussion here?

gb160 commented 5 years ago

No more discussion here?

No its dreadful really.

Wojooma commented 5 years ago

Does non-4K stick version also struggles with playing IPTV like 4K version? If not, maybe it'll be a much better choice...

gb160 commented 5 years ago

Does non-4K stick version also struggles with playing IPTV like 4K version? If not, maybe it'll be a much better choice...

It has no problem with the interlaced content from what I remember, but it doesn't support x265 10 bit color space, only 8bit. Nearly all of my media is in x265 10bit, as is most x265 media generally speaking. That was the main reason I went for this cursed stick in the first place.

humiboy commented 5 years ago

are the support working on it again for fix the problem?

I have still many Problem with IPTV and HW Decoder. The appz still crashes

y2000j commented 5 years ago

Today i received a new component update for my Fire 4K Stick. The Firmware Version does not change and i dont need to restart after the update. But there is no change in the crashing issue. The app still crashes on the relevant videos like it before did.

Hopefully the issue is going to be fixed in the near future. If the developers fix it, the stick is one of the best in issues of iptv and Multimedia.

dougie175 commented 5 years ago

@leone007 Have you managed to get any further with your investigation into what is actually making the FTV crash?

This thread is slightly worrying in that Amazon have never actually acknowledges its existence, I'm starting to loose faith that a fix is going to be a long time coming if ever.

Agreed it a shame as it really is the idea streamer for myself also apart from this issue

iandarbey commented 5 years ago

Still no input from Amazon?

@rinoshs some form of update would be appreciated? Is this being worked on?

Should be easily reproduced Channel 4 HD vs BBC HD channels on FTA UK Satellite gives you a working video vs not comparison (based on my tests).

gb160 commented 5 years ago

Still no input from Amazon?

@rinoshs some form of update would be appreciated? Is this being worked on?

Should be easily reproduced Channel 4 HD vs BBC HD channels on FTA UK Satellite gives you a working video vs not comparison (based on my tests).

The silence means the only conclusion I can come to is they either don't know how to fix it, or it can't be fixed. Support/feedback is non existent...Last Amazon kit I ever buy.

y2000j commented 5 years ago

Today i received a new component update for my fire4kstick. But the issue is still unsolved.

humiboy commented 4 years ago

No hope for final fix?

fogers777 commented 4 years ago

Smart iptv is not usable at all due to stuck/crash issues. I have just bought the fire tv 4k stick and wasnt aware about this bug and amazon/vendor not being able it fix it in half a year....