Hi,
I managed to make ffmpeg part, evrything is correct once I open udp stream with ffplay.
I try several times to relay /reencapsulate udp stream having VLC as streaming server over http protocol /port.
While ffmpeg encodes in the background , the problem is that vlc doent even want to show the stream ex: udp://127.0.0.1:1234 while ffplay works.
Any sugestion on how to match ffmpeg as encoder and VLC as a server ?
Regards.
+ Reply to Thread
Results 1 to 7 of 7
-
-
I am answering from another location now,
but this is the example of the ffmpeg line I am using:
ffmpeg -f dshow -i video="input card":audio="input card auidio" -c:v libx264 -preset ultrafast -tune zerolatency -b:v 800k -c:a libvo_aacenc -b:a 128k -f mpegts udp://127.0.0.1:1234
I could provide log from VLC latter on.
Regards. -
Hmm. No I don't know why it wont work with vlc.
I have only used vlc to stream and you can use similar settings as ffmpeg...it should also work with capture cards, see https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/ . But you maybe have tried that. -
I thought so. You can also ask or search in the vlc forum, https://forum.videolan.org/
Let us know if you find a working solution. -
Well,
I got this on vlan forum:
Not sure vlc - works on Windows.HTML Code:https://trac.ffmpeg.org/wiki/StreamingGuide
piping method with the two different ways for passing the arguments to the VLC:
Code:ffmpeg -re -i "clip.mp4" -c:v copy -bsf:v h264_mp4toannexb -f mpegts - | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" ":sout{dst=http{mux=ts,dst=:10000/}:sout-keep" -
Code:fmpeg -re -i "clip.mp4" -c:v copy -bsf:v h264_mp4toannexb -f mpegts - | "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv - --sout-tandard-access=http --sout-standard-mux=ts --sout-standard-dst="localhost:10000/" --sout-keep
fd://0
I suppose that second part doesn't work possibly due to the:
- inexistent/unspecified buffers,
- possibility that transcoding module must be invoked in this kind of flow (which I don't need)
with the second method using looback interface I managed to make it:
ffmpeg command line ends/send transport stream to:
Code:-f mpegts udp://127.0.0.1:9000
Code:VLC.exe udp://@:9000 :sout={dst=http{mux=ts,dst=:10000/}:sout-keep
I would really like to discuss further how to make the first method working (one with piping). Just for fun...
Regards.Last edited by logicom; 23rd Feb 2015 at 07:09.