Answers.Body: <p>It's easy to do this with FFmpeg which is run from the command line.</p>
  
  <p><strong>Method 1</strong> – this will size the video appropriately and encode the result in H.264 MP4 format:</p>
  
  <pre><code>ffmpeg.exe -i inputfile.mpg -vcodec h264 -s 720x576 -aspect 5:4 outputfile.mp4
  </code></pre>
  
  <p><strong>Method 2</strong> – this will set a hint in the file as to the size it should be displayed at (with no recompressing or quality loss). VLC should respect this although not all players/editors will:</p>
  
  <pre><code>ffmpeg.exe -i inputfile.mpg -vcodec copy -aspect 5:4 -acodec copy outputfile.mpg
  </code></pre>
  
  <p><strong>Method 3</strong> – if you detect a decrease in the quality of the MPEG you can compress it at a high-bitrate MPEG-2:</p>
  
  <pre><code>ffmpeg.exe -i inputfile.mpg -vcodec mpeg2video -aspect 5:4 -acodec pcm_s16le -b 30000k outputfile.mpg
  </code></pre>
  
  <p>Good luck!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-06T01:53:30.740Z
Answers.Text: If this doesn't work for you try to explain me better what doesn't work with the ffmpeg
Answers.UserDisplayName: BXS1001
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-19T15:00:07.170Z
Answers.Text: Thank you.  Can someone please explain how to write these code?  I am not very good with videos editing so I am a bit confused.  Do these codes need to be run from a command line?
Answers.UserDisplayName: Head and toes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-20T23:00:08.217Z
Answers.Text: Yes! You must to download the FFmpeg from his homesite www.ffmpeg.org. After you download the binary you can put this code onto command line (cmd on windows or Bash in Linux), and execute it. If you have problems doing this, please, let me know.
Answers.UserDisplayName: BXS1001
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-22T10:27:01.153Z
Answers.Text: Thanks.  So after downloading the zip file, which file do I need to open and what do you mean by download the binary?  I have a windows computer.  Thanks a lot for your help.
Answers.UserDisplayName: Head and toes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-31T21:23:07.223Z
Answers.Text: Ok! First of all sorry for my delay answering you. So, once you download ffmpeg.zip from www.ffmpeg.org you must to unzip all the content in a folder. After of this you must to navigate to this folder with the command line. You start the command line with cmd. When you have the command line opened you must to go to the ffmpeg/bin folder and start to write your instruction. for example: c:\ffmpeg\bin\ffmpeg.exe -i video.avi -vcodec h264 -s 720x576 -aspect 16:9 -acodec mp3liblame -b 1536k output.avi and press intro. The ffmpeg main program will start to work. And that's all folks! ;-)
Answers.UserDisplayName: BXS1001
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-20T09:30:00.847Z
Answers.Text: Thank you so much for your reply but I am still struggling with this.  I can't locate the ffmpeg file or the bin file.  Are these files in the unzipped folder?  I don't seem to be able to find them :(
Answers.UserDisplayName: Head and toes
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2015-01-06T01:49:29.050Z
Answers.LastActivityDate: 2019-09-13T17:50:09.880Z
Answers.LastEditDate: 2019-09-13T17:50:09.880Z
Answers.UserDisplayName: BXS1001
Answers.Body: <p>Most video editors and encoding applications will allow you to specify the pixel pitch when running the video through them.  This does result in one more generation of loss, but would give the proper pixel pitch for the video.  (In Premiere for example, you use Interpret footage.)</p>
  
  <p>There may also be tools that can directly manipulate the pixel pitch listed in the video's meta-data, however I am not aware of any such tools off the top of my head and some brief searching didn't turn any up.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-15T18:26:28.737Z
Answers.LastActivityDate: 2014-12-15T18:26:28.737Z
Answers.UserDisplayName: AJ Henderson
Answers.Body: <p>Probably the best way to go about this is to import the footage into an NLE like Premiere, Lightworks, Edius, or Final Cut, then export the footage with the correct aspect ratio.  I imagine there is also an FFmpeg command to do this, but I am not familiar enough with it to tell you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-15T14:41:53.260Z
Answers.LastActivityDate: 2014-12-15T14:41:53.260Z
Answers.UserDisplayName: KC McLaughlin
Body: <p>I have a video (.mpg) and currently it has the wrong aspect ratio (16:9).  I now want to change it to the correct aspect ratio (5:4).  How can I do this?</p>
  
  <p>I know that on VLC player I can change the aspect ratio while the video is playing.  However, I am wondering if there is a permanent way of changing the aspect ratio, such that each time this video is played, it is in the correct aspect ratio?</p>
  
  <p>Thank you.</p>
  
Tags: <aspect>
Title: Changing the aspect ratio of a video
UserDisplayName: Head and toes
ThreadText: # Changing the aspect ratio of a video
  
  (Asked by: username_0 on 2014-12-15)
  
  I have a video (.mpg) and currently it has the wrong aspect ratio (16:9). I now want to change it to the correct aspect ratio (5:4). How can I do this?
  
  I know that on VLC player I can change the aspect ratio while the video is playing. However, I am wondering if there is a permanent way of changing the aspect ratio, such that each time this video is played, it is in the correct aspect ratio?
  
  Thank you.
  
  **Tags:** aspect
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-01-06. Score: 2
  
  It's easy to do this with FFmpeg which is run from the command line.
  
  **Method 1** – this will size the video appropriately and encode the result in H.264 MP4 format:
  
  ```
  ffmpeg.exe -i inputfile.mpg -vcodec h264 -s 720x576 -aspect 5:4 outputfile.mp4
  
  ```
  
  **Method 2** – this will set a hint in the file as to the size it should be displayed at (with no recompressing or quality loss). VLC should respect this although not all players/editors will:
  
  ```
  ffmpeg.exe -i inputfile.mpg -vcodec copy -aspect 5:4 -acodec copy outputfile.mpg
  
  ```
  
  **Method 3** – if you detect a decrease in the quality of the MPEG you can compress it at a high-bitrate MPEG-2:
  
  ```
  ffmpeg.exe -i inputfile.mpg -vcodec mpeg2video -aspect 5:4 -acodec pcm_s16le -b 30000k outputfile.mpg
  
  ```
  
  Good luck!
  
  > **Comments:**
  > **username_1**: If this doesn't work for you try to explain me better what doesn't work with the ffmpeg  
  > **username_0**: Thank you.  Can someone please explain how to write these code?  I am not very good with videos editing so I am a bit confused.  Do these codes need to be run from a command line?  
  > **username_1**: Yes! You must to download the FFmpeg from his homesite www.ffmpeg.org. After you download the binary you can put this code onto command line (cmd on windows or Bash in Linux), and execute it. If you have problems doing this, please, let me know.  
  > **username_0**: Thanks.  So after downloading the zip file, which file do I need to open and what do you mean by download the binary?  I have a windows computer.  Thanks a lot for your help.  
  > **username_1**: Ok! First of all sorry for my delay answering you. So, once you download ffmpeg.zip from www.ffmpeg.org you must to unzip all the content in a folder. After of this you must to navigate to this folder with the command line. You start the command line with cmd. When you have the command line opened you must to go to the ffmpeg/bin folder and start to write your instruction. for example: c:\ffmpeg\bin\ffmpeg.exe -i video.avi -vcodec h264 -s 720x576 -aspect 16:9 -acodec mp3liblame -b 1536k output.avi and press intro. The ffmpeg main program will start to work. And that's all folks! ;-)  
  > **username_0**: Thank you so much for your reply but I am still struggling with this.  I can't locate the ffmpeg file or the bin file.  Are these files in the unzipped folder?  I don't seem to be able to find them :(  
  
  ---
  
  ### Answer by username_2 on 2014-12-15. Score: 0
  
  Most video editors and encoding applications will allow you to specify the pixel pitch when running the video through them. This does result in one more generation of loss, but would give the proper pixel pitch for the video. (In Premiere for example, you use Interpret footage.)
  
  There may also be tools that can directly manipulate the pixel pitch listed in the video's meta-data, however I am not aware of any such tools off the top of my username_0 and some brief searching didn't turn any up.
  
  
  ---
  
  ### Answer by username_3 on 2014-12-15. Score: 0
  
  Probably the best way to go about this is to import the footage into an NLE like Premiere, Lightworks, Edius, or Final Cut, then export the footage with the correct aspect ratio. I imagine there is also an FFmpeg command to do this, but I am not familiar enough with it to tell you.
  
  
  ---
  
  