Oct-03-2017, 12:51 PM
I have been working on a project which blows my mind.
First of all, I have an IP camera that streams H264 data. I am able to stream it with its RTSP url via VLC/ffmpeg/python (rtsp://ip:port/PSIA/Streaming/channels/2?videoCodecType=H.264). So, there is nothing to worry about streaming.
However, on the project, camera is connected to the another system. This system gives the H264 data via ethernet to my PC, so camera is not connected directly to the PC. The system gives the data in every 10 ms at 1000 bytes. For example, if incoming data is 800 bytes, it adds 200 null bytes.
What I can do is to extract these null bytes and take the raw data via a socket. For latency, I use thread module so there is no data leakage.
What I gotta do is to turn these raw H264 data to an image sequence or a video that can be displayed via VLC, ffmpeg, Classic Media Player etc.
I preferrebly want to write my code in Python and every operation has to be in real-time. So, any help would be appreciated.
First of all, I have an IP camera that streams H264 data. I am able to stream it with its RTSP url via VLC/ffmpeg/python (rtsp://ip:port/PSIA/Streaming/channels/2?videoCodecType=H.264). So, there is nothing to worry about streaming.
However, on the project, camera is connected to the another system. This system gives the H264 data via ethernet to my PC, so camera is not connected directly to the PC. The system gives the data in every 10 ms at 1000 bytes. For example, if incoming data is 800 bytes, it adds 200 null bytes.
What I can do is to extract these null bytes and take the raw data via a socket. For latency, I use thread module so there is no data leakage.
What I gotta do is to turn these raw H264 data to an image sequence or a video that can be displayed via VLC, ffmpeg, Classic Media Player etc.
I preferrebly want to write my code in Python and every operation has to be in real-time. So, any help would be appreciated.