Opened 5 years ago

Closed 5 years ago

#3727 closed defect (fixed)

Guessed 'ChannelPosition' outputted in audio

Reported by: rdwill2 Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mov regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Hi Group

We are currently using ffmpeg to 'chop' IMX files(e.g multiple news clips) into individual clips, using the following ffmpeg -map command :-

>ffmpeg -i D:\OwenMoneyTape\30PC60746MBIB6527895.mov -ss 00:02:00.000 -scodec copy -map 0:6 -vcodec copy -map  0:1  -acodec copy -map 0:2 -map 0:3 -map 0:4 -map 0:5 -metadata creation_time="2014-05-01 12:00:00" -to 00:03:00.000 -y /tmp/clip.mov -report

The input file contains a video track, 4 audio tracks and a timecode track and we are mapping all tracks to the output clip.

On running mediainfo v0.7.69 on the input file and the output clipped file, we are finding that FFmpeg is adding mediainfo field 'ChannelPositions?' field automatically in the output.( note does does exist in input IMX file)

It appears that ffmpeg is guessing the Audio Channel Layout Is there a way to prevent FFmpeg to output the Audio Channel or am I using the -map command incorrectly. ?
( note the all the other fields are spot on and as expected)

Many thanks

Richard Williams

Attachments (3)

ffmpeg-20140618-095341.log (13.0 KB) - added by rdwill2 5 years ago.
FFMPEG log file
OwenMoney_Clip.xml (5.8 KB) - added by rdwill2 5 years ago.
Owen Money IMX clip mediainfo
30PC60746MBIB6527895_ver0_7_69.xml (6.2 KB) - added by rdwill2 5 years ago.
Owen Money IMX original mediainfo

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by rdwill2

FFMPEG log file

Changed 5 years ago by rdwill2

Owen Money IMX clip mediainfo

Changed 5 years ago by rdwill2

Owen Money IMX original mediainfo

comment:1 Changed 5 years ago by cehoyos

Please provide the console output of the following command:

$ ffmpeg -i OwenMoney_clip.mov

comment:2 Changed 5 years ago by cehoyos

For future tickets: Please remember that MediaInfo? output is nearly never useful, ffmpeg -i output always is.

comment:3 Changed 5 years ago by rdwill2

Hi cehoyos,

For future tickets: Please remember that MediaInfo?? output is nearly never useful

No problem.

Please provide the console output of the following command:

here's the console output you requested :-

ffmpeg started on 2014-06-18 at 11:23:38
Report written to "ffmpeg-20140618-112338.log"
Command line:
ffmpeg -i "D:\\OwenMoneyTape/OwenMoney_clip.mov" -report
ffmpeg version N-61570-gaa86ccc Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 17 2014 22:01:34 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 67.100 / 52. 67.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 34.101 / 55. 34.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'D:\OwenMoneyTape/OwenMoney_clip.mov'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file D:\OwenMoneyTape/OwenMoney_clip.mov.
Successfully parsed a group of options.
Opening an input file: D:\OwenMoneyTape/OwenMoney_clip.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 03db8a80] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03db8a80] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 03db8a80] Before avformat_find_stream_info() pos: 398675767 bytes read:134263 seeks:3
[mov,mp4,m4a,3gp,3g2,mj2 @ 03db8a80] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 03db8a80] After avformat_find_stream_info() pos: 258610 bytes read:417413 seeks:4 frames:7
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\OwenMoneyTape/OwenMoney_clip.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 2014-05-01 12:00:00
    encoder         : Lavf55.34.101
  Duration: 00:01:00.00, start: 0.000000, bitrate: 53156 kb/s
    Stream #0:0(eng), 1, 1/25: Subtitle: eia_608 (c608 / 0x38303663), 720x576, 2 kb/s (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
    Stream #0:1(eng), 1, 1/12800: Video: mpeg2video (4:2:2) (mx5p / 0x7035786D), yuv422p(tv, bt470bg), 720x608 [SAR 152:135 DAR 4:3], 50073 kb/s, SAR 16:15 DAR 24:19, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
      timecode        : 01:01:03:02
    Stream #0:2(eng), 1, 1/48000: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
    Stream #0:3(eng), 1, 1/48000: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
    Stream #0:4(eng), 1, 1/48000: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
    Stream #0:5(eng), 1, 1/48000: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
    Stream #0:6(eng), 1, 1/12800: Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2014-05-01 12:00:00
      handler_name    : DataHandler
      timecode        : 01:01:03:02
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 028538e0] Statistics: 417413 bytes read, 4 seeks

comment:4 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords mov regression added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

From a users perspective this is a regression since 944d049e / 41e9682a
(I believe it is related to an earlier merge.)

comment:5 follow-up: Changed 5 years ago by rdwill2

(I believe it is related to an earlier merge.)

Does this mean my ffmpeg version is out of date and that the more recent version will resolve this issue ?

comment:6 in reply to: ↑ 5 Changed 5 years ago by cehoyos

Replying to rdwill2:

(I believe it is related to an earlier merge.)

Does this mean my ffmpeg version is out of date

(This is generally a question that you can only answer yourself but in this case:)

and that the more recent version will resolve this issue ?

No, I meant that while for you (as a user) this looks like a regression since the mentioned commits (it worked before), the regression is imo actually related to an earlier merge (although above command line still did work, the bug may already have been introduced).

Please note that the ticket will be closed immediately after a fix is committed, so in other words the issue is (should be) reproducible as long as the ticket is open.

comment:7 Changed 5 years ago by michael

Why is it a problem if these tracks are marked as mono ?

comment:8 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.