Opened 5 years ago

Closed 4 years ago

#505 closed enhancement (fixed)

mov display matrix is not copied on remuxing

Reported by: Alex__ Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mov
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Description: Orientation information ignored
Version: latest trunk
URL: see below

Steps that will reproduce the problem?

  1. ffmpeg -i sample-in.mov -vcodec copy -acodec copy sample-out.mov
  2. Open sample-out.mov with QuickTime? Player X

What is the expected result?
Video in portrait mode.

What happens instead?
Video in langscape mode.

Possible workaround:
Maybe just a missing parameter? Apple related only?

Any additional information:

  • Example files: attached
  • Screenshots: attached
  • Command:
    $ ffmpeg -i sample-in.mov -vcodec copy -acodec copy sample-out.mov
    ffmpeg version N-30271-g73a5287, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep 25 2011 12:14:29 with clang 2.1 (tags/Apple/clang-163.7.1)
      configuration: --enable-zlib --disable-debug --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
      libavutil    51. 17. 0 / 51. 17. 0
      libavcodec   53. 17. 0 / 53. 17. 0
      libavformat  53. 13. 0 / 53. 13. 0
      libavdevice  53.  4. 0 / 53.  4. 0
      libavfilter   2. 43. 5 /  2. 43. 5
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    
    Seems stream 1 codec frame rate differs from container frame rate: 1200.00 (1200/1) -> 30.00 (30/1)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample-in.mov':
      Metadata:
        major_brand     : qt  
        minor_version   : 0
        compatible_brands: qt  
        creation_time   : 2011-09-25 10:10:07
        encoder         : 4.3.5
        encoder-deu     : 4.3.5
        date            : 2011-09-25T12:09:54+0200
        date-deu        : 2011-09-25T12:09:54+0200
      Duration: 00:00:03.53, start: 0.000000, bitrate: 784 kb/s
        Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, s16, 63 kb/s
        Metadata:
          creation_time   : 2011-09-25 10:10:07
        Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 480x272, 712 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc
        Metadata:
          creation_time   : 2011-09-25 10:10:07
    Output #0, mov, to 'sample-out.mov':
      Metadata:
        major_brand     : qt  
        minor_version   : 0
        compatible_brands: qt  
        creation_time   : 2011-09-25 10:10:07
        date-deu        : 2011-09-25T12:09:54+0200
        encoder-deu     : 4.3.5
        date            : 2011-09-25T12:09:54+0200
        encoder         : Lavf53.13.0
        Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 480x272, q=2-31, 712 kb/s, 600 tbn, 600 tbc
        Metadata:
          creation_time   : 2011-09-25 10:10:07
        Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, 63 kb/s
        Metadata:
          creation_time   : 2011-09-25 10:10:07
    Stream mapping:
      Stream #0.1 -> #0.0 (copy)
      Stream #0.0 -> #0.1 (copy)
    Press [q] to stop, [?] for help
    frame=  106 fps=  0 q=-1.0 Lsize=     338kB time=00:00:03.50 bitrate= 791.2kbits/s    
    video:308kB audio:27kB global headers:0kB muxing overhead 0.985367%
    $
    

Attachments (4)

sample-in-issue-505.mov (338.3 KB) - added by Alex__ 5 years ago.
sample-in-issue-505.png (307.7 KB) - added by Alex__ 5 years ago.
sample-out-issue-505.mov (338.2 KB) - added by Alex__ 5 years ago.
sample-out-issue-505.png (176.8 KB) - added by Alex__ 5 years ago.

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by Alex__

Changed 5 years ago by Alex__

Changed 5 years ago by Alex__

Changed 5 years ago by Alex__

comment:1 Changed 5 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from Orientation information ignored to mov display matrix is not copied on remuxing
  • Type changed from defect to enhancement

comment:2 Changed 5 years ago by cehoyos

  • Keywords mov added

comment:3 Changed 4 years ago by stefang

A fix has been comitted and I confirmed that the display matrix of sample-in-issue-505.mov keeps retained when transcoding from mov to mov. Someone with quicktime or iphone, please confirm.

comment:4 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

I was able to test the change successfully.

Note: See TracTickets for help on using tickets.