摘要:        
注册复用器,编码器等的函数av_register_all() 注册编解码器avcodec_register_all() 注册复用器的函数是av_register_output_format()。 注册解复用器的函数是av_register_input_format()。 注册协议处理器的函数是ffu    阅读全文
posted @ 2019-09-05 22:39
MoonXu
阅读(353)
评论(0)
推荐(0)
        
            
        
        
摘要:        
当需要把视频跳转到N秒的时候可以使用下面的方法:int64_t timestamp = N * AV_TIME_BASE; av_seek_frame(fmtctx, index_of_video, timestamp, AVSEEK_FLAG_BACKWARD); av_get_channel_l    阅读全文
posted @ 2019-09-05 22:29
MoonXu
阅读(826)
评论(0)
推荐(0)
        
            
        
        
摘要:        
SwrContext *swr_alloc(void); // 分配重采样的上下文。 SwrContext *swr_alloc_set_opts(struct SwrContext *s, int64_t out_ch_layout, AVSampleFormat out_sample_fmt,     阅读全文
posted @ 2019-09-05 22:20
MoonXu
阅读(3720)
评论(0)
推荐(0)
        
            
        
        
摘要:        
swr_convert() 针对每一帧音频的处理。把一帧帧的音频作相应的重采样 int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in, int in_count); 参数1:音频重    阅读全文
posted @ 2019-09-05 22:19
MoonXu
阅读(1810)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号