undefined

Hi...
How can I fix a movie file?
When I run the file, after more than hour the picture stalled while the sound continues...
:cry:

Dani AI

Generated

For : the freeze-with-audio-still-playing symptom usually means the video stream or the container index is damaged, or the player/codec is failing on a specific frame. As pointed out, rewinding can hide the problem but does not repair the file. First step: always work on a copy of the original file before trying fixes.

Quick diagnosis: inspect the file to learn its container and codecs (use a GUI like MediaInfo or the command-line ffprobe from FFmpeg). That tells whether the file is AVI/MP4/MKV and which codec is required. MediaInfo: https://mediaarea.net/en/MediaInfo. FFmpeg: https://ffmpeg.org/.

Try these practical repairs (order matters):

  • Play with a tolerant player such as VLC (it often skips bad frames and has an AVI "repair" option): https://www.videolan.org/vlc/.

  • Remux the streams into a fresh container to rebuild the index (no re-encode). With FFmpeg:

    ffmpeg -i "input.avi" -c copy "fixed.avi"
    ffmpeg -fflags +genpts -i "input.avi" -c copy "fixed.avi"

    If remuxing fails, re-encode to a modern container:

    ffmpeg -i "input.avi" -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k "fixed.mp4"

Windows GUI alternative: open the file in VirtualDub, set Video and Audio to "Direct stream copy", then File > Save as AVI — that forces a new index and can recover many damaged AVIs (http://www.virtualdub.org/).

Other tips: test the file on another PC/player, check/install the correct codec pack, and note that re-encoding loses quality. If the source was a bad rip or a truncated download, the safest solution is to re-rip/re-download the file. If the file is valuable and these fixes fail, consider a dedicated file-repair tool or service.

Recommended Answers

All 3 Replies

Boor quality file conversion ,i could never find a fix ,just rewind a bit and hope it didn't freeze the next time ,sorry maybe someone else knows what to do with them .

Hi, Caperjack...
Thank you for your fast reply. That's exactly what I do for now. Anyway' I'll continue to look for a solution... :confused:

Hi, Caperjack...
Thank you for your fast reply. That's exactly what I do for now. Anyway' I'll continue to look for a solution... :confused:

Im not sure there is a solution ,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.