VLC can't play the file as well. The script has to handle such files, because it's a typical output for the screen recording
Igors-MacBook-Pro:Downloads igorkim$ ffmpeg -v error -i RPReplay_Final1558339100.MP4 -max_muxing_queue_size 1024 -f null - 2>error.log
Igors-MacBook-Pro:Downloads igorkim$ cat error.log
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2 >= 2
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 7 >= 7
Last message repeated 2 times
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 12 >= 12
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 14 >= 14
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 19 >= 19
Last message repeated 8 times
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 24 >= 24
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 27 >= 27
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 29 >= 29
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 32 >= 32
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 34 >= 34
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 37 >= 37
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 39 >= 39
Last message repeated 2 times
[null @ 0x7f83cc807400] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 47 >= 47