Video editing with AviDemux


Keyboard Shortcuts

How to handle videos that look "stretched"

If you run MediaInfo or ffmpeg's ffprobe, here's what you might find for a video that looks "stretched" when opened in AviDemux:

Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc

If you can't stand slicing a video at keyframes while the video looks odd, here's how to fix it:

  1. Main window: "Video output", change from "Copy" to "MPEG4-AVC"
  2. Video > Filters > Transform > swsResize:

    Source PAR : PAL 720:576 DAR 16:9 PAR 64:45
    Destination PAR : 1:1

    Note: 64/45 = 1,4222, so different from 4:3 (= 1,3333)
  3. Video > Play Filtered
  4. Play the video in AviDemux. Note that the display will go back to the odd look every time you stop playing it.
  5. Go back to Copy mode, slice video at keyframes, export, play in VLC to check.

There might be a Windows video that can 1) display those videos correctly unlike AviDemux and 2) slice at keyframes without re-encoding, but I don't know.

Camcorder: Try all shooting settings available, and for each, check how it works in AviDemus.



4:3, 16:9


ffmpeg -i merged.mts -c copy merged.mp4

ffmpeg -i "merged.mts" -vf setdar=16:9 -c:a copy -t 10 "merged.mp4"

ffmpeg -i merged.mts -vf scale=1440:810 -c:v libx264 -t 10 merged.mp4

ffmpeg -i merged.mts -aspect 1440:810 -c copy merged.mp4