Choppy playback on one type of video

Hi,

I encountered choppy playback on one “release” every episode of this show won’t play on the 4K+

Here is the mediainfo output:

Format : Matroska
Format version : Version 4
File size : 958 MiB
Duration : 29 min 40 s
Overall bit rate : 4 513 kb/s
Writing application : mkvmerge v32.0.0 (‘Astral Progressions’) 64-bit
Writing library : libebml v1.3.7 + libmatroska v1.5.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 29 min 40 s
Bit rate mode : Constant
Bit rate : 4 372 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.079
Stream size : 930 MiB (97%)
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 29 min 40 s
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 26.6 MiB (3%)
Language : English
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 29 min 33 s
Bit rate : 260 b/s
Count of elements : 1134
Stream size : 56.4 KiB (0%)
Language : English
Default : No
Forced : No

dmesg from the vero:

[225532.605524] codec:restart correct frame duration
[225532.605525] codec:new=125437,old_duration=1601,cnt=25
[225533.459466] codec:video_blackout_policy_store(0)
[225533.459542] [tsync_avevent]event:1, param 1
[225533.459546] video pause!
[225533.472957] DI: di_receiver_event_fun , is_bypass() 1 trick_mode 0 bypass_all 1
[225533.472967] di_receiver_event_fun: vf_notify_receiver unreg
[225533.472981] DI: di_unreg_process unreg start 1.
[225533.472993] codec_mm:NULL mem_handle for keeper!!
[225533.479424] codec:alloced keep buffer yaddr=0000000067c00000,u_addr=0000000067b00000,v_addr=0000000068000000
[225533.479441] codec:vf_keep_current keep_y_addr=0000000067c00000 64a2e800
[225533.479448] codec:ge2d_store_frame_NV21 cur_index:s:0x121110
[225533.479455] codec:ge2d_store_frame d:0xd9d8
[225533.482972] codec:vf_keep_current: VIDTYPE_VIU_NV21
[225533.482984] codec:vf_keep_current: keep video on with keep
[225533.482990] [tsync_avevent]event:2, param 0
[225533.482995] codec:video first pts = 0
[225533.483006] DI: di_unreg_process vf unreg cost 10 ms.
[225533.483010] DI: di_unreg_process unreg stop 0.
[225533.493055] codec:vdec1 video changed to 0 x 0 0 fps clk->200MHZ
[225533.493489] codec:vdec_create instance ffffff8005251000, total 1
[225533.493536] codec:Video stbuf alloced at 0000000063b00000, size = 10485760
[225533.493551] codec:vdec_init, dev_name:amvdec_h264, vdec_type=VDEC_TYPE_SINGLE
[225533.493556] codec:vdec_init set vfm decoder ffffff8005251000
[225533.493561] codec:vdec_dev_reg.mem[0x64500000 – 0x674fffff]
[225533.493924] codec:H264 sysinfo: 1280x720 duration=1602, pts_outside=1,
[225533.494266] codec:vdec_request_irq ffffffc00169a288, vh264-irq
[225533.494298] DI: di_receiver_event_fun: vframe provider reg
[225533.504349] set run_early_proc_fun_flag to 1
[225533.504517] codec:vdec_init, vf_provider_name =
[225533.505006] codec:video first pts = 0
[225533.505017] codec:vdec_request_irq ffffffc00168b6f8, parser
[225533.509954] codec:video_blackout_policy_store(1)
[225533.511347] codec:video first checkin pts = 5af50a
[225533.511359] codec:first check in vpts <0x30:0x5af50a> ok!
[225533.511508] codec:Enter set parameter cmd1.
[225533.511557] codec:vdec1 video changed to 3840 x 2160 60 fps clk->667MHZ
[225533.511565] codec:actual_dpb_size 24 max_dpb_size 3
[225533.511653] codec:video first pts = 5af50a
[225533.552922] pre_de_buf_config: source change: 0x0/0/0/0=>0x9000/1280/720/0
[225533.552945] DI:7920 disable post.
[225533.581463] codec:pts sync mode play
[225533.612796] cectx aocec: cec_ll_tx(): tx timeout
[225533.664405] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
[225533.664421] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
[225533.664491] i2s/958 same source - init spdif
[225533.664499] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, runtime->channels=2, same source mode(1), stream format=1
[225533.664505] aml_spdif_dai: set divider = 2 for i2s shared clock
[225533.664515] aml_audio_hw: IEC958 PCM32
[225533.664522] hdmitx: audio: aout notify rate 48000
[225533.664525] hdmitx: audio: aout notify size 32
[225533.664530] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225533.664533] hdmitx: audio: no update
[225533.948059] audio_dsp: buf=0
[225533.948063] audio_dsp: IEC958_mode_raw=0
[225533.948095] audio_dsp: IEC958_mode_codec= 1, IEC958 type 2 CH PCM
[225533.948097] audio_dsp: last mode 1,now 1
[225533.948164] audio_dsp: putting chip back to PCM state
[225533.948165] hdmitx: config: audio_on
[225533.948170] hdmitx: audio: configure on
[225533.959590] i2s/958 same source - init spdif
[225533.959611] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, runtime->channels=2, same source mode(1), stream format=1
[225533.959617] aml_spdif_dai: set divider = 2 for i2s shared clock
[225533.959628] aml_audio_hw: IEC958 PCM32
[225533.959635] hdmitx: audio: aout notify rate 48000
[225533.959639] hdmitx: audio: aout notify size 32
[225533.959644] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225533.959647] hdmitx: audio: no update
[225533.961453] sysfs set hdmi_ch to 0
[225533.961700] i2s/958 same source - init spdif
[225533.961729] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, runtime->channels=2, same source mode(1), stream format=1
[225533.961738] aml_spdif_dai: set divider = 2 for i2s shared clock
[225533.961748] aml_audio_hw: IEC958 PCM32
[225533.961838] hdmitx: audio: aout notify rate 48000
[225533.961845] hdmitx: audio: aout notify size 32
[225533.961850] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225533.961853] hdmitx: audio: no update
[225533.963385] aml_snd_m8_card aml_m8_snd.46: I2S playback enable
[225533.963408] aml_snd_m8_card aml_m8_snd.46: IEC958 playback enable
[225533.965763] vpts to scr, apts = 0x0, vpts = 0x5af50a
[225533.965803] codec:[video4osd] first picture {1280,720} pts:5af50a,
[225533.965841] codec:new toggle keep_id
[225533.982454] codec:VsyncEnableVideoLayer
[225535.832745] cectx aocec: cec_ll_tx(): tx timeout
[225538.052711] cectx aocec: cec_ll_tx(): tx timeout
[225540.272732] cectx aocec: cec_ll_tx(): tx timeout
[225542.492681] cectx aocec: cec_ll_tx(): tx timeout
[225544.202736] aml_snd_m8_card aml_m8_snd.46: I2S playback disable
[225544.202753] aml_snd_m8_card aml_m8_snd.46: IEC958 playback disable
[225544.203826] i2s/958 same source - init spdif
[225544.203841] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=48000, runtime->channels=2, same source mode(1), stream format=1
[225544.203848] aml_spdif_dai: set divider = 2 for i2s shared clock
[225544.203857] aml_audio_hw: IEC958 PCM32
[225544.203863] hdmitx: audio: aout notify rate 48000
[225544.203867] hdmitx: audio: aout notify size 32
[225544.203871] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225544.203874] hdmitx: audio: no update
[225544.204207] audio_dsp: buf=0
[225544.204216] audio_dsp: IEC958_mode_raw=0
[225544.204244] audio_dsp: IEC958_mode_codec= 1, IEC958 type 2 CH PCM
[225544.204248] audio_dsp: last mode 1,now 1
[225544.204251] audio_dsp: putting chip back to PCM state
[225544.204316] hdmitx: config: audio_on
[225544.204324] hdmitx: audio: configure on
[225544.212749] i2s/958 same source - init spdif
[225544.212762] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
[225544.212767] aml_spdif_dai: set divider = 2 for i2s shared clock
[225544.212777] aml_audio_hw: IEC958 PCM32
[225544.212783] hdmitx: audio: aout notify rate 44100
[225544.212787] hdmitx: audio: aout notify size 32
[225544.212791] hdmitx: audio: aout notify sample rate 44100 was 48000
[225544.212795] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225544.212800] hdmtix: setting audio 1
[225544.212814] hdmitx tx_aud_src = 0
[225544.212835] hdmitx: audio: Audio Type: PCM Audio Channels: 2, Speaker layout: 0x0
[225544.212839] hdmitx: audio: Audio Output Channels set to: 0:0
[225544.212848] hdmitx: fs = 2, cd = 4, tmds_clk = 148352
[225544.212853] hdmitx aud_n_para = 8918
[225544.212872] hdmitx set channel status, sample rate 2
[225544.212960] hdmitx: audio: set audio param
[225544.213151] sysfs set hdmi_ch to 0
[225544.213195] i2s/958 same source - init spdif
[225544.213204] aml_spdif_dai: aml_hw_iec958_init,runtime->rate=44100, runtime->channels=2, same source mode(1), stream format=1
[225544.213209] aml_spdif_dai: set divider = 2 for i2s shared clock
[225544.213217] aml_audio_hw: IEC958 PCM32
[225544.213223] hdmitx: audio: aout notify rate 44100
[225544.213227] hdmitx: audio: aout notify size 32
[225544.213231] hdmitx: audio: hdmi_ch: 0 speaker_layout: 0
[225544.213234] hdmitx: audio: no update
[225544.341567] codec:DisableVideoLayer()
[225544.342942] codec:VsyncDisableVideoLayer
[225544.342982] codec:AFBC off now.
[225544.363280] DI: di_receiver_event_fun , is_bypass() 1 trick_mode 0 bypass_all 1
[225544.363315] di_receiver_event_fun: vf_notify_receiver unreg
[225544.363374] DI: di_unreg_process unreg start 1.
[225544.363421] codec:DisableVideoLayer()
[225544.363440] codec:disbled keep video before free keep buffer.
[225544.363459] codec:disbled video for next before free keep buffer!
[225544.363477] codec:DisableVideoLayer()
[225544.363502] codec:free_alloced_keep_buffer 0000000067c00000.0000000067b00000.0000000068000000
[225544.364203] codec:free_alloced_keep_buffer (null). (null). (null)
[225544.364228] [tsync_avevent]event:2, param 0
[225544.364250] codec:video first pts = 0
[225544.364291] DI: di_unreg_process vf unreg cost 0 ms.
[225544.364310] DI: di_unreg_process unreg stop 0.
[225544.373450] codec:vdec1 video changed to 0 x 0 0 fps clk->200MHZ
[225544.373762] codec:video_disable_store(1)
[225544.373779] codec:DisableVideoLayer()
[225544.373790] codec:free_alloced_keep_buffer (null). (null). (null)
[225544.373852] vfm_map_store:rm default
[225544.373899] vfm_map_store:add default decoder ppmgr deinterlace amlvideo amvideo
[225544.376196] codec:VsyncDisableVideoLayer
[225544.376218] codec:AFBC off now.

