[FFmpeg-user] can not add audio code/fourcc

Moritz Barsnick barsnick at gmx.net
Tue Feb 17 11:22:41 CET 2015

On Tue, Feb 17, 2015 at 11:01:15 +0100, Sebastien WILLEMIJNS wrote:
> > This part of Carl Eugen's request you do understand?:
> > > Command line and complete, uncut console output missing.
> no sorry.

Carl Eugen asked you to provide not only the complete command line you
tried, but also the complete, uncut console output from the command.

Getting back to your question:

> how to change the 0x00FF code on the audio part of this movie extract ?
> i want to see "mp4a" data instead of 0x00FF
> i have tried to extract audio before
> ffmpeg.exe -i video.3gp -c:v copy -c:a aac -strict experimental %dir%\son.aac -atag mp4a

What were you expecting? How did you check the resulting file? What did
you get?

I can point out several errors at this point (but still want your
complete, uncut output!)

- The command line element "-atag mp4a" is not interpreted, as you put
  it after the output file name. Your ffmpeg should have warned you as
  "Trailing options were found on the commandline."
- Copying the video stream with "-c:v copy" into an ADTS file (which
  ffmpeg automatically assumes as format when you give the output file
  the suffix ".aac") will result in an error, because video cannot be
  mapped into that file format. You are probably lucky because your 3GP
  file did not contain video in the first place. Use "-vn" (no video)
  or just omit "-c:v xxx".
- You're not just "extracting" audio, you are converting it. Without
  your complete, uncut console output, we can't say whether this is a
  good or a bad idea. Depending on what you were expecting.


More information about the ffmpeg-user mailing list