我想在 FFmpeg 版本 0.7.15 中使用 AAC 和 H264 编码将 flv 视频文件转换为 m3u8 容器。谁可以帮我这个事?
我使用此命令转换为 m3u8 格式,但它会引发错误:
命令: ffmpeg -i sample.flv -b 1104k -s 320x240 -vcodec libx264 -ab 32 -ar 24000 -acodec libfaac final_video.m3u8
错误:
ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 22 2013 07:22:31 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[libspeex @ 0x93e6c60] Missing Speex header, assuming defaults.
[flv @ 0x93e25e0] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 30.00 (60/2)
Input #0, flv, from 'sample.flv':
Metadata:
duration : 60
creationdate : Wed Apr 10 17:13:05
Duration: 00:01:00.05, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264 (Main), yuv420p, 320x240 [PAR 1:1 DAR 4:3], 30 tbr, 1k tbn, 60 tbc
Stream #0.1: Audio: libspeex, 16000 Hz, 1 channels, s16
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[NULL @ 0x93e3840] Unable to find a suitable output format for 'final_video.m3u8'
final_video.m3u8: Invalid data found when processing input