Answers.Body: <p>HDV camera, right? It's not untypical for cameras to claim higher resolution than they actually scan. In such cases you have to look at the different aspect ratios involved: pixel, frame, display, sample. <a href="http://forum.videohelp.com/threads/323530-please-explain-SAR-DAR-PAR" rel="nofollow"><strong>Here's a post</strong></a> that discusses this, or google "HDV aspect ratio". And <a href="https://documentation.apple.com/en/finalcutpro/professionalformatsandworkflows/chapter_2_section_6.html" rel="nofollow"><strong>here's a link</strong></a> to the spec from the HDV consortium.</p>
  
  <p>It's essentially anamorphic. The ffmpeg or avconv docs should show how to extract and expand to 1920 in one step.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T00:32:25.177Z
Answers.Text: The specs for HDV are listed [here](https://en.wikipedia.org/wiki/HDV#Specifications). You'll see that the frame is indeed anamorphic. You could use `vf scale=1920:1080,setsar=1:1` to ensure the output is full raster (though it will be interpolated).
Answers.UserDisplayName: stib
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-27T07:37:44.763Z
Answers.Text: Thanks for both your explanations. I checked in `ffmpeg` and it is indeed saying the following about the input video stream: `Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc`. @stib I am not familiar with the anamorphic term, but ultimately, I would like to recover the image as captured by a pinhole camera model. Do you know if the ffmpeg video filter `vf scale=1920:1080,setsar=1:1` is enough for that ?
Answers.UserDisplayName: BConic
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-19T13:13:24.440Z
Answers.Text: Yes, that filter chain should suffice.
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T17:13:39.977Z
Answers.LastActivityDate: 2015-08-26T17:13:39.977Z
Answers.UserDisplayName: Jim Mack
Body: <p>I have an interlaced video with MTS file format, which was captured using a HD camera.
  When I play it using VLC, it is displayed at resolution 1920x1080 and if I take a snapshot with VLC, the saved image also has a resolution of 1920x1080. I tried playing the video with the Windows Media Player, and the video is also rendered at a resolution of 1920x1080.</p>
  
  <p>However, in VLC, when I select <strong>Tools > Codecs information</strong> I get the following :</p>
  
  <pre><code>Type: Video
  Id original: 4113
  Codec: H264 - MPEG-4 AVC (part10) (h264)
  Resolution: 1440x1080
  Framerate: 25
  Decoded format: Planar 4:2:0 YUV
  </code></pre>
  
  <p>(there also are an audio stream and a subtitle stream, which I am not interested in).</p>
  
  <p>So the exposed resolution seems to be 1440x1080 but when rendered the video is 1920x1080.</p>
  
  <p>Anyway, <strong>my true problem</strong> comes from the fact that I need to extract the frames from the video to perform some Image Processing. I do that using <code>ffmpeg</code>, which extracts frames at the resolution of 1440x1080, but then the extracted images seem distorted (i.e. compressed horizontally), which causes errors for the Image Processing I am doing.</p>
  
  <p>Any idea why VLC, Windows Media Player, Power DVD manages to render the video correctly, whereas <code>ffmpeg</code> fails to extract the frames at the correct resolution ? And why is the video rendered at 1920x1080 if the exposed codec resolution is 1440x1080 ?</p>
  
Tags: <ffmpeg><avchd><vlc>
Title: Video with inconsistent exposed / rendered image sizes
UserDisplayName: BConic
ThreadText: # Video with inconsistent exposed / rendered image sizes
  
  (Asked by: username_0 on 2015-08-26)
  
  I have an interlaced video with MTS file format, which was captured using a HD camera.
  When I play it using VLC, it is displayed at resolution 1920x1080 and if I take a snapshot with VLC, the saved image also has a resolution of 1920x1080. I tried playing the video with the Windows Media Player, and the video is also rendered at a resolution of 1920x1080.
  
  However, in VLC, when I select **Tools > Codecs information** I get the following :
  
  ```
  Type: Video
  Id original: 4113
  Codec: H264 - MPEG-4 AVC (part10) (h264)
  Resolution: 1440x1080
  Framerate: 25
  Decoded format: Planar 4:2:0 YUV
  
  ```
  
  (there also are an audio stream and a subtitle stream, which I am not interested in).
  
  So the exposed resolution seems to be 1440x1080 but when rendered the video is 1920x1080.
  
  Anyway, **my true problem** comes from the fact that I need to extract the frames from the video to perform some Image Processing. I do that using `ffmpeg`, which extracts frames at the resolution of 1440x1080, but then the extracted images seem distorted (i.e. compressed horizontally), which causes errors for the Image Processing I am doing.
  
  Any idea why VLC, Windows Media Player, Power DVD manages to render the video correctly, whereas `ffmpeg` fails to extract the frames at the correct resolution ? And why is the video rendered at 1920x1080 if the exposed codec resolution is 1440x1080 ?
  
  **Tags:** ffmpeg, avchd, vlc
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-26. Score: 3 | Accepted answer
  
  HDV camera, right? It's not untypical for cameras to claim higher resolution than they actually scan. In such cases you have to look at the different aspect ratios involved: pixel, frame, display, sample. [**Here's a post**](http://forum.videohelp.com/threads/323530-please-explain-SAR-DAR-PAR) that discusses this, or google "HDV aspect ratio". And [**here's a link**](https://documentation.apple.com/en/finalcutpro/professionalformatsandworkflows/chapter_2_section_6.html) to the spec from the HDV consortium.
  
  It's essentially anamorphic. The ffmpeg or avconv docs should show how to extract and expand to 1920 in one step.
  
  > **Comments:**
  > **username_2**: The specs for HDV are listed [here](https://en.wikipedia.org/wiki/HDV#Specifications). You'll see that the frame is indeed anamorphic. You could use `vf scale=1920:1080,setsar=1:1` to ensure the output is full raster (though it will be interpolated).  
  > **username_0**: Thanks for both your explanations. I checked in `ffmpeg` and it is indeed saying the following about the input video stream: `Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc`. @username_2 I am not familiar with the anamorphic term, but ultimately, I would like to recover the image as captured by a pinhole camera model. Do you know if the ffmpeg video filter `vf scale=1920:1080,setsar=1:1` is enough for that ?  
  > **username_3**: Yes, that filter chain should suffice.  
  
  ---
  
  