Author Topic: Images at end get lost during conversion  (Read 2968 times)


  • Newbie
  • *
  • Posts: 2
Images at end get lost during conversion
« on: January 18, 2015, 09:30:18 PM »
Hello Avidemux-developers,

I'm using Avidemux 2.5.4 on Kubuntu 14.04 64 Bit.
During use of avidemux i found that during a conversion/compression from .AVI to .mp4 (H.264) often towards the end the resulting movie misses a small rest. Here I provide my conversion script (which compresses all my movies in one folder) and an example.

Code: [Select]

ls *.AVI | sort > $VAR # Collect the files in the current directory
ls *.avi | sort >> $VAR
ls *.mov | sort >> $VAR
ls *.mp4 | sort >> $VAR
cat $VAR | while read line; do  # Loop read the filenames from the file
  INPUT=$(echo ${line}) # Grab the nxt new filename
  OUTPUT=${INPUT%.*} # Remove shortest match of characters between the .* at end of string
  if [[ $INPUT == *mp4 ]]
    OUTPUT+="_.mp4" # Append new extension. case we recompress mp4, the '_' makes the new filename.
    autoanswer="y"  # answer some question from avidemux wich comes for mp4 's automatically
    OUTPUT+="__.mp4" # Append new extension.
  # some stuff
  # avidemux2 --force-alt-h264 --load "$INPUT" --save "$OUTPUT" --output-format AVI --quit
  avidemux2_cli --load "$INPUT" --audio-resample 22050 --audio-stereo2mono --audio-codec MP3 --video-codec x264 --save "$OUTPUT" --quit  <<< $autoanswer
rm $VAR # Remove the text file with the file names
echo "done."
#read pause

the example input can be found here:
and the output here:

if you look closely at the end, the red square appears completely in the input file but appears not completely with the output file (i used dragon player to watch). This should be reproducible easily with the given script and file.

Thank you for providing and working on Avidemux.

Ubuntu -> Kubuntu
« Last Edit: January 18, 2015, 09:56:53 PM by cucujoidea »

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 5888
Re: Images at end get lost during conversion
« Reply #1 on: January 19, 2015, 07:37:05 PM »
2.5.4 (EOL) is no longer developed.