Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#2424 closed defect (fixed)

transcoding some MKVs produces files that have the wrong size/aspect_ratio

Reported by: julian Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mkv
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

download the file:
https://dl.dropbox.com/u/7221986/aspect_bug.mkv

and transcode it to a MP4 (here with the latest official mac binary):

ffmpeg -i aspect_bug.mkv -vcodec copy -acodec copy aspect_bug.mp4
ffmpeg version 1.2-tessus Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 15 2013 01:18:55 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'aspect_bug.mkv':
  Duration: 00:01:00.06, start: 0.000000, bitrate: 4395 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], SAR 67:3 DAR 160:3, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s
    Metadata:
      title           : DTS
    Stream #0:2(ger): Subtitle: subrip
    Metadata:
      title           : Forced
[mp4 @ 0x102019c00] track 1: codec frame size is not set
Output #0, mp4, to 'aspect_bug.mp4':
  Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x536 [SAR 67:3 DAR 160:3], q=2-31, 23.98 fps, 16k tbn, 1k tbc (default)
    Stream #0:1(ger): Audio: dts ([169][0][0][0] / 0x00A9), 48000 Hz, 5.1(side), 768 kb/s
    Metadata:
      title           : DTS
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1440 fps=0.0 q=-1.0 Lsize=   32257kB time=00:01:00.05 bitrate=4400.5kbits/s    
video:26554kB audio:5630kB subtitle:0 global headers:0kB muxing overhead 0.227912%

open the MP4 in VLC/Mplayer/QuickTime Player =>for some reason it is displayed in a completely weird size or aspect ratio. since ffmpeg seems to know the file is 1280x536, this should not occur.

Change History (6)

comment:1 Changed 5 years ago by cehoyos

  • Version changed from 1.2 to unspecified

Which player plays the original mkv file the way you want it?
(Afaict, there is no bug, the file is exactly as "weird" as QT shows the output file for you.)

comment:2 Changed 5 years ago by julian

VLC plays the original MKV OK, but not the transcoded MP4

comment:3 Changed 5 years ago by michael

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 5 years ago by julian

thanks

comment:5 Changed 5 years ago by cehoyos

  • Keywords mkv added

comment:6 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Version changed from unspecified to git-master
Note: See TracTickets for help on using tickets.