Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-18T07:53:46.770Z
Answers.Text: +1 for using `-aspect` with stream copy mode.
Answers.UserDisplayName: llogan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-12T05:33:00.450Z
Answers.Text: Most likely the video is 4:3 with non-square pixels. It sounds like it's interlaced DV-sized footage and each sample (field) is actually 720x240, which is normal standard def NTSC with a pixel (not picture) aspect ratio of 10/11ths. (See [here](https://en.wikipedia.org/wiki/Pixel_aspect_ratio) for example.)
Answers.UserDisplayName: user1118321
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-13T09:29:56.563Z
Answers.Text: @user1118321 most probably true, but if, as the OP says, there are "missing index" messages, it is probably corrupted or muxed incorrectly. Manually fixing the video using the technique described in my answer will not hurt. In truth, ffmpeg can set the PAR (aka SAR) as well as the DAR, but this involves using video filters, which do not allow the "copy" codec.
Answers.UserDisplayName: SirDarius
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-12-14T20:39:00.027Z
Answers.LastActivityDate: 2013-12-14T20:39:00.027Z
Answers.UserDisplayName: SirDarius
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2013-11-14T19:54:04.937Z
Answers.LastActivityDate: 2014-11-11T08:57:02.557Z
Answers.LastEditDate: 2014-11-11T08:57:02.557Z
Answers.UserDisplayName: v010dya
Answers.Body: <p>Instead of</p>
  <pre><code>avconv -i input.avi -aspect 4:3 -c:a copy -c:v copy output.avi
  </code></pre>
  <p>I tried on ffmpeg 5.1</p>
  <pre><code> ffmpeg -i input.mp4 -aspect 16:9 -c:a copy -c:v copy output.mp4
  </code></pre>
  <p>It works (I tried to convert 4:3 to 16:9)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-14T19:10:42.167Z
Answers.LastActivityDate: 2022-08-14T19:12:25.770Z
Answers.LastEditDate: 2022-08-14T19:12:25.770Z
Answers.UserDisplayName: Uri
Body: <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>
  
Tags: <mac><osx><aspect>
Title: How to correct aspect ratio
UserDisplayName: Chris
ThreadText: # How to correct aspect ratio
  
  (Asked by: username_0 on 2013-11-14)
  
  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.
  
  **Tags:** mac, osx, aspect
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2013-12-14. Score: 10
  
  [FFMpeg](http://www.ffmpeg.org/) 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.
  
  > **Comments:**
  > **username_2**: +1 for using `-aspect` with stream copy mode.  
  > **username_3**: Most likely the video is 4:3 with non-square pixels. It sounds like it's interlaced DV-sized footage and each sample (field) is actually 720x240, which is normal standard def NTSC with a pixel (not picture) aspect ratio of 10/11ths. (See [here](https://en.wikipedia.org/wiki/Pixel_aspect_ratio) for example.)  
  > **username_1**: @username_3 most probably true, but if, as the OP says, there are "missing index" messages, it is probably corrupted or muxed incorrectly. Manually fixing the video using the technique described in my answer will not hurt. In truth, ffmpeg can set the PAR (aka SAR) as well as the DAR, but this involves using video filters, which do not allow the "copy" codec.  
  
  ---
  
  ### Answer by username_4 on 2013-11-14. Score: 3
  
  [AVIdemux](http://avidemux.sourceforge.net/) 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](http://www.bunkus.org/videotools/mkvtoolnix/downloads.html) 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.
  
  
  ---
  
  ### Answer by username_5 on 2022-08-14. Score: 0
  
  Instead of
  
  ```
  avconv -i input.avi -aspect 4:3 -c:a copy -c:v copy output.avi
  
  ```
  
  I tried on ffmpeg 5.1
  
  ```
   ffmpeg -i input.mp4 -aspect 16:9 -c:a copy -c:v copy output.mp4
  
  ```
  
  It works (I tried to convert 4:3 to 16:9)
  
  
  ---
  
  