2012-02-20 125 views
0

我使用FFMPEG在avi容器中录制H.264(640x480 @ 1fps 10秒)。当我在VLC中播放录制的文件时,它只播放第一帧,其余帧不播放。我越来越FFmpeg H264 @ 1fps不工作的AVI录制

主要警告:晚图片跳过ffprobe的(555293> -305)

输出是:

FFprobe version 0.6.2-4:0.6.2-1ubuntu1.1~ppa1~lucid1, Copyright (c) 2007-2010 the Libav developers 
    built on Jan 3 2012 18:16:35 with gcc 4.4.3 
    configuration: --extra-version='4:0.6.2-1ubuntu1.1~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay 
    libavutil  50.15. 1/50.15. 1 
    libavcodec 52.72. 2/52.72. 2 
    libavformat 52.64. 2/52.64. 2 
    libavdevice 52. 2. 0/52. 2. 0 
    libavfilter 1.19. 0/1.19. 0 
    libswscale  0.11. 0/0.11. 0 
    libpostproc 51. 2. 0/51. 2. 0 
[h264 @ 0x9feb230]insane cropping not completely supported, this could look slightly wrong ... 
[avi @ 0x9fea010]max_analyze_duration reached 
Input #0, avi, from 'h2641fps.avi': 
    Metadata: 
    ISFT   : Lavf52.7.0 
    Duration: 00:00:11.00, start: 0.000000, bitrate: 95 kb/s 
    Stream #0.0: Video: h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1 fps, 1 tbr, 1 tbn, 60 tbc 
[h264 @ 0x9feb230]insane cropping not completely supported, this could look slightly wrong ... 
[STREAM] 
index=0 
codec_name=h264 
codec_long_name=H.264/AVC/MPEG-4 AVC/MPEG-4 part 10 
codec_type=video 
codec_time_base=1/60 
codec_tag_string=H264 
codec_tag=0x34363248 
width=640 
height=480 
has_b_frames=0 
sample_aspect_ratio=1:1 
display_aspect_ratio=4:3 
pix_fmt=yuv420p 
r_frame_rate=1/1 
avg_frame_rate=1/1 
time_base=1/1 
start_time=0:00:00.000000 
duration=0:00:11.000000 
nb_frames=11 
[/STREAM] 

有什么我做错了吗?相同的代码工作完美的用于帧率上述3

+0

任何指针将不胜感激。 – Alam 2012-02-20 08:28:27

+0

你可以玩ffplay吗? – 2012-02-20 08:57:02

+0

@Alam你使用了什么命令行? – sashoalm 2012-02-20 10:58:17

回答

0

我回答我的问题,它可以帮助别人遇到类似问题:

VLC播放,当我增加缓存大小从300毫秒至900毫秒流。我不确定它是否正确。由于avi头部具有帧率的信息,因此VLC应该等待至少900或1000ms用于下一帧。 “延迟图片跳过”应在1000毫秒后出现。