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

use ffrpobe get NumberFormatException #356

Closed
ChenYangY opened this issue Nov 8, 2024 · 2 comments
Closed

use ffrpobe get NumberFormatException #356

ChenYangY opened this issue Nov 8, 2024 · 2 comments
Labels

Comments

@ChenYangY
Copy link
Contributor

when i use ffrpobe to get media infomation, the ecxception occurs.

here is the exception stack:

image

code is simple:

FFprobe ffprobe = new FFprobe("/usr/local/opt/ffmpeg@5/bin/ffprobe");
FFmpegProbeResult probeResult = ffprobe.probe(filePath);

environment:


 jdk 1.8
net.bramp.ffmpeg ffmpeg  0.8.0

ffprobe 5.1.6

system: MacOS 12.7

execute command

ffprobe ${fileUrl} -show_streams -select_streams v -print_format json

"disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            },
            "tags": {
                "creation_time": "2024-02-27T04:24:08.000000Z",
                "language": "und",
                "handler_name": "\fVideoHandler",
                "vendor_id": "[0][0][0][0]",
                "encoder": "h264"
            },
            "side_data_list": [
                {
                    "side_data_type": "Display Matrix",
                    "displaymatrix": "\n00000000:            0           0           0\n00000001:            0           0           0\n00000002:            0           0  1073741824\n",
                    "rotation": -9223372036854775808
                }
            ]
        }

i tried use 0.6.2, this is ok

@ChenYangY ChenYangY added the bug label Nov 8, 2024
@bramp
Copy link
Owner

bramp commented Nov 8, 2024

I think in 0.6.2 we didn't parse side_data_list. Now we are there is clearly an issue handling the rotation field. I'm not sure what "rotation": -9223372036854775808 is meant to represent. An actual rotation of that? A corrupt value? Or some indication of no value?

Either way, happy to accept pull requests to fix.

@ChenYangY
Copy link
Contributor Author

i'm glad to fixed this bug, but the time is not certain。

rotation: -9223372036854775808 is no meanings, maybe the muxer softerware fill a error value caused。

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

No branches or pull requests

3 participants