Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to get rotation information for the video information. #257

Open
rjusang opened this issue Aug 11, 2022 · 0 comments
Open

I want to get rotation information for the video information. #257

rjusang opened this issue Aug 11, 2022 · 0 comments

Comments

@rjusang
Copy link

rjusang commented Aug 11, 2022

I am using a translator because I am not good at English, so please understand.

If you issue the following command for a vertical video, ffprobe will output the following information.
Please add a function to display the display matrix.

C:> ffprobe test_moviename.mp4

Side data:
displaymatrix: rotation of 90.00 degrees

Get Media Information

Code:

FFprobe ffprobe = new FFprobe("/path/to/ffprobe");
FFmpegProbeResult probeResult = ffprobe.probe("input.mp4");

FFmpegFormat format = probeResult.getFormat();
System.out.format("%nFile: '%s' ; Format: '%s' ; Duration: %.3fs",
format.filename,
format.format_long_name,
format.duration
);

FFmpegStream stream = probeResult.getStreams().get(0);
System.out.format("%nCodec: '%s' ; Width: %dpx ; Height: %dpx",
stream.codec_long_name,
stream.width,
stream.height

added>>>streams.display_matrix

I want
output >>>> "rotation of 90.00 degrees"

);

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant