javacv-paltform-1.5.7 cann't recognize the "rotate" of a video-inputStream while 1.5.6 can.

71 views
Skip to first unread message

崔鹏飞

unread,
Jun 6, 2022, 7:14:48 AM6/6/22
to javacv
the following code of java:
{
FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(videoStream);
grabber.start();
String rotate = grabber.getVideoMetadata("rotate");
}
the videoStream is a inputStream of a video which has a rotation of "180",but when i use the dependency of javacv-platform(version is 1.5.7),the variable "rotate" above always is null,i want to know why, expection fro your response, thanks a lot.

Samuel Audet

unread,
Jun 6, 2022, 7:16:38 AM6/6/22
to jav...@googlegroups.com, 崔鹏飞
Could you please provide a link to a sample video file that has this problem?
--

崔鹏飞

unread,
Jun 6, 2022, 7:38:16 AM6/6/22
to javacv

the vide file is attached.
Samuel Audet 在 2022年6月6日 星期一下午7:16:38 [UTC+8] 的信中寫道:
rotate_180.mp4

Samuel Audet

unread,
Jun 6, 2022, 5:35:30 PM6/6/22
to jav...@googlegroups.com, 崔鹏飞
Indeed, the "rotate" metadata appears in the output of ffprobe with FFmpeg 4.4.x, but not in the output of ffprobe with FFmpeg 5.0.x.

This appears to be a known issue already: https://trac.ffmpeg.org/ticket/9452

They say we should use the "side data" now, so someone will need to work on adding support for that: https://github.com/bytedeco/javacv/issues/1361

Samuel
Reply all
Reply to author
Forward
0 new messages