mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.83k stars 2.87k forks source link

Locales of audio and pgs subtitles not detected #13341

Closed pppbb closed 6 months ago

pppbb commented 7 months ago

Important Information

Provide following Information:

Reproduction steps

open Blu-ray 4k film The Batman (for example backup copy from hdd)

Expected behavior

Expected audio and subtitles locales to be attached.

Actual behavior

No locales of audio and subtitle tracks. There is no problem with vlc.

Log file

mpv.log

llyyr commented 7 months ago
[   0.069][d][ffmpeg/demuxer] mpegts: parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[   0.070][d][ffmpeg/demuxer] mpegts: parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[   0.078][w][ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
[   0.078][w][ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[   0.078][w][ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
[   0.078][w][ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[   0.078][w][ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
...

Hard to debug this without a sample

pppbb commented 7 months ago

Hard to debug this without a sample

How could i provide you a sample?

llyyr commented 7 months ago

Trim the file down to a few seconds while keeping all the subtitle tracks with ffmpeg, check if you can still reproduce the issue with the trimmed file then upload it here

pppbb commented 7 months ago

Trim the file down to a few seconds while keeping all the subtitle tracks with ffmpeg, check if you can still reproduce the issue with the trimmed file then upload it here

Its useless because there is no metadata in m2ts file. I remind you its blu-ray disk.

Obegg commented 7 months ago

Hmmm... if there's no metadata then how mpv can extract something that's not there? Uh, I guess there are solutions but I'm not sure if those are possible: 1) Allow mpv to scan metadata of the folder environment (not a sub folder, but the opposite of that, not sure how it's called) 2) Scan the inside of the file and somehow figure out? (nah, I don't even know what I'm saying here)

Either way, I think mpv can scan other files (such as .bdmv files, or .mpls files) from the folder environment and use that.

llyyr commented 7 months ago

Its useless because there is no metadata in m2ts file. I remind you its blu-ray disk.

There is no problem with vlc.

How is VLC inventing metadata out of thin air? And if you're aware that the file has no metadata then why is this a mpv issue?

Obegg commented 7 months ago

the m2ts has no meadata, correct, but .bdmv and .mpls does have metadata, so we can use that.

cubicibo commented 7 months ago

Transport streams do have metadata. TS files periodically include a PSI packet with a program table listing all of the elementary streams.

pppbb commented 7 months ago

Update: It is possibly not mpv fault. I played the movie directly from the optical disc and language of audio and pgs subtitles was recognized correctly. When i play the movie from backup copy from hdd the languages are not correctly detected.

pppbb commented 7 months ago

the m2ts has no meadata, correct, but .bdmv and .mpls does have metadata, so we can use that.

I could post .bdmv and .mpls files but unfortunately it is illegal.

pppbb commented 6 months ago

I don't know how it happened but it works for me now.