Quantcast

Unable to copy all audio streams

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to copy all audio streams

albanyeye
Hello
I have an test.mkv file with .264 video and ac3 audio and AAC audio tracks.
When I issue the following:

ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4

I get an error:
Could not write header for output file #0
(Incorrect codec parameters?) Operation not permitted.

Can anyone please offer help?

I am osx mountain lion
Thanks


from my iPhone
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to copy all audio streams

Carl Eugen Hoyos
Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:

> ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
>
> I get an error:
> Could not write header for output file #0
> (Incorrect codec parameters?) Operation not permitted.

Complete, uncut console output missing.

Carl Eugen

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

Re: Unable to copy all audio streams

albanyeye
Please see console output

1) ffmpeg 

$ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
[mp4 @ 0x7fdc09823c00] track 0: codec frame size is not set
[mp4 @ 0x7fdc09823c00] track 2: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf54.29.104
    Stream #0:0(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, 5.1(side), 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
======================================================================================
2) 1) ffprobe 
$ ffprobe test.mkv
ffprobe version 1.0 Copyright (c) 2007-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
=====================================================================================

From: Carl Eugen Hoyos <[hidden email]>
To: [hidden email]
Sent: Sunday, November 25, 2012 3:30 AM
Subject: Re: [FFmpeg-user] Unable to copy all audio streams
 
Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:

> ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
>
> I get an error:
> Could not write header for output file #0
> (Incorrect codec parameters?) Operation not permitted.

Complete, uncut console output missing.

Carl Eugen

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

Re: Unable to copy all audio streams

albanyeye
Hi
I guess the error is related to this

[mp4 @ 0x7fdc09823c00] track 2: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':


Anyway to get ffmpeg to put AC3 into the MP4 container?
Thanks

________________________________
 From: Rajesh Rangaraj <[hidden email]>
To: FFmpeg user questions <[hidden email]>
Sent: Sunday, November 25, 2012 9:07 AM
Subject: Re: [FFmpeg-user] Unable to copy all audio streams
 
Please see console output

1) ffmpeg 

$ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
[mp4 @ 0x7fdc09823c00] track 0: codec frame size is not set
[mp4 @ 0x7fdc09823c00] track 2: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf54.29.104
    Stream #0:0(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, 5.1(side), 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
======================================================================================
2) 1) ffprobe 
$ ffprobe test.mkv
ffprobe version 1.0 Copyright (c) 2007-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
=====================================================================================

From: Carl Eugen Hoyos <[hidden email]>
To: [hidden email]
Sent: Sunday, November 25, 2012 3:30 AM
Subject: Re: [FFmpeg-user] Unable to copy all audio streams

Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:

> ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
>
> I get an error:
> Could not write header for output file #0
> (Incorrect codec parameters?) Operation not permitted.

Complete, uncut console output missing.

Carl Eugen

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

Re: Unable to copy all audio streams

Carl Eugen Hoyos
In reply to this post by albanyeye
Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:


> $ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4

>     Stream #0:2(eng): Subtitle: subrip (default)
>     Metadata:
>       title           : English
>     Stream #0:3(eng): Subtitle: subrip

You cannot mux subrip into mp4, this is not a problem
that can be solved in FFmpeg.
(subrip is not defined in mp4 afaik)

Please do not top-post on this mailing list.

Carl Eugen

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

Re: Unable to copy all audio streams

albanyeye
Thanks Carl.
I am sorry about top post. Not sure what what that is bit I will look into it and avoid it.

You mean just leave out the -scodec part?
Thanks again

Sent from my iPhone

On Nov 25, 2012, at 2:47 PM, Carl Eugen Hoyos <[hidden email]> wrote:

> Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:
>
>
>> $ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
>
>>     Stream #0:2(eng): Subtitle: subrip (default)
>>     Metadata:
>>       title           : English
>>     Stream #0:3(eng): Subtitle: subrip
>
> You cannot mux subrip into mp4, this is not a problem
> that can be solved in FFmpeg.
> (subrip is not defined in mp4 afaik)
>
> Please do not top-post on this mailing list.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to copy all audio streams

Clément Bœsch
In reply to this post by Carl Eugen Hoyos
On Sun, Nov 25, 2012 at 07:47:55PM +0000, Carl Eugen Hoyos wrote:

> Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:
>
>
> > $ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
>
> >     Stream #0:2(eng): Subtitle: subrip (default)
> >     Metadata:
> >       title           : English
> >     Stream #0:3(eng): Subtitle: subrip
>
> You cannot mux subrip into mp4, this is not a problem
> that can be solved in FFmpeg.
> (subrip is not defined in mp4 afaik)
>
You should be able to encode them with -c:s mov_text though.

--
Clément B.

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

attachment0 (501 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to copy all audio streams

Carl Eugen Hoyos
Clément Bœsch <ubitux <at> gmail.com> writes:

> > You cannot mux subrip into mp4, this is not a problem
> > that can be solved in FFmpeg.
> > (subrip is not defined in mp4 afaik)
>
> You should be able to encode them with -c:s mov_text though.

Ticket #1845 indicates that this does not "work" either.
(If "working" for mov is defined as "plays with QuickTime.)

Carl Eugen

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