Info || Non-Lethal Applications (12020-05-06):
> There’s AVVideoCodecContext->width/height,

That is what you want.

> coded_width/coded_height

Encode a 126x126 video with x264, then use ffprobe to examine it and
compare coded_width and width.

> and also sample_aspect_ratio.

PAL DVDs are 720×576, meant for 16:9. Do the math.

The sample_aspect_ratio for PAL DVDs is 64/45. Do some more math.

> There’s also AVStream->sample_aspect_ratio, display_aspect_ratio and
> AVFrame->sample_aspect_ratio.

These come from the stream, i.e. are obtained from the headers of the
encapsulation format. The data in AVCodecContext comes after decoding
the actual payload.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to