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

ffprobe returned malformed data #2270

Open
4 tasks done
HCchay opened this issue Dec 16, 2024 · 20 comments
Open
4 tasks done

ffprobe returned malformed data #2270

HCchay opened this issue Dec 16, 2024 · 20 comments

Comments

@HCchay
Copy link

HCchay commented Dec 16, 2024

The fewer issues I have to read, the more new features I will have time to implement, so I ask that you please try these things first

Operating System

Windows 10

Steps to reproduce

image
image
If you try to drag the video shown in the image into the software, you may encounter an error.

Expected behavior

ffprobe returned malformed data

Actual behavior

There should be no problem.

Share log from developer tools

app.log
_

@mifi
Copy link
Owner

mifi commented Dec 18, 2024

this happens with all files?

@mifi
Copy link
Owner

mifi commented Dec 18, 2024

your log file doesn't seem to capture the event when you drop this file. can you try again and submit a new log?

@HCchay
Copy link
Author

HCchay commented Jan 16, 2025

What does the log mean?

2025-01-16T07:54:04.485Z info: Initializing config store
2025-01-16T07:54:04.698Z info: Waiting for app to become ready
2025-01-16T07:54:04.722Z info: CLI arguments { _: [] }
2025-01-16T07:54:05.907Z error: Failed to check github version API rate limit exceeded for 43.132.141.26. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) - https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting
2025-01-16T07:54:12.827Z info: ffprobe -of json -show_chapters -show_format -show_entries stream -i "C:\Users\cassiushe\Downloads\怪物猎人荒野 4080S 4K最高画质战斗帧数情况.mp4" -hide_banner
2025-01-16T07:54:49.547Z info: ffprobe -of json -show_chapters -show_format -show_entries stream -i "C:\Users\cassiushe\Downloads\怪物猎人荒野 4080S 4K最高画质战斗帧数情况.mp4" -hide_banner

@mifi
Copy link
Owner

mifi commented Jan 16, 2025

  1. open losslesscut
  2. open the file
  3. share the log from developer tools

@HCchay
Copy link
Author

HCchay commented Jan 17, 2025

Image

Image

There is no log in file. It's only in help

@mifi
Copy link
Owner

mifi commented Jan 17, 2025

Tools > Toggle Developer Tools -> Console

@HCchay
Copy link
Author

HCchay commented Jan 20, 2025

Image

@mifi
Copy link
Owner

mifi commented Jan 21, 2025

can you share a file that gives this error, or run this command on the file and share the output:

ffprobe.exe -of json -show_chapters -show_format -show_entries stream -i "C:\Users\cassiushe\Videos\bandicam 2025-01-13 11-19-41-601.mp4" -hide_banner

note you might have to install ffmpeg.

@HCchay
Copy link
Author

HCchay commented Jan 22, 2025

