Changes between Version 43 and Version 44 of StreamingGuide


Ignore:
Timestamp:
Nov 4, 2012, 4:46:30 AM (7 years ago)
Author:
rogerdpack
Comment:

tcp wurking example woot

Legend:

Unmodified
Added
Removed
Modified
  • StreamingGuide

    v43 v44  
    185185  ffmpeg -i INPUT -f mpegts tcp://host:port
    186186
    187 which I would guess will try and (as a client) establish a connection do that host on that port (assuming it has a server waiting for the incoming connection).
    188 
    189 Another option is to use rtp (which by default uses udp) but specify tcp:
    190 
    191   ffmpeg... -rtsp_transport tcp [http://ffmpeg.org/ffmpeg.html#rtsp see here]
    192 
    193 Then you may be able to receive it like this:
    194 
    195  ffplay rtsp://blabla/file?tcp
    196 
    197 or possibly like
    198 
    199   ffmpeg... -rtsp_flags listen [http://ffmpeg.org/ffmpeg.html#rtsp see here]
    200 
    201 ffmpeg also has a "listen" option for rtmp to it may be able to receive "straight" rtmp streams from a single client.
     187which I would guess will try and (as a client) establish a connection do that host on that port (assuming it has a server waiting for the incoming connection).  You could receive it like this:
     188
     189  ffmpeg -i tcp://local_hostname:port?listen
     190
     191Another option is to use rtp (which by default uses udp) but by specifying it use tcp:
     192
     193  ffmpeg -i input -f rtsp -rtsp_transport tcp rtsp://localhost:8888/live.sdp [http://ffmpeg.org/ffmpeg.html#rtsp lists the option]
     194
     195Then you may receive it like this (ffplay or ffmpeg):
     196
     197 ffplay -rtsp_flags listen rtsp://localhost:8888/live.sdp?tcp # ending ?tcp may not be needed -- you will need to start the server up first, before the sending client
     198
     199ffmpeg also has a "listen" option for rtmp so it may be able to receive a "straight" rtmp streams from a single client that way.
    202200
    203201With tcp based streams you can probably use any formatting/muxer, but with udp  you need to be careful and use a muxer that supports 'connecting anytime' like mpegts.