I sent the text to another (wrong) topic a minute ago. Sorry for that. Now,
here's my question:

HI,

is it possible to speed up the decoder? Eg. skip some frames. But how do I
skip them? Before decoding there are packets and I don't know the bounds of
a Frame. The decoding looks like this:

  while(av_read_frame(pFormatCtx, &packet) >= 0 && handle->exit == 0 &&
handle->eos == 0) {
    // Is this a packet from the video stream?
    if(packet.stream_index == videoStream) {
      // Decode video frame
      avcodec_decode_video(pCodecCtx, pFrame, &frameFinished, packet.data,
packet.size);

      // Did we get a video frame?
      if(frameFinished) {
          Decoder_StoreData(handle, (AVPicture *) pFrame);
          Decoder_RaiseEvent(handle, DECODEREVENT_DATA_AVAILABLE);
      }
    }

    // Free the packet that was allocated by av_read_frame
    av_free_packet(&packet);
  }

1) How do I skip a frame without decoding it? I've seen a variable hurry_up
and a variable skip_frame somewhere in the source code (avcodec.h). How do I
use them? 2) Is there another possibility to speed up the decoder temporary?



Thanks :-)
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to