[FFmpeg-user] Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

aple ex exampte01 at hotmail.fr
Fri Mar 2 18:15:34 CET 2012




> Date: Thu, 23 Feb 2012 17:54:32 -0300
> From: agprus at gmail.com
> To: ffmpeg-user at ffmpeg.org
> Subject: [FFmpeg-user] Problem transcoding from MP4 (H264 - AAC) to OGG	(DIRAC - FLAC)
> 
> Hello,
> 
> I am trying to do a lossy-to-lossless transcoding from an MP4 file (with 
> one H264 video stream and one AAC audio stream) to an OGG file (with a 
> DIRAC video stream and a FLAC audio stream). The command line I am using 
> is this:
> 
> ffmpeg -i input.mp4 -vcodec libschroedinger -q:v 0 -acodec flac output.ogg
> 
> and I am getting the following errors (complete output is at the end):
> 
> [ogg @ 0000000001F29570] Unsupported codec id in stream 0
> Could not write header for output file #0 (incorrect codec parameters ?)
> 
> Does anybody know an appropriate way to do this kind of transcoding?
> 
> Thanks in advance,
> Alexis
> 
> ffmpeg version N-38148-gb6ff81d Copyright (c) 2000-2012 the FFmpeg 
> developers
>    built on Feb 23 2012 12:30:44 with gcc 4.6.2
>    configuration: --enable-gpl --enable-version3 --disable-w32threads 
> --enable-runtime-cpudetect --enable-avisynth --enable-bzlib 
> --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb 
> --enable-libfreetype --enable-libgsm --enable-libmp3lame 
> --enable-libopenjpeg --enable-librtmp --enable-libschroedinger 
> --enable-libspeex --enable-libtheora --enable-libvo-aacenc 
> --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
> --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
>    libavutil      51. 40.100 / 51. 40.100
>    libavcodec     54.  4.100 / 54.  4.100
>    libavformat    54.  1.100 / 54.  1.100
>    libavdevice    53.  4.100 / 53.  4.100
>    libavfilter     2. 62.101 /  2. 62.101
>    libswscale      2.  1.100 /  2.  1.100
>    libswresample   0.  7.100 /  0.  7.100
>    libpostproc    52.  0.100 / 52.  0.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h264aac1.mp4':
>    Metadata:
>      major_brand     : isom
>      minor_version   : 512
>      compatible_brands: isomiso2avc1mp41
>      creation_time   : 2010-02-16 19:06:52
>      encoder         : Lavf52.36.0
>    Duration: 00:03:40.03, start: 0.000000, bitrate: 2571 kb/s
>      Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 
> 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2537 kb/s, 30 fps, 30 
> tbr, 30 tbn, 60 tbc
>      Metadata:
>        creation_time   : 2010-02-16 19:06:52
>        handler_name    : VideoHandler
>      Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 11025 Hz, stereo, 
> s16, 31 kb/s
>      Metadata:
>        creation_time   : 2010-02-16 19:06:52
>        handler_name    :
> [buffer @ 0000000001F29F30] w:640 h:480 pixfmt:yuv420p tb:1/1000000 
> sar:1/1 sws_param:
> [ogg @ 0000000001F29570] Unsupported codec id in stream 0
> Output #0, ogg, to 'h264aac.ogg':
>    Metadata:
>      major_brand     : isom
>      minor_version   : 512
>      compatible_brands: isomiso2avc1mp41
>      creation_time   : 2010-02-16 19:06:52
>      encoder         : Lavf54.1.100
>      Stream #0:0(und): Video: dirac, yuv420p, 640x480 [SAR 1:1 DAR 4:3], 
> q=2-31, 200 kb/s, 30 tbn, 30 tbc
>      Metadata:
>        creation_time   : 2010-02-16 19:06:52
>        handler_name    : VideoHandler
>      Stream #0:1(und): Audio: flac, 11025 Hz, stereo, s16, 128 kb/s
>      Metadata:
>        creation_time   : 2010-02-16 19:06:52
>        handler_name    :
> Stream mapping:
>    Stream #0:0 -> #0:0 (h264 -> libschroedinger)
>    Stream #0:1 -> #0:1 (aac -> flac)
> Could not write header for output file #0 (incorrect codec parameters ?)

Hi according to their website dirac codec is supposed to be contained by ogg, see here :
http://diracvideo.org/schrodinger-faq/  (specially Question 6)
I have tested myself and I obtain the same result. I can provide my console output if necessary but dirac can be encoded in mpegts container.
Regards 		 	   		  


More information about the ffmpeg-user mailing list