kaegi / alass

"Automatic Language-Agnostic Subtitle Synchronization"
GNU General Public License v3.0
1.03k stars 52 forks source link

missing field `codec_long_name` #24

Open Enitoni opened 3 years ago

Enitoni commented 3 years ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 9 months ago

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 ...