Thank you but it produces the same result as before. I have tried the following commands
ffmpeg -err_detect ignore_err -i old.mp4 -c copy new.mp4 ffmpeg -i old.mp4 -map 0:v -c copy video_only.mp4 ffmpeg -i old.mp4 -map 0:a -c copy audio_only.aac ffmpeg -i old.mp4 -fflags +genpts -c copy new.mp4 ffmpeg -i old.mp4 -movflags faststart -c copy new.mp4 All produce the same results: ffmpeg version 7.0.2 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.1.0 (Rev3, Built by MSYS2 project) configuration: --enable-shared libavutil 59. 8.100 / 59. 8.100 libavcodec 61. 3.100 / 61. 3.100 libavformat 61. 1.100 / 61. 1.100 libavdevice 61. 1.100 / 61. 1.100 libavfilter 10. 1.100 / 10. 1.100 libswscale 8. 1.100 / 8. 1.100 libswresample 5. 1.100 / 5. 1.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] stream 1, contradictionary STSC and STCO [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] error reading header [in#0 @ 00158840] Error opening input: Invalid data found when processing input Error opening input file old.mp4. Error opening input files: Invalid data found when processing input _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".