Opened 13 years ago

Closed 12 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 13 years ago.
sample-in-issue-505.png (307.7 KB ) - added by Alex 13 years ago.
sample-out-issue-505.mov (338.2 KB ) - added by Alex 13 years ago.
sample-out-issue-505.png (176.8 KB ) - added by Alex 13 years ago.

Download all attachments as: .zip

Change History (8)

by Alex, 13 years ago

Attachment: sample-in-issue-505.mov added

by Alex, 13 years ago

Attachment: sample-in-issue-505.png added

by Alex, 13 years ago

Attachment: sample-out-issue-505.mov added

by Alex, 13 years ago

Attachment: sample-out-issue-505.png added

comment:1 by Carl Eugen Hoyos, 13 years ago

Reproduced by developer: set
Status: newopen
Summary: Orientation information ignoredmov display matrix is not copied on remuxing
Type: defectenhancement

comment:2 by Carl Eugen Hoyos, 13 years ago

Keywords: mov added

comment:3 by Stefan Gehrer, 12 years ago

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 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

I was able to test the change successfully.

Note: See TracTickets for help on using tickets.