[FFmpeg-user] AVCodecContext returns wrong height

Unga unga888 at yahoo.com
Mon Oct 17 07:47:50 CEST 2011


Hi all

In my sample program I get wrong video height, ie, instead of 1080, I get 1088!

Example:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/Shaggy/It Wasn't Me - Shaggy - HD 1080p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isomavc1mp42
    creation_time   : 2010-03-17 14:36:11
  Duration: 00:04:54.12, start: 0.000000, bitrate: 3673 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 125 kb/s
    Metadata:
      creation_time   : 2010-03-17 14:36:11
    Stream #0.1(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 3545 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2010-03-17 14:36:12
sample_aspect_ratio: 1.0000000000
pCodecCtx->width: 1920
pCodecCtx->height: 1088  <<<<<<<<<
aspect_ratio: 1.7647058964
mode.w: 1366
mode.h: 768
dst_w: 1366
dst_h: 774

This could most probably a programming error, but I don't see.

Appreciate very much if someone could help me to identify the error.

The program is attached. Its a C program and compilation instructions are found at beginning of the file.

Many thanks in advance.

Best regards
Unga
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tutorial03a.c
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20111016/b59e7f3c/attachment.c>


More information about the ffmpeg-user mailing list