VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    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.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    How does your ffmpeg command line looks like?
    Any error in vlc? Check the vlc messages(Under tools).
    Quote Quote  
  3. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    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
    VlC did not pop with any error, it just doesn't willing to show the content neither to re-stream it, it is idle.

    I could provide log from VLC latter on.

    Regards.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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.
    Quote Quote  
  5. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    I try to capture transcode and stream from VLC and it works. However that was not the point.
    I wanted ffmpeg as encoder while relaying this stream over http, practicaly using VLC only as a streaming server.

    Regards.
    Last edited by logicom; 18th Feb 2015 at 07:17.
    Quote Quote  
  6. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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.
    Quote Quote  
  7. Member logicom's Avatar
    Join Date
    Oct 2008
    Location
    Serbia
    Search Comp PM
    Well,

    I got this on vlan forum:
    Not sure vlc - works on Windows.
    however on
    HTML Code:
    https://trac.ffmpeg.org/wiki/StreamingGuide
    it is mentioned that this kind of thing is possible so I have been trying the following:

    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
    VLC opens the stream trough the file descriptor interface
    fd://0
    and shows it.

    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
    I am calling VLC from bat file:
    Code:
    VLC.exe udp://@:9000 :sout={dst=http{mux=ts,dst=:10000/}:sout-keep
    and on port 10000 I am getting stream relayed (pull mode) but over http protocol.

    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.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!