20:24
I want to apply operations from the OpenCV computer vision library, in real time, to video captured from my computer display.
The idea in this particular case is to detect interesting features during gameplay in a popular game and provide the user with an enhanced experience; but I could think of several other scenarios where one would want to have live access to this data as well.
At any rate, for the development phase it might be acceptable using canned video, but for the final application performance and responsiveness are obviously critical.
I am trying to do this (...)
13:06
I need to mux some byte data encoded to base64 String to mpeg-ts container. Can't find any solution to somehow encode this data to AVPacket. Using of "avcodec_encode_subtitle" supposes to have AVSubtitle with proper data. But how can I create/allocate AVSubtitle with my data?
Upd. The only variant I managed to create (in Kotlin, as my app is KMP) is that, but it gives error "Invalid data found when processing input" when encoding
val data = AVSubtitleRect()
data.type(SUBTITLE_ASS)
data.ass(BytePointer(buffer))
val subtitle = AVSubtitle()
val pointerPointer = (...)
12:01
I'am developing a video converter which based on FFmpeg's libavformat, and I need to implement an accurate seeking API. First of all, I developed an indexer of video stream which just saves a presentation timestamps(PTS) of every packet. And then my encoder uses this index to seek the video file. Before this operations, I remux file to mp4 container, for example. Remux is needed for videos which have no correct index inside, or video has no index at all. I need to implement seeking by bytes, of course with previously built index. I tried many ways to implement this, but without (...)
10:23
good morning, given an rtsp streaming that responds 200 to a request and has both PLAY and DESCRIBE options, how can I capture a screenshot in jpg without running into errors like 400 Bed Request, using a command line tool like ffmpeg?
there are other answers on the site but without knowing the nature of streaming how can this operation be best carried out?
I found very little documentation online
I tried with ffprobe and ffmpeg, in tcp and udp, but each camera has its own options and before using ffmpeg I should understand what the streaming settings (...)