MP4 file preparation failed

Good morning…

When selecting a stream in the playback page it doesn’t start playing…and when I try to download it it opens a new page with this error:

MP4 file preparation failed:

ffmpeg version n4.2.1 Copyright © 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/build/stage --disable-static --enable-shared --cc=‘ccache gcc -std=c99’ --enable-pic --disable-stripping --disable-doc --disable-libxcb --disable-xlib --disable-everything --enable-indev=v4l2 --enable-vaapi --enable-hwaccel=h264_vaapi --enable-hwaccel=hevc_vaapi --enable-protocol=file --enable-protocol=pipe --enable-protocol=http --enable-protocol=https --enable-muxer=matroska --enable-muxer=mjpeg --enable-muxer=rtp --enable-muxer=mp4 --enable-muxer=image2 --enable-muxer=rawvideo --enable-demuxer=rtsp --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-demuxer=rawvideo --enable-demuxer=concat --enable-bsf=h264_mp4toannexb --enable-bsf=extract_extradata --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=mpeg4 --enable-decoder=mjpeg --enable-decoder=rawvideo --enable-decoder=aac --enable-decoder=ac3 --enable-decoder=mp2 --enable-decoder=mp3 --enable-decoder=pcm_f32le --enable-decoder=pcm_f64le --enable-decoder=pcm_s16le --enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-parser=h264 --enable-parser=hevc --enable-parser=mpeg4video --enable-parser=mjpeg --enable-encoder=mjpeg --enable-encoder=mpeg4 --enable-encoder=rawvideo --enable-encoder=aac --enable-encoder=h264_vaapi --enable-encoder=mjpeg_vaapi --enable-encoder=hevc_vaapi --enable-filter=scale --enable-filter=fps --enable-filter=scale_vaapi --enable-filter=aresample --enable-filter=hwupload --enable-filter=hwdownload
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, matroska,webm, from ‘/var/lib/bluecherry/recordings/2020/12/08/000001/09-59-58.mkv’:
Metadata:
ENCODER : Lavf58.29.100
Duration: 137:36:28.18, start: 0.000000, bitrate: 1 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1280x720, 50 tbr, 1k tbn, 2k tbc (default)
Metadata:
DURATION : 00:30:01.921000000
Stream #0:1: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono, s16, 64 kb/s (default)
Metadata:
DURATION : 137:36:28.181000000
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (pcm_mulaw (native) -> aac (native))
Press [q] to stop, [?] for help
Too many packets buffered for output stream 0:0.
Conversion failed!

To me it looks more like alpha than beta (o;

cheers
richard

Hi, For Mp4 file Corruption and failed to open the file I would suggest you can try video repair software such as Stellar Repair for Video which easily repair corrupt mp4 files. Thanks!