Seems to be an upstream FFmpeg problem, between beta 1 and 2 we switched from 6.0 to 6.0.1. Looking at the file with FFmpeg 6.1:
Code:
$ ffmpeg -i /tmp/koditest.mp4
ffmpeg version n6.1 Copyright © 2000-2023 the FFmpeg developers
built with gcc 13.2.1 (GCC) 20230801
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-liba
ss --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrn
b --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh -
-enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-n
vdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55c0f2cdf140] error reading header
[in#0 @ 0x55c0f2cdf040] Error opening input: Invalid data found when processing input
Error opening input file /tmp/koditest.mp4.
Error opening input files: Invalid data found when processing input
Same when trying to play with MPV:
Code:
$ mpv /tmp/koditest.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: error reading header
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: error reading header
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)
Error when playing in Kodi is the same:
Code:
2023-12-17 21:41:02.729 T:32041 debug <general>: LoadItemLookup: trying to extract filestream details from video file /tmp/koditest.mp4
2023-12-17 21:41:02.730 T:32041 debug <general>: Open - probing detected format [mov,mp4,m4a,3gp,3g2,mj2]
2023-12-17 21:41:02.731 T:32041 error <general>: ffmpeg[0x0]: [mov,mp4,m4a,3gp,3g2,mj2] error reading header
2023-12-17 21:41:02.731 T:32041 error <general>: Open - Error, could not open file /tmp/koditest.mp4
Playing with VLC works but that's because VLC is still using the old FFmpeg 4.4