bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.72k stars 413 forks source link

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

Open rjusang opened 2 years ago

rjusang commented 2 years ago

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.