I am using Intel Media SDK for transcoding the RTP streaming. Source has TS RTP pockets.It is read by FFMPEG av_read_frame(pFormatCtx, &packet) API.At the moment I am reading only video frames and corresponding timestamps. Video data is in Mpeg2 video data I want to convert into H264 video data by using Media SDK transcode API.After having transcoded TS and RTP pockets are made further re streamed to destination.The idea is to convert into h264 data using media SDK.
Now, problem is Media sdk does not transcode frame basis.
when I give input(Mpeg2 video data of 97501 bytes and Timestamp say ts1) it asks for more data and m_Bitstream.DataOffset is set to 97k. I gave more data of 6794 bytes and timestamp say ts2 by calling av_read_frame API. But I set m_Bitstream.DataOffset to NULL. Transcoder API gives Transcoded output. Whenever Trascoder asks for more data I gave input data and Time stamps.
Probelem I have found is time stamps at out are not comming correctly.As a result of this I could not able to do streaming properly. If Media sdk can able to transcode frame by frame I believe time stamps will not have any problem.
Can any one help me out???