ffplay在使用toggled -an和-vn选项的HLS流上崩溃

时间:2014-10-31 09:02:45

标签: video ffmpeg performance-testing

当我尝试通过键入

来启动静音(没有音频和视频流)播放HLS(HTTP Live Streaming)
ffplay -an -vn -i "http://localhost:8080/video/find?startTime=
1376716800000&endTime=1376717400000 

我在控制台上收到了下一条错误消息:

ffplay version N-67063-g282c935 Copyright (coffee) 2003-2014 the FFmpeg developers
  built on Oct 20 2014 22:10:09 with gcc 4.9.1 (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-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  8.102 / 56.  8.102
  libavformat    56.  9.101 / 56.  9.101
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  2.100 /  5.  2.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'http://localhost:8080/video/find?startTime=137671
6800000&endTime=1376717400000':
  Duration: 00:01:50.12, start: 1.418722, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 320x240 [
SAR 19:32 DAR 19:24], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 14
7 kb/s
Failed to open file 'http://localhost:8080/video/find?startTime=1376716800000&en
dTime=1376717400000' or configure filtergraph

这个错误或功能是ffplay无法播放没有音频/视频流的视频吗?我需要以编程方式从我的java测试应用程序运行ffplay来查看我的服务的加载。

P.S:我也尝试添加选项" -nodisp -an",但这提供了与上述相同的结果。

1 个答案:

答案 0 :(得分:0)

我有同样的问题,但对于多播

ln -s /dev/null file
ffmpeg -dn -i udp://@224.224.224.224:1234 -f null file 

这对我有用,希望有人觉得它有用。