[Libav-user] MP4 concatenation with MP42 major_brand

black copper blackcopper1 at gmail.com
Tue Dec 20 11:05:22 EET 2016


I have MP4 source videos, that contain:

video: H264
audio: G.711 (mulaw)

I want to use concatenation on source videos to get one MP4 file.

I used concat filter by first creating a list: mylist.txt file as follows:

file 'v1.mp4'
file 'v2.mp4'
file 'v3.mp4'

then envoked ffmpeg command like this:

ffmpeg -f concat -i mylist.txt -c copy op.mp4 -y

This worked only with files that are mp41 compatible.

With mp42 files that I mentioned above, I get this error:

[mp4 @ 0x24ca780] Could not find tag for codec pcm_mulaw in stream #1,
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument

Full command line:

--------------------
ffmpeg -f concat -i mylist.txt -c copy op.mp4 -y
ffmpeg version N-82760-g55affd9 Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --pkg-config-flags=--static
--extra-cflags=-I/home/ubuntu/ffmpeg_build/include
--extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
  libavutil      55. 41.101 / 55. 41.101
  libavcodec     57. 66.109 / 57. 66.109
  libavformat    57. 58.101 / 57. 58.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x23ed7c0] Auto-inserting h264_mp4toannexb
bitstream filter
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, concat, from 'mylist.txt':
  Duration: N/A, start: 0.000000, bitrate: 518 kb/s
    Stream #0:0(eng): Audio: pcm_mulaw (ulaw / 0x77616C75), 8000 Hz, mono,
s16, 64 kb/s
    Metadata:
      creation_time   : 2016-12-20T03:41:14.000000Z
      handler_name    : ?Apple Sound Media Handler
    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080, 454 kb/s, 27.70 fps, 27.70 tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2016-12-20T03:41:14.000000Z
      handler_name    : ?Apple Video Media Handler
      encoder         : H.264
[mp4 @ 0x2413780] Could not find tag for codec pcm_mulaw in stream #1,
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
    Last message repeated 1 times
----------------

I'm on Ubuntu 14.04 OS.

Is there anyway I can get this functionality to work with mp42 compatible
files? any help is much appreciated,

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20161220/482706f2/attachment.html>


More information about the Libav-user mailing list