Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

Alexis Prus
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 ?)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

Carl Eugen Hoyos
Alexis Prus <agprus <at> gmail.com> writes:

> ffmpeg -i input.mp4 -vcodec libschroedinger -q:v 0 -acodec flac output.ogg

Why do you think dirac-in-ogg is supported?
(The reason I ask is that ogg is not a general purpose container,
but a container for a very limited set of codecs.)

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

aple ex
In reply to this post by Alexis Prus



> Date: Thu, 23 Feb 2012 17:54:32 -0300
> From: [hidden email]
> To: [hidden email]
> 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    
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

dE .
On 03/02/12 22:45, aple ex wrote:

>
>
>> Date: Thu, 23 Feb 2012 17:54:32 -0300
>> From: [hidden email]
>> To: [hidden email]
>> 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  
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Yes, use libtheora instead. From what I've experimented, only theora can
be stored in ogg. And actually, since it contains a video, I think it
should be ogv.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

adunaic
I thought it best to re-open this than start a new.

Do you know if this supported at all or will be?  From Oggs pages they imply that dirac can be placed in an ogg container but I still get the error:

Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

(ffmpeg version 1.0.5 )

Any thoughts?
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

Carl Eugen Hoyos
adunaic <adunaic <at> hotmail.co.uk> writes:

> From Oggs pages they imply that dirac can be placed
> in an ogg container but I still get the error:

FFmpeg currently does not support muxing dirac in ogg,
patch welcome!

> Could not write header for output file #0 (incorrect codec parameters ?):
> Operation not permitted
>
> (ffmpeg version 1.0.5 )

(This is outdated.)

> Any thoughts?

For future questions: Please always provide
your failing command line together with complete,
uncut console output.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

adunaic
> > From Oggs pages they imply that dirac can be placed
> > in an ogg container but I still get the error:

>FFmpeg currently does not support muxing dirac in ogg,
>patch welcome!

Thank you for clarifying this. I am just a casual user with not enough knowledge to add this, sorry.

> > Could not write header for output file #0 (incorrect codec parameters ?):
> > Operation not permitted
> >
> > (ffmpeg version 1.0.5 )

> (This is outdated.)

It is all that is offered in Fedora 18, I struggle to compile from source.

> > Any thoughts?

> For future questions: Please always provide
> your failing command line together with complete,
> uncut console output.

> Carl Eugen

Will do in the future,  thanks again.

Robin
Reply | Threaded
Open this post in threaded view
|

Re: Problem transcoding from MP4 (H264 - AAC) to OGG (DIRAC - FLAC)

Liam Condron-Farnos
>> > (ffmpeg version 1.0.5 )
>>
>> (This is outdated.)
>
>It is all that is offered in Fedora 18, I struggle to compile from source.

You can get an up-to-date static build from the downloads page:

https://ffmpeg.org/download.html
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user