在ffmpeg中写入管道的问题

时间:2018-06-28 08:01:11

标签: windows ffmpeg video-streaming windows-server-2016

我已经编写了使用FFMPEG进行转码的流服务器。 [StreamServer2 v.1.5]

它的工作方式是,我通过一个控制通道告诉DVR打开流,当流打开时,DVR将以sdp文件或sdp文件的信息进行响应。 当我在Windows 10计算机上运行StreamServer2时,此方法起作用,当我在2016服务器上运行它时,byt出现错误,提示:Output file #0 does not contain any stream

我在Windows 10计算机上工作,在创建控制通道之前,我还具有旧版本的StreamServer2;就像您通常那样选择RTSP流,例如调用rtsp url,并且当前正在服务器2008R2环境中实时运行。

我们确实更改了获取流的方式的原因是,我们拥有一个新的系统,其中DVR的IP地址是动态且不可预测的。

所以我希望有人可以帮助我找出为什么它在Windows Server 2016上不起作用

FFMPG报告文件

ffmpeg started on 2018-06-27 at 13:06:51
Report written to "ffmpeg-20180627-130651.log"
Command line:
"E:\\r2pPrograms\\StreamServer2\\ffmpeg.exe" -stdin -y -loglevel info -report -protocol_whitelist file,udp,rtp -i 8936021605650268160_37.sdp -f mpeg1video -g 52 -movflags frag_keyframe+empty_moov -b:v 64k -q 5 -an -
ffmpeg version N-91024-g293a6e8332 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 18.100 / 56. 18.100
  libavcodec     58. 19.101 / 58. 19.101
  libavformat    58. 13.102 / 58. 13.102
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 21.100 /  7. 21.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Splitting the commandline.
Reading option '-stdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument '1'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'info'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,udp,rtp'.
Reading option '-i' ... matched as input url with argument '8936021605650268160_37.sdp'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'mpeg1video'.
Reading option '-g' ... matched as AVOption 'g' with argument '52'.
Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '64k'.
Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '5'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option stdin (enable or disable interaction on standard input) with argument 1.
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument info.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url 8936021605650268160_37.sdp.
Successfully parsed a group of options.
Opening an input file: 8936021605650268160_37.sdp.
[NULL @ 000001484256c1c0] Opening '8936021605650268160_37.sdp' for reading
[sdp @ 000001484256c1c0] Format sdp probed with size=2048 and score=50
[sdp @ 000001484256c1c0] video codec set to: h264
[udp @ 0000014842572700] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000014842572700] end receive buffer size reported is 65536
[udp @ 000001484258f140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 000001484258f140] end receive buffer size reported is 65536
[sdp @ 000001484256c1c0] setting jitter buffer size to 500
[sdp @ 000001484256c1c0] Before avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 nb_streams:1
[sdp @ 000001484256c1c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[sdp @ 000001484256c1c0] After avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 frames:0
Input #0, sdp, from '8936021605650268160_37.sdp':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
Successfully opened the file.
Parsing a group of options: output url -.
Applying option f (force format) with argument mpeg1video.
Applying option b:v (video bitrate (please use -b:v)) with argument 64k.
Applying option q (use fixed quality scale (VBR)) with argument 5.
Applying option an (disable audio) with argument 1.
Successfully parsed a group of options.
Opening an output file: -.
Output #0, mpeg1video, to 'pipe:':
Output file #0 does not contain any stream
[AVIOContext @ 0000014842574b80] Statistics: 152 bytes read, 0 seeks

0 个答案:

没有答案