search for: codec_typ

Displaying 6 results from an estimated 6 matches for "codec_typ".

Did you mean: codec_type
2019 Jul 11
2
Need help with streaming to Icecast
...am _pOutputStream = ffmpeg.avformat_new_stream(_pOutputFormatContext, null); AVStream* pInputVideoStream = null; for (var i = 0; i < _pInputFormatContext->nb_streams; i++) { if (_pInputFormatContext->streams[i]->codec->codec_type == AVMediaType.AVMEDIA_TYPE_VIDEO) { pInputVideoStream = _pInputFormatContext->streams[i]; } } _pOutputStream->avg_frame_rate = pInputVideoStream->avg_frame_rate; _pOutputStream->time_base = pInput...
2019 Jul 11
1
Need help with streaming to Icecast
...ormatContext, null); > > > > AVStream* pInputVideoStream = null; > > > > for (var i = 0; i < _pInputFormatContext->nb_streams; i++) > > { > > if > > (_pInputFormatContext->streams[i]->codec->codec_type == > > AVMediaType.AVMEDIA_TYPE_VIDEO) > > { > > pInputVideoStream = > > _pInputFormatContext->streams[i]; > > } > > } > > > > _pOutputStream->avg_frame_rate = > &gt...
2019 Jul 11
0
Need help with streaming to Icecast
...mpeg.avformat_new_stream(_pOutputFormatContext, null); > > AVStream* pInputVideoStream = null; > > for (var i = 0; i < _pInputFormatContext->nb_streams; i++) > { > if > (_pInputFormatContext->streams[i]->codec->codec_type == > AVMediaType.AVMEDIA_TYPE_VIDEO) > { > pInputVideoStream = > _pInputFormatContext->streams[i]; > } > } > > _pOutputStream->avg_frame_rate = > pInputVideoStream->avg_frame_rate; >...
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...= 0.0; + double a_pts_delta = 0.0; + double framesync = 0.0; + const double v_pts_smoothness = 8; + const double framesync_thresh = 0.6; + int j; + for (i = 0; i < this->context->nb_streams; i++){ AVCodecContext *enc = &this->context->streams[i]->codec; switch (enc->codec_type){ @@ -520,14 +532,46 @@ len -= len1; } first=0; + + /* 20041216/DK Check and correct A/V sync */ + v_pts_in = (double)pkt.pts / AV_TIME_BASE; + v_pts_delta_new = v_pts_in - v_pts_out; + if (v_pts_out == 0.0) + v_pts_delta = v_pts_delta_new; + else +...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...t frameadjust = 0; + const double v_pts_smoothness = 8; + double max_good_framesync_change = 0.5; + const double framesync_thresh = 0.6; + int j; + for (i = 0; i < this->context->nb_streams; i++){ AVCodecContext *enc = &this->context->streams[i]->codec; switch (enc->codec_type){ @@ -414,16 +436,18 @@ info.ti.dropframes_p = 0; info.ti.quick_p = 1; info.ti.keyframe_auto_p = 1; - info.ti.keyframe_frequency = 64; - info.ti.keyframe_frequency_force = 64; + info.ti.keyframe_frequency = this->keyint; + info.ti.keyframe_frequency_force = this->keyint;...
2004 Nov 20
0
ffmpeg2theora start and end time support
...m = NULL; AVCodec *acodec = NULL; AVCodec *vcodec = NULL; AVIndexEntry * index_entry; float frame_aspect; int frame_number=0; double fps = 0.0; for (i = 0; i < this->context->nb_streams; i++){ AVCodecContext *enc = &this->context->streams[i]->codec; switch (enc->codec_type){ case CODEC_TYPE_VIDEO: if (this->video_index < 0) this->video_index = i; break; case CODEC_TYPE_AUDIO: if (this->audio_index < 0 && !this->disable_audio) this->audio_index = i; break; default: break; } } if (this->video_index >...