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

missing field codec_long_name #24

Open
Enitoni opened this issue Dec 18, 2020 · 3 comments
Open

missing field codec_long_name #24

Enitoni opened this issue Dec 18, 2020 · 3 comments

Comments

@Enitoni
Copy link

Enitoni commented Dec 18, 2020

Running the command
alass 18.mkv ./subtitles/18.srt ./subtitles/18.srt --disable-fps-guessing

Yields

error: processing video file '18.mkv' failed
caused by: failed to extract voice segments from file '18.mkv'
caused by: failed to extract metadata from '18.mkv' using command 'D:\Programs\alass\ffmpeg\bin\ffprobe.exe -v error -show_entries format=duration:stream=index,codec_long_name,channels,duration,codec_type -of json 18.mkv'
caused by: failed to deserialize metadata of file '18.mkv'
caused by: missing field `codec_long_name` at line 160 column 9

But when I run the ffprobe command
D:\Programs\alass\ffmpeg\bin\ffprobe.exe -v error -show_entries format=duration:stream=index,codec_long_name,channels,duration,codec_type -of json 18.mkv

I get the streams, each one containing codec_long_name:

{
    "programs": [

    ],
    "streams": [
        {
            "index": 0,
            "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
            "codec_type": "video"
        },
        {
            "index": 1,
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "codec_type": "audio",
            "channels": 6
        },
        {
            "index": 2,
            "codec_long_name": "AAC (Advanced Audio Coding)",
            "codec_type": "audio",
            "channels": 2
        },
        {
            "index": 3,
            "codec_long_name": "HDMV Presentation Graphic Stream subtitles",
            "codec_type": "subtitle"
        },
        {
            "index": 4,
            "codec_long_name": "HDMV Presentation Graphic Stream subtitles",
            "codec_type": "subtitle"
        },
        {
            "index": 5,
            "codec_long_name": "ASS (Advanced SSA) subtitle",
            "codec_type": "subtitle"
        },
        {
            "index": 6,
            "codec_long_name": "ASS (Advanced SSA) subtitle",
            "codec_type": "subtitle"
        },
        {
            "index": 7,
            "codec_long_name": "ASS (Advanced SSA) subtitle",
            "codec_type": "subtitle"
        },
        {
            "index": 8,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 9,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 10,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 11,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 12,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 13,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 14,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 15,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 16,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 17,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 18,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 19,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 20,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 21,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 22,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 23,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 24,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 25,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 26,
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 27,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 28,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 29,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 30,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 31,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 32,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 33,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 34,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 35,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 36,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 37,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 38,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 39,
            "codec_long_name": "OpenType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 40,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 41,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        },
        {
            "index": 42,
            "codec_long_name": "TrueType font",
            "codec_type": "attachment",
            "duration": "1422.130000"
        }
    ],
    "format": {
        "duration": "1422.130000"
    }
}

So what's happening here?

@nek0d3r
Copy link

nek0d3r commented Dec 1, 2023

I also ran into this issue, but I see in your provided output, index 26 is indeed missing codec_long_name. I'm wondering if anything can be done about this, or how important it is for all the streams to have this.

@nek0d3r
Copy link

nek0d3r commented Dec 1, 2023

Nope, I just pulled it and saw it's not currently being used, commented references to it out, and it worked like a charm! I'll fork and request sync when I'm not dead tired LOL

@scillidan
Copy link

I have the same problem and I can't solve it either.
So I used ffmpeg-batch → Presets → Audio: converting to MP3 CBR HQ 2 ch to convert .mkv to .mp3, then alass-cli ...

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

3 participants