[FFmpeg-user] mov [ProRes/pcm_s24le] -> mp4 same quality

HallMarc Websites marc at hallmarcwebsites.com
Wed Nov 16 22:28:44 CET 2011


Really beginning to hate transcoding.
I have been able to successfully keep the video quality and deal with the
resizing issue of x264 by using mpeg4 codec instead. Now, the issue I am
dealing with is keeping the audio quality the same! libfaac just doesn't
seem to be able to match the audio quality of pcm_s24le. So I am trying use
it as the encoder and ffmpeg (yes the latest version) keeps reporting this
error:
Could not write header for output file #0 (incorrect codec parameters ?)

the command lines I have tried are:
ffmpeg -y -i INPUT.mov -vcodec mpeg4 -b:v 1883k -r 23.976 -acodec pcm_s24le
-ar 44100 -ab 2304 -ac 2 OUTPUT.mp4
ffmpeg -y -i INPUT.mov -vcodec mpeg4 -b:v 1883k -r 23.976 -acodec pcm_s24le
2 OUTPUT.mp4
etc etc 
And the same error comes up. 

Complete output below:
ffmpeg version N-34855-gc8136eb, Copyright (c) 2000-2011 the FFmpeg
developers
  built on Nov 14 2011 16:03:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
  configuration: --prefix=/usr/local/hgffmpeg --enable-shared
--enable-nonfree --enable-avfilter --enable-filter=movie --enable-gpl
--enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis
--enable-libx264 --enable-x11grab --enable-libvpx --enable-libxvid
--extra-cflags=-I/usr/local/hgffmpeg/include/
--extra-ldflags=-L/usr/local/hgffmpeg/lib --enable-decoder=ac3
--enable-decoder=asv1 --enable-decoder=asv2 --enable-decoder=flac
--enable-decoder=wmv1 --enable-decoder=wmv2 --enable-decoder=wmv3
--enable-decoder=mpeg1video --enable-decoder=mpeg2video --enable-decoder=flv
--enable-decoder=fraps --enable-decoder=h263 --enable-decoder=h264
--enable-decoder=libgsm --enable-decoder=mjpeg --enable-decoder=mpeg4
--enable-decoder=mpeg4aac --enable-decoder=mpegvideo
--enable-decoder=mpeg4aac --enable-decoder=msmpeg4v1
--enable-decoder=msmpeg4v2 --enable-decoder=msmpeg4v3
--enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-  libavutil
51. 24. 1 / 51. 24. 1
  libavcodec   53. 33. 0 / 53. 33. 0
  libavformat  53. 20. 0 / 53. 20. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 48. 1 /  2. 48. 1
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 0 codec frame rate differs from container frame rate: 23976.00
(23976/1) -> 23.98 (2997/125)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Hamilton-Beach-Scoop-30.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-10-05 14:26:42
  Duration: 00:00:29.98, start: 0.000000, bitrate: 104608 kb/s
    Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le,
1920x1080, 102281 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn,
23976 tbc
    Metadata:
      creation_time   : 2011-10-05 14:26:42
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2
channels, s32, 2304 kb/s
    Metadata:
      creation_time   : 2011-10-05 14:26:42
      handler_name    : ?Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      creation_time   : 2011-10-05 14:27:11
      handler_name    : ?Apple Alias Data Handler
[mp4 @ 0x8e5da00] track 0: could not find tag, codec not currently supported
in container
Output #0, mp4, to 'atest.mp4':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2011-10-05 14:26:42
    encoder         : Lavf53.20.0
    Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le,
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 102281 kb/s, 23.98 fps, 90k tbn, 23976
tbc
    Metadata:
      creation_time   : 2011-10-05 14:26:42
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 2
channels, 2304 kb/s
    Metadata:
      creation_time   : 2011-10-05 14:26:42
      handler_name    : ?Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?)



More information about the ffmpeg-user mailing list