Hi
anyway, nice Friday.
I coded like that for decoding and encoding.

----------------
 while(av_read_frame(pMainFormatCtx, &packet)>=0) {
if(packet.stream_index==videoIndex)
{
   avcodec_get_frame_defaults (pFrame);
   frameFinished = 0;
   result = avcodec_decode_video(pVideoCodecCtx, pFrame,
&frameFinished,packet.data, packet.size);
  // Did we get a video frame?
   if(frameFinished) {
    sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0,
pVideoCodecCtx->height, pFrameConverted->data,
pFrameConverted->linesize);

    /////////////////////////////////////////////
    //// How to converting 29.970 when encoding WMA,ASF at here ?
    /////////////////////////////////////////////

   !!!!!!!!!!!!!!!!! video encoding process ()
   }

}

Do you know api for frame converting in FFMPEG or way ?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to