Thanks for Michael's command line.let me explain my problem more detail.Sorry 
for that I do not make the problem clear(my poor english :(...). I will have 
hundres of cameras to monitor.all the monitor report it's video,audio and other 
information to  my server via tcp connection.I filter the video message and 
combine the messages together.Now I want to encode the stream to nginx+rtmp via 
ffmpeg.Maybe I can first save it to file.Then use ffmpeg to send it.But I want 
to seek other better way to handle the video stream. 
Hope I make my problem clear ;P
Thanks,
zhangkai
2018-07-16


From:Ярослав Клейно<[email protected]>
Date:2018-07-15 01:43
Subject:Re: [FFmpeg-user] how ffmpeg use network streaming as input?
To:"FFmpeg user questions"<[email protected]>
Cc:

create shortcut to batch file. 
when you running bat file using shortcut, you can see bat file name in 
taskbar. 

2018-07-14 4:34 GMT+03:00 Michael Shaffer <[email protected]>: 

> Hi, I'm not exactly sure what problem you're having. However I am streaming 
> from IP cameras to youtube live. This is the command I'm using. Maybe this 
> will help you.. 
> 
> c:\ffmpeg\bin\ffmpeg3.exe -re -rtsp_transport tcp -i "rtsp:// 
> admin:[email protected]:554/VideoInput/1/h264/1" -f lavfi -f dshow 
> -rtbufsize 2000M -thread_queue_size 5096 -i audio="virtual-audio-capturer" 
> -c:a libmp3lame -ab 128k -ar 44100 -c:v copy -threads 0 -bufsize 512k -f 
> flv "rtmp://a.rtmp.youtube.com/live2/7ddp-1234-5678-f3ff" 
> 
> I have six cameras total. I renamed ffmpeg.exe to ffmpeg1.exe, ffmpeg2.exe, 
> ffmpeg3.exe, ffmpeg4.exe, ffmpeg5.exe and ffmpeg6.exe. This allows me to 
> terminate and restart each camera individually by looking at their process 
> name (in Windows 10). I made a separate program in C# that looks at the 
> bandwidth being used and determines if one of the processes has locked up. 
> It then restarts all of them. 
> 
> 
> 
> On Fri, Jul 13, 2018 at 3:07 AM, zhangkai.gis <[email protected]> 
> wrote: 
> 
> > Hi, 
> >      I am a newbie to ffmpeg.I want ffmpeg to convert H.264 stream to 
> > rtmp.I googled it.But I always find regular file as ffmpeg's input.but my 
> > input is a stream,the stream is H.264's I frame,P frame.How can I use the 
> > stream as ffmpeg's input? 
> >      PS: I have many device cameras.these cameras send its video and 
> audio 
> > to my server through RTP. I parse the packages and recollect it to 
> H.264's 
> > Frame.Then I want to send the network stream to media 
> server(nginx+rtmp).So 
> > I have the problem above.Any good ideas? 
> > 
> > Thanks in advance 
> > zhangkai 
> > 2018-7-13 
> > _______________________________________________ 
> > ffmpeg-user mailing list 
> > [email protected] 
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> > 
> > To unsubscribe, visit link above, or email 
> > [email protected] with subject "unsubscribe". 
> _______________________________________________ 
> ffmpeg-user mailing list 
> [email protected] 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> To unsubscribe, visit link above, or email 
> [email protected] with subject "unsubscribe". 
> 
_______________________________________________ 
ffmpeg-user mailing list 
[email protected] 
http://ffmpeg.org/mailman/listinfo/ffmpeg-user 

To unsubscribe, visit link above, or email 
[email protected] with subject "unsubscribe". 
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to