[FFmpeg-user] mov to mp4 Error

s00b4u 4u s00b4u at gmail.com
Thu Oct 8 10:31:07 CEST 2015


Hi,

I am trying to convert an mov file to mp4. I am using following version of
FFMPEG:


>
>
>
>
>
>
>
>
>
>
> *FFMPEG Version:ffmpeg version N-73929-ga906e86 Copyright (c) 2000-2015
> the FFmpeg developersbuilt with gcc 4.8 (Ubuntu
> 4.8.4-2ubuntu1~14.04)configuration: --prefix=/home/user/ffmpeg_build
> --pkg-config-flags=--static
> --extra-cflags=-I/home/user/ffmpeg_build/include
> --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin
> --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype
> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-libx264 --enable-libx265
> --enable-nonfreelibavutil      54. 28.100 / 54. 28.100libavcodec     56.
> 50.101 / 56. 50.101libavformat    56. 40.101 / 56. 40.101libavdevice
> 56.  4.100 / 56.  4.100libavfilter     5. 27.100 /  5.
> 27.100libswscale      3.  1.101 /  3.  1.101libswresample   1.  2.101 /
> 1.  2.101libpostproc    53.  3.100 / 53.  3.100*
>


When I run the command: "*ffmpeg -i 00019.mov -c copy 00019.mp4*".. the
transcoding get terminated prematurely. The error is: "*Could not write
header for output file #0 (incorrect codec parameters ?): Invalid argument*".
Here is the log:


>
>
>
>
>
>
>
>
>
> *[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2c74280] overread end of atom '�day' by 4
> bytes[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2c74280] overread end of atom '�swr' by 4
> bytesInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '00019.mov':  Metadata:
> date            : 2014-07-22 08:12:16 +0000    date-eng        : 2014-07-22
> 08:12:16 +0000    encoder         : ClipWrap 2.4.3    encoder-eng     :
> ClipWrap 2.4.3    timecode        : 00:00:00;00  Duration: 00:03:01.65,
> start: 0.000000, bitrate: 15616 kb/s    Stream #0:0(eng): Data: none (tmcd
> / 0x64636D74) (default) **//**[MY COMMENTS: PLEASE NOTE DATA: NONE IN
> STREAM #0:0]*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *    Metadata:      handler_name    : Apple Alias Data Handler
> reel_name       :        timecode        : 00:00:00;00    Stream #0:1(eng):
> Video: h264 (High) (avc1 / 0x31637661), yuv420p(bt709), 1440x1080 [SAR 4:3
> DAR 16:9], 8519 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
> Metadata:      handler_name    : Apple Alias Data Handler
> encoder         : H.264      timecode        : 00:00:00;00    Stream
> #0:2(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 5.1(side), s32
> (24 bit), 6912 kb/s (default)    Metadata:      handler_name    : Apple
> Alias Data Handler[mp4 @ 0x2c8fd40] Codec for stream 0 does not use global
> headers but container format requires global headers[mp4 @ 0x2c8fd40] Codec
> for stream 1 does not use global headers but container format requires
> global headers[mp4 @ 0x2c8fd40] Could not find tag for codec pcm_s24le in
> stream #1, codec not currently supported in containerOutput #0, mp4, to
> '00019.mp4':  Metadata:    date            : 2014-07-22 08:12:16 +0000
> date-eng        : 2014-07-22 08:12:16 +0000    timecode        :
> 00:00:00;00    encoder         : Lavf56.40.101    Stream #0:0(eng): Video:
> h264 ([33][0][0][0] / 0x0021), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9],
> q=2-31, 8519 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc (default)
> Metadata:      handler_name    : Apple Alias Data Handler
> encoder         : H.264      timecode        : 00:00:00;00    Stream
> #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 5.1(side) (24
> bit), 6912 kb/s (default)    Metadata:      handler_name    : Apple Alias
> Data HandlerStream mapping:  Stream #0:1 -> #0:0 (copy)  Stream #0:2 ->
> #0:1 (copy)Could not write header for output file #0 (incorrect codec
> parameters ?): Invalid argument*
>

However, if I try following command: "*ffmpeg -i 00019.mov 00019.mp4*",
then video gets transcoded without any problems.
I want to keep quality of video exactly same in mp4. But using "-c copy"
throws error.

Any suggestions how this can be handled?


More information about the ffmpeg-user mailing list