Playback issues when fast forwarding in AVC MP4

Hi there

I have some files encoded in H264 - MPEG-4 AVC (part 10) (avc1), that play nicely enough on opening, but as soon as I try to search, fast forward, rewind etc., it freezes. Sometimes it then just closes the video, and other times it freezes the system completely until I reboot.

Had the same problem on my RPI3 with OSMC. Thought it was just a hardware issue, but the same problem appears on my brand new Vero 4K (freshly installed).

What gives?

This is the file infomation from Media Info:

    General
Complete name                            : C:\Users\Hetoft\Downloads\test.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp41/mp42/isom)
File size                                : 2.01 GiB
Duration                                 : 37 min 38 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 7 646 kb/s

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : No
Format settings, RefFrames               : 2 frames
Format settings, GOP                     : M=1, N=24
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 37 min 38 s
Bit rate mode                            : Variable
Bit rate                                 : 7 528 kb/s
Maximum bit rate                         : 768 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Original frame rate                      : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.341
Stream size                              : 1.98 GiB (98%)
Title                                    : Core Media Video
Encoded date                             : UTC 2017-07-31 18:02:08
Tagged date                              : UTC 2017-07-31 18:48:12
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 37 min 38 s
Source duration                          : 37 min 38 s
Bit rate mode                            : Constant
Bit rate                                 : 112 kb/s
Nominal bit rate                         : 128 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 30.1 MiB (1%)
Source stream size                       : 30.1 MiB (1%)
Title                                    : Core Media Audio
Language                                 : English
Encoded date                             : UTC 2017-07-31 18:02:08
Tagged date                              : UTC 2017-07-31 18:48:12
Menus                                    : 3

Menu
ID                                       : 3
Codec ID                                 : text
Duration                                 : 37 min 38 s
Encoded date                             : UTC 2017-08-24 13:50:23
Tagged date                              : UTC 2017-08-24 13:50:23
Menu For                                 : 1
00:00:00.000                             : Chapter 1

What is the source of the video? Is it a Live TV program?

If it’s crashing on Pi and Vero, it could be a problem with the file.
You could try remuxing the video or changing it to an MKV to see if that improves things.