[FFmpeg-user] Muxing audio-only MXF

Robert Kr├╝ger krueger at lesspain.software
Thu Nov 30 17:46:09 EET 2017


Hi,

is there a way to mux an mxf file only containing a pcm audio stream? When
I try I get this:

ffmpeg -i
/Users/krueger/lesspain/samples/software/compressor/compressor4_1080_25p_apple_devices_best_compat_2s.m4v
-vn -c:a pcm_s16le ~/tmp/ffmpeg_pcm16_rewrap.mxf
ffmpeg version git-2017-06-12-358ddb4 Copyright (c) 2000-2017 the FFmpeg
developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --enable-shared --disable-static --disable-doc
--disable-devices --enable-indev=lavfi
--prefix=/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/ffmpeg
--install-name-dir='@rpath'
--extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/include/
--extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/lib/
--extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/include/
--extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/lib/
--extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/include/
--extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/lib/
--extra-ldflags='-Wl,-rpath, at loader_path/../lib' --enable-libvorbis
--enable-libvpx --enable-libmp3lame --enable-libopenh264
--enable-libfreetype
  libavutil      55. 63.100 / 55. 63.100
  libavcodec     57. 98.100 / 57. 98.100
  libavformat    57. 73.100 / 57. 73.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 91.100 /  6. 91.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/krueger/lesspain/samples/software/compressor/compressor4_1080_25p_apple_devices_best_compat_2s.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2015-09-15T08:19:57.000000Z
  Duration: 00:00:02.00, start: 0.000000, bitrate: 3881 kb/s
    Stream #0:0(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 63 kb/s (default)
    Metadata:
      creation_time   : 2015-09-15T08:19:57.000000Z
      handler_name    : Core Media Audio
    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/smpte170m/bt709, progressive), 960x540 [SAR 1:1 DAR 16:9], 3807
kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2015-09-15T08:19:57.000000Z
      handler_name    : Core Media Video
Stream mapping:
  Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[mxf @ 0x7f8ccd803200] there must be exactly one video stream and it must
be the first one
Could not write header for output file #0 (incorrect codec parameters ?):
Operation not permitted
Error initializing output stream 0:0 --
Conversion failed!

Is this a conscious limitation of the muxer or am I missing a command line
option?

Thanks,

Robert


More information about the ffmpeg-user mailing list