ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

I want to get rotation information for the video information.

Open rjusang opened this issue 3 years ago • 0 comments
trafficstars

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.

rjusang avatar Aug 11 '22 13:08 rjusang