[Live-devel] [Need help for live streaming changed for H264]
Rakesh Kumar
rakesh.kumar at procubedinc.com
Thu Mar 15 12:00:48 PDT 2012
Hi,
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.
This is my first Linux application, so I do accept that my understanding is
weak, that is why I am seeking help and into this forum.
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.
Yes my FIFO is named pipe myrtspfifo and I changed inputFileName =
myrtspfifo and it pops up error that "Unable to open file \"" <<
inputFileName << "\" as a byte-stream file source\n";
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.)
I have to use it as I need rtsp, if you support or not that is that is
different issue. I came to this forum only because I have less time to
deliver it and I expected some quick solutions.
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".
Yes I kept it as last option , but I read the blogs and found that few
people are there who has already got it worked (h264 streaming using named
FIFO)so I thought it should work for me with some help from the forum.
~rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120316/e7c4ae1c/attachment-0001.html>
More information about the live-devel
mailing list