Replies: 2 comments 28 replies
-
I saw this code :
Which seems to be something I need to use, it really looks like it's iterating over the packets to find a frame.
The inputFormatContext is taking an input which seems to be a string, so this is not really what I need I suppose. |
Beta Was this translation helpful? Give feedback.
-
@Valkhes first off, thanks for using The first thing I'd recommend (maybe you've done it already) is checking out the examples especially the Demuxing/Decoding one that seems to fit your needs. Before digging deeper in your problem, could you tell me whether you can receive the socket stream only via |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm asking here because I can't figure what I'm supposed to do with the library.
I'm trying to change a code I have in python using PyAV (which is a Python binding of FFMPEG) to Go, using go-astiav, as it seems to be one of the only maintained binding of FFMPEG in go.
I'm trying to retrieve H264 stream from a socket sended by a scrcpy-server (I know that some people have been using the lib here for the same reason). I read these one :
#45
#13
But I don't exactly understand how I need to use go-astiav. I'm quite a beginner with H264 and codec, so this is a bit hard for me to understand.
In python, what I'm doing is :
In go, what I've tried to do for the moment :
At this step, I'm pretty sure I managed to parse the byte stream to a Packet list (but I'm not really sure, I would need confirmation), but I don't understand what I'm supposed to do after if I want to find a Frame by decoding the packets. The naming are different from PyAV here, so I'm a bit lost. I was expecting to find a decode() function from the codec, as it knows it's H264 packets, but it seems it's not the case.
Can everybody help me about this ? I'm sure I'm not that far...
Beta Was this translation helpful? Give feedback.
All reactions