1

I am using the Ffmpeg library in an Android application I am writing. I have written the code to open up a local file and decode that using avformat_open_input(). However I need to use Ffmpeg to read in a video stream over TCP. I have found a few things within Ffmpeg such as libavcodec/tcp.h but I can't establish how to actually open up a TCP stream into the decoder.

Any suggestions would be really appreciated.

JConway
  • 569
  • 5
  • 13

1 Answers1

1

If you are not able to connect directly through the ffmpeg api you might be able to set up a connection externally and write the inbound data to a pipe. The ffmpeg library should be able to read from this pipe as you would a normal file.

See this discussion regarding how to set up the pipe.

Community
  • 1
  • 1
ezpz
  • 11,767
  • 6
  • 38
  • 39