[FFmpeg-user] No sound after converting a flv to an mp4

gfmonk gary at gurudental.com
Tue Sep 9 01:22:47 CEST 2014


I am trying to convert .flv files to mp4 files. In some cases I get the sound
but in most I do not. I have tried different command line options based some
other posts on the internet, but none of them have worked.

My command line is... 

ffmpeg -i in.flv -ar 22050 -c:v libx264 -strict -2 -c:a aac  out.mp4

The log...

ffmpeg version N-65557-ga8592db Copyright (c) 2000-2014 the FFmpeg
developers
  built on Aug 12 2014 22:09:32 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-
libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54.  1.100 / 54.  1.100
  libavcodec     56.  0.100 / 56.  0.100
  libavformat    56.  0.100 / 56.  0.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.100 /  5.  0.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  0.100 /  1.  0.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, flv, from 'in.flv':
  Metadata:
    creationdate    : Fri Oct 26 09:21:47 2007
                    :
  Duration: 00:00:50.33, start: 0.000000, bitrate: 211 kb/s
    Stream #0:0: Video: flv1, yuv420p, 400x300, 131 kb/s, 30 fps, 30 tbr, 1k
tbn
, 1k tbc
File 'out.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0000000004525da0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX
[libx264 @ 0000000004525da0] profile High, level 2.1
[libx264 @ 0000000004525da0] 264 - core 142 r2453 ea0ca51 - H.264/MPEG-4 AVC
cod
ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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_pski
p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0
dec
imate=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=2 keyint=250
keyint_min=
25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.
60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    creationdate    : Fri Oct 26 09:21:47 2007
                    :
    encoder         : Lavf56.0.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
400x30
0, q=-1--1, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.0.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=  334 fps=0.0 q=29.0 size=     279kB time=00:00:09.20 bitrate=
248.6kbits/
frame=  589 fps=589 q=29.0 size=     561kB time=00:00:17.70 bitrate=
259.4kbits/
frame=  867 fps=578 q=29.0 size=     845kB time=00:00:26.96 bitrate=
256.7kbits/
frame= 1191 fps=595 q=29.0 size=    1026kB time=00:00:37.76 bitrate=
222.5kbits/
frame= 1510 fps=595 q=-1.0 Lsize=    1242kB time=00:00:50.26 bitrate=
202.4kbits
/s
video:1230kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 0.964884%
[libx264 @ 0000000004525da0] frame I:7     Avg QP:17.23  size: 10160
[libx264 @ 0000000004525da0] frame P:1100  Avg QP:22.45  size:  1002
[libx264 @ 0000000004525da0] frame B:403   Avg QP:26.86  size:   213
[libx264 @ 0000000004525da0] consecutive B-frames: 64.4%  0.0%  0.4% 35.2%
[libx264 @ 0000000004525da0] mb I  I16..4: 22.3% 63.9% 13.8%
[libx264 @ 0000000004525da0] mb P  I16..4:  0.2%  1.2%  0.1%  P16..4: 18.9% 
5.9
%  4.2%  0.0%  0.0%    skip:69.4%
[libx264 @ 0000000004525da0] mb B  I16..4:  0.1%  0.3%  0.0%  B16..8: 12.1% 
1.5
%  0.4%  direct: 0.3%  skip:85.4%  L0:53.7% L1:40.4% BI: 5.9%
[libx264 @ 0000000004525da0] 8x8 transform intra:73.9% inter:81.2%
[libx264 @ 0000000004525da0] coded y,uvDC,uvAC intra: 63.2% 62.9% 26.8%
inter: 7
.8% 7.2% 1.3%
[libx264 @ 0000000004525da0] i16 v,h,dc,p: 51% 11% 31%  7%
[libx264 @ 0000000004525da0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 14% 44%  4% 
3%
 4%  3%  3%  3%
[libx264 @ 0000000004525da0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 18% 15%  4% 
8%
 7%  6%  4%  4%
[libx264 @ 0000000004525da0] i8c dc,h,v,p: 43% 25% 28%  5%
[libx264 @ 0000000004525da0] Weighted P-Frames: Y:0.1% UV:0.1%
[libx264 @ 0000000004525da0] ref P L0: 75.3% 10.9%  9.0%  4.7%  0.0%
[libx264 @ 0000000004525da0] ref B L0: 86.8%  9.8%  3.4%
[libx264 @ 0000000004525da0] ref B L1: 96.1%  3.9%
[libx264 @ 0000000004525da0] kb/s:200.11

Thanks for the help, Gary



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-sound-after-converting-a-flv-to-an-mp4-tp4667249.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list