Closed mateothegreat closed 7 months ago
Looking at your goals, I'd strongly suggest that you take a look at the transcoding example (you can skip the filter part since you don't need it) since that's basically what you're trying to do.
Also, I'd strongly consider replacing gortsplib
with demuxing the stream with go-astiav
directly, if possible, that would simplify things greatly (but that's not mandatory).
Regarding your code, there seems to be a misunderstanding: data is coming from rtsp as h264 packets (compressed) therefore you first need to decode them (transform them to frames) and encode them using an h265 encoder. Again, understanding the transcoding example is a must in your situation and particularly the decoding part as well as the encoding part.
Ok, roger that.. I'll give it another go. I think I just got lost in the weeds.
Thank you for the quick response @asticode !!
Hey there, I want to start off by saying thank you for your hard work, none of this is easy! 💪
I need to go from RTSP (h264) --> h265 and I think I'm close but I'm stumped a
error encoding packet: Invalid argument
error.Basically I'm coming from an
rtp.Packet
from https://github.com/bluenviron/gortsplib/v4 which is h264.Can I get some pointers on to what I may be missing or how to debug this error (it's super vague).
ffprobe output:
Work so far:
Thanks again, we appreciate ya!