[Libav-user] Accuracy of seek_frame (h264)

2016-10-13 Thread Kristijonas Malisauskas
Hello, I am currently having problems seeking to keyframe with good accuracy (videos are h264). To calculate target time I currently use: int seek_target = target_frame * ((float)pFormatCtx->streams[videoStreamIndex]->time_base.den / pFormatCtx->streams[videoStreamIndex]->time_base.num) / (float) p

Re: [Libav-user] Speeding up H264 decoding

2016-09-07 Thread Kristijonas Malisauskas
First thing i would suggest doing is setting your AVCodecContext to use more threads for ex: videoCtx->thread_count = 4; On Wed, Sep 7, 2016 at 3:05 PM, Simon Brown wrote: > I'm running a decode operation using doc/examples/demuxing_decoding.c I'm > running on an Arm A9 with Neon enabled. Send

[Libav-user] Closing off AVCodecContext

2016-08-25 Thread Kristijonas Malisauskas
Hello, I am having problems trying to use "avcodec_close" on AVCodecContext that has received packets to decode yet has not finished going though the whole stream. Using avcodec_flush_buffers does not seem to help either. How should I go about correctly closing and freeing up the AVCodecContext in

[Libav-user] Odd problem after encoding video

2016-06-02 Thread Kristijonas Malisauskas
Hello, I am encoding video with a new framerate expecting a slowdown or speed up in the final result. Odd thing is: "Videos" or ffmpeg player seems to give me expected results while VLC plays the video at the same-ish framerate (makes no difference what FPS I set) Encoder setup: out_codec = avco