To achieve network playback, find the protocol and find the open source file. Finally find a usable
I was shocked when the broadcast came! This is too easy. The steps are as follows:
1, download live555, URL: http://www.live555.com/liveMedia/
2. Compile the code on this website. The basic commands are as follows:
./Genmakefile Linux
Make
3. Open live/testprogs/testondemandrtspserver. cpp, modify the value of reusefirstsource to true, and compile
4. mkfifo live/testprogs/test.264
5. Write your ownProgramWrite the h264 encoded data to the test.264 pipeline.
6. Use VLC to enable streaming
Successful!
Thanks to ghostyuArticle
Thanks to live555
C ++ does not understand,CodeI did not understand this line, but I came out.
There has been a problem before: when the large-size stream is used, the playing will be stuck. The reason should be that the value of the # define bank_size 150000 macro is too small. It should be able to solve the problem.