C:\Users\cassiushe>"C:\Users\cassiushe\Downloads\LosslessCut-win-x64\resources\ffprobe.exe" -of json -show_chapters -show_format -show_entries stream -i "C:\Users\cassiushe\Videos\bandicam 2025-01-13 11-19-41-601.mp4" -hide_banner
{
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\cassiushe\Videos\bandicam 2025-01-13 11-19-41-601.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: mp41
    creation_time   : 2025-01-13T03:19:42.000000Z
    encoder         : Bandicam 5.3.2.1889 / GDI / Nvidia NVENC
    encoder-eng     : Bandicam 5.3.2.1889 / GDI / Nvidia NVENC
  Duration: 00:00:11.83, start: 0.000000, bitrate: 3898 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1672x868 [SAR 1:1 DAR 418:217], 3896 kb/s, 58.56 fps, 60 tbr, 60k tbn (default)
    Metadata:
      creation_time   : 2025-01-13T03:19:42.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
    "programs": [

    ],
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_tag_string": "avc1",
            "codec_tag": "0x31637661",
            "width": 1672,
            "height": 868,
            "coded_width": 1672,
            "coded_height": 868,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "418:217",
            "pix_fmt": "yuv420p",
            "level": 42,
            "chroma_location": "left",
            "field_order": "progressive",
            "refs": 1,
            "is_avc": "true",
            "nal_length_size": "4",
            "id": "0x1",
            "r_frame_rate": "60/1",
            "avg_frame_rate": "41580000/709999",
            "time_base": "1/60000",
            "start_pts": 0,
            "start_time": "0.000000",
            "duration_ts": 709980,
            "duration": "11.833000",
            "bit_rate": "3896098",
            "bits_per_raw_sample": "8",
            "nb_frames": "693",
            "extradata_size": 38,
            "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": "2025-01-13T03:19:42.000000Z",
                "language": "eng",
                "handler_name": "VideoHandler",
                "vendor_id": "[0][0][0][0]"
            }
        }
    ],
    "chapters": [

    ],
    "format": {
        "filename": "C:\\Users\\cassiushe\\Videos\\bandicam 2025-01-13 11-19-41-601.mp4",
        "nb_streams": 1,
        "nb_programs": 0,
        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
        "format_long_name": "QuickTime / MOV",
        "start_time": "0.000000",
        "duration": "11.833000",
        "size": "5766548",
        "bit_rate": "3898621",
        "probe_score": 100,
        "tags": {
            "major_brand": "isom",
            "minor_version": "512",
            "compatible_brands": "mp41",
            "creation_time": "2025-01-13T03:19:42.000000Z",
            "encoder": "Bandicam 5.3.2.1889 / GDI / Nvidia NVENC",
            "encoder-eng": "Bandicam 5.3.2.1889 / GDI / Nvidia NVENC"
        }
    }
}

C:\Users\cassiushe>
C:\Users\cassiushe>

@HCchay
Copy link
Author

HCchay commented Jan 22, 2025

Using cmd seems OK?

@mifi
Copy link
Owner

mifi commented Jan 22, 2025

thanks. it looks correct to me. I honestly don't know what's wrong here, because I cannot reproduce the problem without your file. I will add better logging in the next version so losslesscut will log the output from ffprobe.

@HCchay
Copy link
Author

HCchay commented Jan 24, 2025

thanks

@HCchay
Copy link
Author

HCchay commented Feb 19, 2025

I discovered that the issue seems to be caused by spaces in the video file name. The import succeeded immediately after I removed the spaces. However, what's strange is that this same video file with spaces in its name was successfully imported this morning before I made any changes. In fact, I even edited it and exported successfully. Later, when I moved the LosslessCut software to a different location and tried importing the same video file again, the error message reappeared.

@HCchay
Copy link
Author

HCchay commented Feb 19, 2025

So I’m not entirely sure if it’s caused by spaces. I hope the author can look into this issue in future updates.

@HCchay HCchay closed this as completed Feb 19, 2025
@HCchay HCchay reopened this Feb 19, 2025
@HCchay
Copy link
Author

HCchay commented Feb 19, 2025

When I import the video again with the space removed. The same error was reported again.

@mifi
Copy link
Owner

mifi commented Feb 19, 2025

Ok, so it doesn’t have to do with spaces, right? Does it happen with all files or just that particular file C:\Users\cassiushe\Videos\bandicam 2025-01-13 11-19-41-601.mp4 ?

Also what’s the location of losslesscut when you’re getting the error?

@HCchay
Copy link
Author

HCchay commented Feb 22, 2025

all documents

@HCchay
Copy link
Author

HCchay commented Feb 22, 2025

In the C drive, Downloads folder...What’s strange is that no matter what I do on my home computer, it works fine. This issue only happens on the company computer.

@mifi
Copy link
Owner

mifi commented Feb 25, 2025

I’m wondering whether it could be an issue with some security software or antivirus on your work computer that prevents losslesscut from calling ffprobe.exe (or intercepts it replacing its response)

@HCchay
Copy link
Author

HCchay commented Feb 28, 2025

I don't think so. I added this folder to the trust zone.

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

2 participants