Opened 5 years ago

Closed 5 years ago

#2198 closed enhancement (fixed)

support reporting UL of MXF tracks

Reported by: dericed Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: mxf
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I'd like to use ffprobe (or ffmpeg) to report on the Universal Label (UL) of the contained streams. With AVI and QuickTime? the fourcc is reported but with MXF the output is "codec_tag_string=[0][0][0][0]" since it uses 16 byte UL's instead of 4 byte fourccs.

Below is a ffmpeg output. The space that would report to fourcc for avi or QuickTime? is blank in the case of MXF.

How to reproduce:

ffmpeg -i ul.mxf 
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 24 2013 22:19:12 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 '
  libavutil      52. 15.103 / 52. 15.103
  libavcodec     54. 90.100 / 54. 90.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.100 /  3. 33.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mxf, from 'ul.mxf':
  Metadata:
    timecode        : 00:00:00:00
  Duration: 00:00:01.00, start: 0.000000, bitrate: 631 kb/s
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn, 50 tbc
At least one output file must be specified

Attachments (1)

patchul.diff (1021 bytes) - added by cehoyos 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by cehoyos

  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open

Could you test attached patch (with -loglevel verbose)?

comment:2 Changed 5 years ago by dericed

ffmpeg -i ~/ul.mxf -loglevel verbose

with that patch works me with an adds this line to the output

[mxf @ 0x7ffd3a80f200] mpeg2video: Universal Label: 06 0e 2b 34 04 01 01 03 04 01 02 02 01 01 11 00

Personally I'd prefer the output without spaces in between the bytes such as 0x060e2b34040101030401020201011100.

Changed 5 years ago by cehoyos

comment:3 Changed 5 years ago by cehoyos

Patch updated.

comment:4 Changed 5 years ago by dericed

Thanks much. This patch does what I need. Will this be incorporated into FFmpeg?

comment:5 Changed 5 years ago by cehoyos

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