[Libav-user] RTP VP8 payload, keyframe, the proper way to send correct RTP VP8 packets

2015-10-19 Thread William MANCON
Hi, I'm trying to write a plugin for a webrtc gateway (Janus). Basicaly, the code deals with incomping RTP packet (not SRTP, as the gateway decrypt et demux RTCP ...), depacketize it, decode it with the use of avcodec_decode_video2. Some manipulations are made on the raw outputted frames and then

Re: [Libav-user] FPS framerate

2015-10-19 Thread Carl Eugen Hoyos
Gonzalo writes: > Can someone comment on, assuming it's possible, what's > the proper way of getting the fps as a rational number? If what you are interested in is the average frame rate (you don't say but this is often asked) than avg_frame_rate is the right field. (It is of

Re: [Libav-user] avformat_alloc_output_context2 with WEBM defaults to VP9/Opus now - need to change

2015-10-19 Thread black copper
Sorry for the delay: > The output context only has suggested default codecs. You can just > change them to whatever you want, you don't have to follow the default > (ie. just don't listen to AVCodec->video_codec/audio_codec, but set > your own. > I have patched my code with something like:

[Libav-user] Encoding profile for H.264 cannot be changed

2015-10-19 Thread Baris Demiray
Hi all, I have been trying to change the encoding profile for H264 with no luck. There are few questions here and on SO with no helpful answers that I came across. So I looked at FFmpeg code and found that in libavcodec/libx264.c:X264_init(AVCodecContext *avctx), AVCodecContext->priv_data becomes