[FFmpeg-user] Audio stream missing

John Pitney john at pitney.org
Sat Dec 31 04:16:04 CET 2011


I hope I'm not missing something obvious here, but I can't see why the
output from the ffmpeg encode below has no audio channel included.
I've run ffmpeg encodes with similar arguments but with other input
files, and I got audio streams with those.

What am I doing wrong that causes me to get no audio?

--- begin paste ---

$ ffmpeg -i dvd_rip.vob -vcodec libx264 -preset fast -crf 22 -threads
8 -acodec libfaac -ac 2 -t 60 -ab 128k -y audiotest.mp4
ffmpeg version N-36295-gb6ffcee, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 30 2011 20:33:51 with gcc 4.6.1 20110908 (Red Hat 4.6.1-9)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-nonfree
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 49.100 / 53. 49.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 55.100 /  2. 55.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[mpeg2video @ 0x20b0c60] ac-tex damaged at 11 7
[mpeg2video @ 0x20b0c60] Warning MVs not available
[mpeg2video @ 0x20b0c60] concealing 1035 DC, 1035 AC, 1035 MV errors
[mpeg @ 0x20aa7a0] max_analyze_duration 5000000 reached at 5024000

Seems stream 0 codec frame rate differs from container frame rate:
59.94 (60000/1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'dvd_rip.vob':
  Duration: 01:02:07.82, start: 0.280633, bitrate: 668 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480
[SAR 32:27 DAR 16:9], 9800 kb/s, 23.94 fps, 59.94 tbr, 90k tbn, 59.94
tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
[buffer @ 0x20b2d80] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:32/27
sws_param:
[libx264 @ 0x218acc0] using SAR=32/27
[libx264 @ 0x218acc0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2 AVX
[libx264 @ 0x218acc0] profile High, level 3.1
[libx264 @ 0x218acc0] 264 - core 120 r2120 0c7dab9 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html -
options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=8 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf
mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to 'audiotest.mp4':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x480
[SAR 32:27 DAR 16:9], q=-1--1, 60k tbn, 59.94 tbc
    Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2
channels, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, [?] for help
[mpeg2video @ 0x20b0c60] ac-tex damaged at 11 7
[mpeg2video @ 0x20b0c60] Warning MVs not available
[mpeg2video @ 0x20b0c60] concealing 1035 DC, 1035 AC, 1035 MV errors
    Last message repeated 1 times
frame= 3596 fps=264 q=30.0 Lsize=   10053kB time=00:00:00.00 bitrate=
 0.0kbits/s dup=2165 drop=0
video:10017kB audio:0kB global headers:0kB muxing overhead 0.352582%
[libx264 @ 0x218acc0] frame I:22    Avg QP:18.50  size: 30071
[libx264 @ 0x218acc0] frame P:2227  Avg QP:25.46  size:  4225
[libx264 @ 0x218acc0] frame B:1347  Avg QP:28.02  size:   138
[libx264 @ 0x218acc0] consecutive B-frames: 44.1% 14.6%  9.6% 31.7%
[libx264 @ 0x218acc0] mb I  I16..4: 29.1% 57.8% 13.1%
[libx264 @ 0x218acc0] mb P  I16..4:  0.5%  1.6%  0.4%  P16..4: 22.0%
9.1%  5.8%  0.0%  0.0%    skip:60.6%
[libx264 @ 0x218acc0] mb B  I16..4:  0.1%  0.2%  0.0%  B16..8:  5.3%
0.2%  0.0%  direct: 0.5%  skip:93.6%  L0:60.2% L1:35.3% BI: 4.5%
[libx264 @ 0x218acc0] 8x8 transform intra:63.2% inter:69.3%
[libx264 @ 0x218acc0] coded y,uvDC,uvAC intra: 63.0% 60.3% 20.9%
inter: 10.1% 7.6% 0.2%
[libx264 @ 0x218acc0] i16 v,h,dc,p: 55% 18% 10% 17%
[libx264 @ 0x218acc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 11% 17%  5%
6%  9%  6%  9%  7%
[libx264 @ 0x218acc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 23% 13%  5%
7%  9%  5%  7%  4%
[libx264 @ 0x218acc0] i8c dc,h,v,p: 57% 15% 23%  5%
[libx264 @ 0x218acc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x218acc0] ref P L0: 86.0% 14.0%
[libx264 @ 0x218acc0] ref B L0: 94.5%  5.5%
[libx264 @ 0x218acc0] ref B L1: 99.5%  0.5%
[libx264 @ 0x218acc0] kb/s:1367.76

$ ffprobe dvd_rip.vob
ffprobe version N-36295-gb6ffcee, Copyright (c) 2007-2011 the FFmpeg developers
  built on Dec 30 2011 20:33:51 with gcc 4.6.1 20110908 (Red Hat 4.6.1-9)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-nonfree
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 49.100 / 53. 49.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 55.100 /  2. 55.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
[mpeg2video @ 0x33cdd80] ac-tex damaged at 11 7
[mpeg2video @ 0x33cdd80] Warning MVs not available
[mpeg2video @ 0x33cdd80] concealing 1035 DC, 1035 AC, 1035 MV errors
[mpeg @ 0x33c78e0] max_analyze_duration 5000000 reached at 5024000
Input #0, mpeg, from 'dvd_rip.vob':
  Duration: 01:02:07.82, start: 0.280633, bitrate: 668 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480
[SAR 32:27 DAR 16:9], 9800 kb/s, 23.94 fps, 59.94 tbr, 90k tbn, 59.94
tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s
    Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s

$ ffprobe audiotest.mp4
ffprobe version N-36295-gb6ffcee, Copyright (c) 2007-2011 the FFmpeg developers
  built on Dec 30 2011 20:33:51 with gcc 4.6.1 20110908 (Red Hat 4.6.1-9)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libx264 --enable-nonfree
  libavutil      51. 33.100 / 51. 33.100
  libavcodec     53. 49.100 / 53. 49.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 55.100 /  2. 55.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  5.100 /  0.  5.100
  libpostproc    51.  2.100 / 51.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'audiotest.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.29.100
  Duration: 00:00:59.99, start: 0.000000, bitrate: 1372 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
720x480 [SAR 32:27 DAR 16:9], 1367 kb/s, 59.94 fps, 59.94 tbr, 60k
tbn, 119.88 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    :
--- end paste ---

Thanks,
John


More information about the ffmpeg-user mailing list