Python Forum
How to do reprocessing H264 data to image/video
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to do reprocessing H264 data to image/video
#1
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.
Reply
#2
Since we are not going to write the code for you, perhaps you can show us what you have tried so far. Sometimes a simple web search will result in some surprising results :-)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mirror Video Image in realtime makingwithheld 1 432 Oct-30-2023, 02:45 PM
Last Post: Larz60+
  Unable to request image from FORM Data usman 0 990 Aug-18-2022, 06:23 PM
Last Post: usman
  Binary data to Image convert Nuwan16 1 5,654 Aug-24-2020, 06:03 AM
Last Post: millpond
  How to get Data-Taken For a Video file using Python ramprasad1211 1 1,897 Apr-28-2020, 08:48 AM
Last Post: ndc85430
  How to rewrite image file name based on ocr data.txt kevinchr 0 3,642 Apr-16-2018, 07:09 PM
Last Post: kevinchr
  Camera Image Data annakin4 0 2,653 Jan-24-2018, 05:50 PM
Last Post: annakin4
  Getting EXIF data from image AND video files kahlenberg 2 14,751 Jan-07-2018, 10:34 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020