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
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
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:
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