[FFmpeg-user] ref: My mov file has no audio on players other than VLC

Paul Wang paul at teknique.com
Sun Apr 10 23:56:54 CEST 2011


Hi, all,



I am new to ffmpeg.

I am using the ffmpeg to write my h264 and AAC stream into the mov
container.

My AAC stream is not from ffmpeg, but from a third-party. It works fine,
when I write the stream onto a .AAC file without using ffmpeg, it can be
played by Quicktime, VLC and media player etc.

When I am using ffmpeg to put the video and audio together into a .mov file,
the audio is lost on most of players other than VLC.

My code is most likely as output_example.c with the ffmpeg, only without
calling avcodec_encode_audio().



On VLC, it works fine, but has some warnings.  I attached the message of
verbosity level 2 for the audio (video disabled) as the following:

……

*mp4** warning: *unknown box type (incompletely loaded)

*mp4** debug: *read box: "soun" in stsd channel 2 sample size 16 sample rate
48000.000000

*mp4** debug: *read box: "stsd" entry-count 1

*mp4** debug: *found Box: stts size 24

*mp4** debug: *read box: "stts" entry-count 1

*mp4** debug: *found Box: stsc size 28

*mp4** debug: *read box: "stsc" entry-count 1

*mp4** debug: *found Box: stsz size 1084

*mp4** debug: *read box: "stsz" sample-size 0 sample-count 266

*mp4** debug: *found Box: stco size 1080

*mp4** debug: *read box: "co64" entry-count 266

*mp4** debug: *found Box: udta size 31

*mp4** debug: *found Box: cenc size 23

*mp4** debug: *read box: "cenc" text=`Lavf52.64.2'

*mp4** debug: *dumping root Box "root"

*mp4** debug: *| + ftyp size 20

*mp4** debug: *| + wide size 8

*mp4** debug: *| + mdat size 90806

*mp4** debug: *| + moov size 2807

*mp4** debug: *| | + mvhd size 108

*mp4** debug: *| | + trak size 2660

*mp4** debug: *| | | + tkhd size 92

*mp4** debug: *| | | + mdia size 2560

*mp4** debug: *| | | | + mdhd size 32

*mp4** debug: *| | | | + hdlr size 45

*mp4** debug: *| | | | + minf size 2475

*mp4** debug: *| | | | | + smhd size 16

*mp4** debug: *| | | | | + hdlr size 44

*mp4** debug: *| | | | | + dinf size 36

*mp4** debug: *| | | | | | + dref size 28

*mp4** debug: *| | | | | | | + url size 12

*mp4** debug: *| | | | | + stbl size 2371

*mp4** debug: *| | | | | | + stsd size 147

*mp4** debug: *| | | | | | | + mp4a size 131

*mp4** debug: *| | | | | | | | + wave size 79

*mp4** debug: *| | | | | | | | | + frma size 12

*mp4** debug: *| | | | | | | | | + mp4a size 12

*qt4** debug: *Updating the geometry

*mp4** debug: *| | | | | | | | | + esds size 39

*mp4** debug: *| | | | | | | | | + size 8

*qt4** debug: *Updating the geometry

*mp4** debug: *| | | | | | + stts size 24

*mp4** debug: *| | | | | | + stsc size 28

*mp4** debug: *| | | | | | + stsz size 1084

*mp4** debug: *| | | | | | + stco size 1080

*mp4** debug: *| | + udta size 31

*mp4** debug: *| | | + cenc size 23

*mp4** debug: *unrecognized major file specification (qt ).

*mp4** debug: *found 1 tracks

*mp4** debug: *track[Id 0x1] read 266 chunk

*mp4** debug: *track[Id 0x1] read 266 samples length:5s

*main** debug: *selecting program id=0

*mp4** debug: *adding track[Id 0x1] audio (enable) language en

*main** debug: *using demux module "mp4"

*main** debug: *TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls
(Avg 3.000 ms)

*mp4** warning: *control query 14 unimplemented

*mp4** warning: *DEMUX_GET_FPS unimplemented !!

*main** debug: *looking for a subtitle file in I:\

*main** debug: *looking for decoder module: 35 candidates

*main** debug: *using decoder module "faad"

*main** debug: *TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls
(Avg 0.000 ms)

*main** debug: *thread (decoder) created at priority 2
(../.././src/input/decoder.c:315)

*main** debug: *thread started

*main** debug: *`I:\AAA.mov' successfully opened

….



When played with mplayer, I had  no sound, but the following errors:

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

FAAD: Failed to decode frame: Invalid number of channels

….



Thanks in advance for any help .



Paul Wang.


More information about the ffmpeg-user mailing list