[FFmpeg-user] Transcoding from mp4 to avi is too slow

NDJORE BORIS ndjoreboris at gmail.com
Tue Feb 12 23:35:26 EET 2019


Le mar. 12 févr. 2019 à 19:43, Ted Park <kumowoon1025 at gmail.com> a écrit :

> > All is good but the duration of the output vidéo is two time
> > long than the input video duration.
> > For example, if I the duration of the input vidéo is 10s the
> > duration of the output will be 20s (10sx2) and the output video
> > is slow.
>
> Is it possible you are setting the timebase to be twice what it should be
>
> >            /* In this example, we transcode to same properties (picture
> > size,
> >             * sample rate etc.). These properties can be changed for
> output
> >             * streams easily using filters */
> >            if (dec_ctx->codec_type == AVMEDIA_TYPE_VIDEO)
> >            {
>
> >                 enc_ctx->time_base=dec_ctx->time_base;
>
> >                /* video time_base can be set to whatever is handy and
> > supported by encoder */
> >                enc_ctx->time_base = av_inv_q(dec_ctx->framerate);
>
>
> Hello,
>

I will try to see where I did that.
But if you see where, please help me.

Thanks

>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list