Home > Net >  Live through ffmpeg pipes, ffmpeg start after the completion of the disappeared.
Live through ffmpeg pipes, ffmpeg start after the completion of the disappeared.

Time:11-19

Ffmpeg version N - 99925 - g96443ab4b0 Copyright (c) 2000-2020 the ffmpeg developers
Built with GCC 9.3 win32 (GCC) 20200320
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=--extra-ldflags=-pthread --extra-libs=-lgomp
60.100
libavutil 56. 60.100/56.Libavcodec 58.112.103/58.112.103
64.100
libavformat 58. 64.100/58.11.102
libavdevice 58. 11.102/58.90.100
libavfilter 7. 90.100/7.8.100
libswscale 5. 8.100/5.Libswresample 3. 8.100/3.
8.1008.100
libpostproc 55. 8.100/55.+ 1
Input # 0, rawvideo, from '\ \. \ pipe \ pusher3:
Thread '& lt; No name & gt; '(0 x18fc) have withdrawn, the return value of 0 (0 x0),
Duration: N/A, start: 0.000000, bitrate: 110592 KB/s
Stream # 0-0: Video: rawvideo (BGR [24]/0 x18524742), bgr24, 1280 x720, 110592 KB/s, 5 TBR, 5 TBN, TBC
The Stream mapping:
The Stream # 0-0 - & gt; # 0-0 (rawvideo (native) - & gt; The h264 (libx264))
To stop, Press [q] [?] For help
[libx264 @ 0000011 bf583b1c0] using CPU "capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000011 bf583b1c0] profile Constrained Baseline, the level of 3.1, 4:2:0, 8-bit
[libx264 @ 0000011bf583b1c0] 264 - core 161 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=5 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
The Output # 0, FLV to 'RTMP://192.168.1.202/live/3' :
The Metadata:
Encoder: Lavf58.64.100
Stream 0-0 at # : Video: h264 (libx264) ([7] [0] [0] [0]/0 x0007), yuv420p (TV, progressive), 1280 x720, q=1-1, 5 FPS, 1 k TBN, 5 TBC
The Metadata:
Encoder: Lavc58.112.103 libx264
Side data:
The CPB bitrate Max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[FLV @ 0000011 bf5839700] Failed to update the header with correct duration.
[FLV @ 0000011 bf5839700] Failed to update the header with correct filesize.
Frame=1=0.0 q=20.0 FPS Lsize=406 KB time=00:00:00. 00 bitrate=3322624.0 kbits/s speed=0.0174 x
Video: 405 KB audio: 0 KB subtitle: 0 KB other streams: 0 KB global headers: 0 KB muxing overhead: 0.074937%
[libx264 @ 0000011 bf583b1c0] frame I: 1 Avg QP: 20.00 the size: 414433
[libx264 @ 0000011 bf583b1c0] MB I16. I. 4:100.0% 0.0% 0.0%
[libx264 @ 0000011 bf583b1c0] coded y, uvDC, uvAC intra: 97.5% 89.8% 85.8%
[libx264 @ 0000011 bf583b1c0] i16 v, h, dc, p: 18% 13% 55% 14%
[libx264 @ 0000011 bf583b1c0] i8c dc, h, v, p: 54% 20% 18% 8%
[libx264 @ bf583b1c0] 0000011 KB/s: 16577.32
Print here, ffmpeg. Exe process will you disappear? Can someone help look at what's going on?


 
using System;
Using System. Collections. Concurrent;
Using System. Collections. Generic;
Using System. Diagnostics;
Using System. IO;
Using System. IO. Pipes;
Using System. Linq;
Using System. The Text;
Using System. The Threading;
Using System. The Threading. The Tasks;

The namespace IPClient. Core
{
Public class RtmpPusher
{
Private int _camId;
Private readonly string _ffmpeg_path;
Private readonly string _rtmp_url;
Private ConcurrentQueue
Public RtmpPusher (int camId)
{
Enclosing _camId=camId;
Enclosing _ffmpeg_path=@ "D: \ quickhigh \ ffmpeg \ bin \ ffmpeg exe";
Enclosing _rtmp_url=the string. Format (" RTMP://192.168.1.202/live/{0} ", camId);
String pipeName=the string. Format (pusher "{0}", camId);
Task. Factory. StartNew ((p)=& gt;
{
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related