The video plays back fine on a rpi3 with OSMC. I’m on the latest release.

Is It Last Week Tonight with John Oliver ?

In any case try disabling hw acceleration and it should do the trick. Remember to reenable it again later

yes it is :slight_smile:

That works, is there any chance this can be fixed in hardware offload?

Maybe @sam_nazarko can look into it again I have reported the issues sometimes in 2017 i think but since it’s fixed if you disable hw acceleration I didn’t bug him about it too much.

I watch a lot of stuff and Last week tonight is the only show I encountered that does this.

I think it’s related to a specific setting in the rip that luckily isn’t common

I’ll see what can be done

Well, then it’s the re-encode that is the problem.

The frame rate on Last Week Tonight is 30000/1001p, while your media info shows 60000/1001p. There is no reason for a re-encode to double the frame rate like that, so that’s the problem. In addition, the audio has been re-encoded to AAC LC, and some encoders do not create 100% compliant bitstreams when doing this.

Regardless of whether it plays or not on some devices, it’s a questionable encode.

Download a different version (like the monkee releases, which work on the Vero, and have better video and audio).

1 Like

Is it a WEB Source or a HDTV Source? because HDTV can be in 60p (yes NOT interlaced) you can see that with American Ninja Warrior and Dragons Den Canada both have 60p in TV but only 30p on VOD.

So it can be possible that its actually a 60p Source.

Edit: Can only be a HDTV source because the VOD version is 30p.

Switching to the monkee release fixes my problem. This indeed seems to be the only show/release with these issues.