Ne0phyte
27th January 2010, 12:05
Hi developers,
I'm just starting to develop with H264 using in my code x264 to decode the data that I have.
I'm using video decoding functions ICOpen,ICDecompress,etc. and the problem using that functions is about know the parameters of the sender of data at first.
For example I recieve data from an IP Camera with a resolution of 640x480. Well, I know the values of width and height because I have access to the configuration panel of the camera. If any person change that resolution I can't know the values and then I can't decompress correctly if I use x264vfw because I need to make the headers with correct values to start the decoding.
I have been reading on Internet and asking developers and the solution is like using MPEG-4 with xvid, decode one frame to obtain the values of resolution, but with x264 I can't do this. Anyone can help/suggest me to find the resolution at the beginning when i don't know?:confused:
PD: I tried to parse the SPS packets but I founded very hard for me that way.
Thank you in advance :).
I'm just starting to develop with H264 using in my code x264 to decode the data that I have.
I'm using video decoding functions ICOpen,ICDecompress,etc. and the problem using that functions is about know the parameters of the sender of data at first.
For example I recieve data from an IP Camera with a resolution of 640x480. Well, I know the values of width and height because I have access to the configuration panel of the camera. If any person change that resolution I can't know the values and then I can't decompress correctly if I use x264vfw because I need to make the headers with correct values to start the decoding.
I have been reading on Internet and asking developers and the solution is like using MPEG-4 with xvid, decode one frame to obtain the values of resolution, but with x264 I can't do this. Anyone can help/suggest me to find the resolution at the beginning when i don't know?:confused:
PD: I tried to parse the SPS packets but I founded very hard for me that way.
Thank you in advance :).