shanlihou / RTSP

rtsp client with c++
5 stars 3 forks source link

About license and library capabilities #1

Open lattice0 opened 6 years ago

lattice0 commented 6 years ago

Hi! I've been searching for a small C++ RTSP library. Finally someone did it. I've had problems with live555 and needed something simple.

Could you tell me the licenses for this library?

I'm building something open source and would love to use and contribute to this library. It looks like it can already decode nal units, am I right?

Can you tell me how to save video to a file so I can begin testing with my cameras? I have a lot so it'd be nice to see the compatibility.

shanlihou commented 6 years ago

hi! i think the function below will help you,after using this function, will product the Bare h264 flow, vlc could play with it。 RTP.cpp:std::string RTP::parseNalU(std::string FU_A)

lattice0 commented 6 years ago

Why it returns a string, not bytes?

Do you have a wordking example of how to save this into a MP4 container so I can open in VLC?

shanlihou commented 6 years ago

the string is bytes,after you save it as h264,you can use ffmpeg convert it to mp4,