[FFmpeg-devel] Audio gets cut off
Ferenc Deak
ferenc.deak
Mon May 3 11:43:11 CEST 2010
Hi,
I am segmenting a live stream into 10 second chunks (this is the master
file) and the master file is being converted using ffmpeg into other
bitrates using the command line below. Now, here comes a strange thing:
the audio in the converted file is being cut off from the last 2
seconds, but only if I play it on the iphone or view it with avidemux.
if I play it with the ffplay, the sound seems to be good.
The sample mentioned below (44_master-00034.ts) was uploaded to the ftp
site (upload.ffmpeg.org)
here is the command line and ffmpeg output:
/usr/local/bin/ffmpeg -i 44_master-00034.ts -b 100000 -f mpegts -acodec
libfaac -ar 48000 -ab 64k -vcodec libx264 -flags +loop -cmp +chroma
-subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25
-sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k
-rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level
30 -aspect 320:240 -g 30 -s 320x240 44x_100-00034.ts
FFmpeg version SVN-r20900, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on May 3 2010 09:48:34 with gcc 4.4.3 20100127 (Red Hat 4.4.3-4)
configuration: --enable-postproc --enable-libopencore-amrwb
--enable-libfaad --enable-libfaac --enable-pthreads --enable-gpl
--enable-libxvid --enable-libmp3lame --enable-libvorbis
--enable-libopencore-amrnb --enable-libx264 --enable-shared
--enable-nonfree --enable-version3 --enable-libtheora
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.43. 0 / 52.43. 0
libavformat 52.44. 0 / 52.44. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 2 / 0. 7. 2
libpostproc 51. 2. 0 / 51. 2. 0
[mpegts @ 0x1e123c0]max_analyze_duration reached
Seems stream 1 codec frame rate differs from container frame rate: 50.00
(50/1) -> 25.00 (25/1)
Input #0, mpegts, from '44_master-00034.ts':
Duration: 00:00:10.74, start: 74659.278756 (74659278756), bitrate:
964 kb/s
Program 1
Stream #0.0[0x100]: Audio: aac, 44100 Hz, 2 channels, s16, 112 kb/s
Stream #0.1[0x101]: Video: h264, yuv420p, 320x240, 25 fps, 25 tbr,
90k tbn, 50 tbc
[libx264 @ 0x1e2dd60]using SAR=1/1
[libx264 @ 0x1e2dd60]using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x1e2dd60]max bitrate less than average bitrate, ignored.
[libx264 @ 0x1e2dd60]profile Baseline, level 3.0
Output #0, mpegts, to '44x_100-00034.ts':
Stream #0.0: Video: libx264, yuv420p, 320x240 [PAR 1:1 DAR 4:3],
q=10-51, 100 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: aac, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[aac @ 0x1e2eb70]channel element 3.7 is not allocated
Error while decoding stream #0.0
[aac @ 0x1e2eb70]More than one AAC RDB per ADTS frame is not
implemented. Update your FFmpeg version to the newest one from SVN. If
the problem still occurs, it means that your file has a feature which
has not been implemented.
[aac @ 0x1e2eb70]Error decoding AAC frame header.
Error while decoding stream #0.0
[aac @ 0x1e2eb70]Prediction is not allowed in AAC-LC.
Error while decoding stream #0.0
[aac @ 0x1e2eb70]Number of bands (37) exceeds limit (23).
Error while decoding stream #0.0
[aac @ 0x1e2eb70]Predictor bit set but LTP is not implemented. Update
your FFmpeg version to the newest one from SVN. If the problem still
occurs, it means that your file has a feature which has not been
implemented.If you want to help, upload a sample of this file to
ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel
mailing list.
Error while decoding stream #0.0
[aac @ 0x1e2eb70]channel element 3.15 is not allocated
Error while decoding stream #0.0
[aac @ 0x1e2eb70]More than one AAC RDB per ADTS frame is not
implemented. Update your FFmpeg version to the newest one from SVN. If
the problem still occurs, it means that your file has a feature which
has not been implemented.
[aac @ 0x1e2eb70]Error decoding AAC frame header.
Error while decoding stream #0.0
[aac @ 0x1e2eb70]channel element 1.15 is not allocated
Error while decoding stream #0.0
[mpegts @ 0x1e2f7c0]dts < pcr, TS is invalid
Last message repeated 20 times
[h264 @ 0x1e2f390]ref 19 overflow
[h264 @ 0x1e2f390]error while decoding MB 9 5
[h264 @ 0x1e2f390]concealing 240 DC, 240 AC, 240 MV errors
[mpegts @ 0x1e2f7c0]dts < pcr, TS is invalid
Last message repeated 243 times 151kB time=4.99 bitrate=
248.0kbits/s dup=3 drop=0
[aac @ 0x1e2eb70]channel element 0.0 is not allocated
Error while decoding stream #0.0
[h264 @ 0x1e2f390]missing picture in access unit
[mpegts @ 0x1e2f7c0]dts < pcr, TS is invalid
frame= 269 fps= 0 q=-1.0 Lsize= 299kB time=8.90 bitrate=
275.4kbits/s dup=3 drop=0
video:146kB audio:70kB global headers:0kB muxing overhead 38.792232%
Last message repeated 66 times
[libx264 @ 0x1e2dd60]frame I:10 Avg QP:30.09 size: 4785
[libx264 @ 0x1e2dd60]frame P:259 Avg QP:33.31 size: 392
[libx264 @ 0x1e2dd60]mb I I16..4: 47.7% 0.0% 52.3%
[libx264 @ 0x1e2dd60]mb P I16..4: 4.3% 0.0% 0.0% P16..4: 26.1%
0.0% 0.0% 0.0% 0.0% skip:69.6%
[libx264 @ 0x1e2dd60]final ratefactor: 31.49
[libx264 @ 0x1e2dd60]coded y,uvDC,uvAC intra: 40.9% 68.3% 37.0% inter:
5.0% 5.4% 0.4%
[libx264 @ 0x1e2dd60]i16 v,h,dc,p: 25% 40% 13% 22%
[libx264 @ 0x1e2dd60]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 25% 14% 6% 6%
6% 6% 6% 5%
[libx264 @ 0x1e2dd60]kb/s:111.05
Regards,
Ferenc
More information about the ffmpeg-devel
mailing list