[Live-devel] [Need help for live streaming changed for H264]

Ross Finlayson finlayson at live555.com
Thu Mar 15 11:27:27 PDT 2012


> I have gone to the link you have mentioned
> Yes. The easiest way to do this is to change the appropriate "test*Streamer.cpp" file to read from "stdin" (instead of "test.*"), and then pipe the output of your encoder to (your modified) "test*Streamer" application.
>  
> I have changed   char const* inputFileName = "test.264";
>  
> to      char const* inputFileName = "stdin";                        but does not play.

You apparently do not understand what 'stdin' and 'pipe' mean.  This is something that all Unix (including Linux) developers (and anyone who uses this software) should know.

Is your FIFO accessible as a named file?  If so, you should be able to access the fifo by changing 'inputFileName' from "test.264" to the file name of your FIFO.

Alternatively, is your FIFO an application that outputs to 'stdout'?  If so, then change 'inputFileName' to "stdin", and pipe your FIFO application to "testH264VideoStreamer".  (Once again, if you don't understand what 'stdout', 'stdin', and 'pipe' mean, then you should not be using Linux, or our software.)

If neither of these are true, then you will need to write your own "FramedSource" subclass that implements your FIFO, delivering NAL units one-at-a-time.  I suggest that you use our "DeviceSource" code (in "liveMedia") as a model for this.  Also, because you will be delivering discrete NAL units, rather than a byte stream, you will need to change the "testH264VideoStreamer" code to use a "H264VideoStreamDiscreteFramer", rather than a "H264VideoStreamFramer".


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120315/6b173e52/attachment.html>


More information about the live-devel mailing list