Display Aspect Ratio: Difference between revisions

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
Created page with "There is a difference between Sample Aspect Ratio (SAR) and Display Aspect Ratio (DAR). Display Aspect Ratio (DAR) - a value in the header. Sample Aspect Ratio (SAR) - count..."
 
mNo edit summary
Line 1: Line 1:
There is a difference between Sample Aspect Ratio (SAR) and Display Aspect Ratio (DAR).
There is a difference between Sample Aspect Ratio (SAR) and Display Aspect Ratio (DAR).


Display Aspect Ratio (DAR) - a value in the header.
Sample Aspect Ratio (SAR) - count of pixels horizontal ratio to vertical. ***  ''the Pixel Aspect Ratio (PAR)''


Sample Aspect Ratio (SAR) - count of pixels horizontal ratio to vertical.
Display Aspect Ratio (DAR) - a value in the file that tells the video player how to display the video.


To scale the image and change SAR (while transcoding), try:
To scale the image and change SAR (while transcoding), try:
Line 12: Line 12:


  ffmpeg -i <INPUT_FILE> -aspect 720:540 -c copy [OUTPUT_FILE]
  ffmpeg -i <INPUT_FILE> -aspect 720:540 -c copy [OUTPUT_FILE]
== *** SAR , DAR , PAR ==
We discussed the Sample Aspect Ratio or SAR.  Lets add more confusion.  Other experts describe SAR as the Storage Aspect Ratio and introduce a third element to the discussion called the Pixel Aspect Ratio (PAR).

Revision as of 06:57, 16 June 2019

There is a difference between Sample Aspect Ratio (SAR) and Display Aspect Ratio (DAR).

Sample Aspect Ratio (SAR) - count of pixels horizontal ratio to vertical. *** the Pixel Aspect Ratio (PAR)

Display Aspect Ratio (DAR) - a value in the file that tells the video player how to display the video.

To scale the image and change SAR (while transcoding), try:

ffmpeg -i <INPUT_FILE> -vf scale=720:540 -c:v <Video_Codec> <OUTPUT_FILE>

On the other hand, if you just want to change the metadata flag and adjust the DAR, you will be able to stream copy the video. To do this, try:

ffmpeg -i <INPUT_FILE> -aspect 720:540 -c copy [OUTPUT_FILE]


*** SAR , DAR , PAR

We discussed the Sample Aspect Ratio or SAR. Lets add more confusion. Other experts describe SAR as the Storage Aspect Ratio and introduce a third element to the discussion called the Pixel Aspect Ratio (PAR).