user4994: I have a movie in AVI format from a toy helicopter that reports an corrupt or missing index but still plays in VLC very wide and short.  When I click Video -> Aspect Ratio -> 4:3 the file plays as it should, but I have to do this each time I open a file.
Video file info: Video: mjpeg, yuvj422p, 720x240, 59.94 fps, 59.94 tbr, 60 tbn
The video dimensions are 720x240 and according to the instructions the video should be 720x480
I am looking for suggestions for video conversion software that will allow me to change the aspect ratio.  I am using a Mac, but have access to Windows PC as well.  Freeware is preferred.
I have tried Handbrake 0.9.9 on Mac, but I can't seem to find a method of increasing the vertical size beyond the original 240.

user4943: AVIdemux can do that when encoding, but i cannot remember if it allows you to do that when you chose to copy the stream without reencoding (you don't want to reencode, since it will not only be time consuming, but also lossy).
If you are willing to change it from AVI to MKV (VLC and most other players will have no problem playing it) you can do that with MKV-merge with no problem. It will be in the settings of your video stream, just set the display resolution to what you want it to be.
I am not 100% sure, but i would bet that both these are compiled for both Windows and Mac.
If you are not afraid of the command line, i would recommend avconv from libav package. It not only allows one to set the display aspect ratio with the -aspect parameter (just like ffmpeg did), but also to manipulate the pixel (aka sample) aspect ratio, which then recalculates the display aspect ratio automatically. That second approach, however, would require the stream to be decoded and reencoded again. So you you have:
No reencoding:
avconv -i input.avi -aspect 4:3 -c:a copy -c:v copy output.avi

With reencoding:
avconv -i input.avi -vf dar=4:3 -c:v libxvid -c:a copy output.avi

or
avconv -i input.avi -vf sar=1:1 -c:v libxvid -c:a copy output.avi

Keep in mind that unless you are doing something very creative, it makes little sense to specify both dar and sar, since the last one you mention will basically override the settings set by the previous one.

user4448: FFMpeg has an option to modify the aspect ratio of a video file without actually modifying the video, see http://www.ffmpeg.org/ffmpeg-all.html#Video-Options
For example, in your case, the desired aspect ratio is 720 / 480 = 1.5 (3:2) (which is NOT 4:3, it should be 540 in that case)
So your command line may look like:
ffmpeg -i input_file.avi -c copy -aspect 1.5 output_file.avi

This copies both audio and video streams unchanged to the output file, and specify into the file's metadata that the aspect ratio is 1.5 as a hint for video players.

4994: <p>I have a movie in AVI format from a toy helicopter that reports an corrupt or missing index but still plays in VLC very wide and short.  When I click Video -> Aspect Ratio -> 4:3 the file plays as it should, but I have to do this each time I open a file.</p>

<p>Video file info: Video: mjpeg, yuvj422p, 720x240, 59.94 fps, 59.94 tbr, 60 tbn</p>

<p>The video dimensions are 720x240 and according to the instructions the video should be 720x480</p>

<p>I am looking for suggestions for video conversion software that will allow me to change the aspect ratio.  I am using a Mac, but have access to Windows PC as well.  Freeware is preferred.</p>

<p>I have tried Handbrake 0.9.9 on Mac, but I can't seem to find a method of increasing the vertical size beyond the original 240.</p>
 4943: <p><a href="http://avidemux.sourceforge.net/" rel="nofollow">AVIdemux</a> can do that when encoding, but i cannot remember if it allows you to do that when you chose to copy the stream without reencoding (you don't want to reencode, since it will not only be time consuming, but also lossy).</p>

<p>If you are willing to change it from AVI to MKV (VLC and most other players will have no problem playing it) you can do that with <a href="http://www.bunkus.org/videotools/mkvtoolnix/downloads.html" rel="nofollow">MKV-merge</a> with no problem. It will be in the settings of your video stream, just set the display resolution to what you want it to be.</p>

<p>I am not 100% sure, but i would bet that both these are compiled for both Windows and Mac.</p>

<p>If you are not afraid of the command line, i would recommend <code>avconv</code> from <code>libav</code> package. It not only allows one to set the display aspect ratio with the <code>-aspect</code> parameter (just like <code>ffmpeg</code> did), but also to manipulate the pixel (aka sample) aspect ratio, which then recalculates the display aspect ratio automatically. That second approach, however, would require the stream to be decoded and reencoded again. So you you have:</p>

<p>No reencoding:</p>

<pre><code>avconv -i input.avi -aspect 4:3 -c:a copy -c:v copy output.avi
</code></pre>

<p>With reencoding:</p>

<pre><code>avconv -i input.avi -vf dar=4:3 -c:v libxvid -c:a copy output.avi
</code></pre>

<p>or</p>

<pre><code>avconv -i input.avi -vf sar=1:1 -c:v libxvid -c:a copy output.avi
</code></pre>

<p>Keep in mind that unless you are doing something very creative, it makes little sense to specify both dar and sar, since the last one you mention will basically override the settings set by the previous one.</p>
 4448: <p><a href="http://www.ffmpeg.org/" rel="noreferrer">FFMpeg</a> has an option to modify the aspect ratio of a video file without actually modifying the video, see <a href="http://www.ffmpeg.org/ffmpeg-all.html#Video-Options" rel="noreferrer">http://www.ffmpeg.org/ffmpeg-all.html#Video-Options</a></p>

<p>For example, in your case, the desired aspect ratio is 720 / 480 = 1.5 (3:2) (which is <strong>NOT</strong> 4:3, it should be 540 in that case)</p>

<p>So your command line may look like:</p>

<pre><code>ffmpeg -i input_file.avi -c copy -aspect 1.5 output_file.avi
</code></pre>

<p>This copies both audio and video streams unchanged to the output file, and specify into the file's metadata that the aspect ratio is 1.5 as a hint for video players.</p>
