<div dir="ltr">Hello experts, <div><br></div><div>   I'm building transcoder and sometimes avcodec_open2 returns decoder.time_base = {0, 1} for src video, although "ffmpeg -i xxx" and "ffprobe -show_stream " returns correct tbc and codec_time_base.</div><div><br></div><div>   Problem: in some cases codec_time_base != (AVRational) {1, framerate} (in my case codec_time_base=1/60, but framerate=30). </div><div><br></div><div>   I'm aware about example transcode.c and I tested it and it is not working too. </div><div><br></div><div>   Question: how can I get correct codec_time_base in API ? </div><div><br></div><div>JFYI: Ubuntu + 7:3.3.1-1~16.04.york0</div><div><br></div><div>Thanks a lot </div></div>