MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.37k stars 160 forks source link

Cant read m2ts on ZFS #633

Open bluboyo opened 2 years ago

bluboyo commented 2 years ago

Just noticed that mediainfo cant read an m2ts on my zfs filesystem. Blank output. Its on ubuntu 20.04. Works fine on ext4 with the same file.

Is this a know issue?

JeromeMartinez commented 2 years ago

Tested with CentOS 8 (what we have with ZFS) but I guess it is similar with Ubuntu:

$ df -T | grep  /home/ftpzfs
zdrive/ftp             zfs      x x x x% /home/ftpzfs
$ mediainfo /home/ftpzfs/mediainfo_upload/subt_problematic.ts "--Output=General;%Format%"
MPEG-TS

Blank output is usually due to unreachable file (wrong path or access rights), we definitely need to provide better errors feedback.

Is it only m2ts?

bluboyo commented 2 years ago

Same on mkv. So i assume all. Tried sudo mediainfo now too. Same blank output.

JeromeMartinez commented 2 years ago

and e.g. xxd -ps -l 1 FILENAME shows 47?

bluboyo commented 2 years ago

Shows 37 on both

JeromeMartinez commented 2 years ago

I forgot that m2ts has a 4-byte prefix. Difficult to say more without having the same exact setup, we'll investigate when we have free time and/or more complains about this setup.

bluboyo commented 2 years ago

Alright. Let me know if i can help. But not just m2ts. Same problem on mkv.

JeromeMartinez commented 2 years ago

Shows 37 on both

Wait, 37 is not normal for MKV, MKV starts with 1A. xxd -ps -l 30 FILENAME?

bluboyo commented 2 years ago

Sorry wasnt clear. I meant blank output. Your command gives me 1a45dfa3a34286810142f7810142f2810442f381084282886d6174726f73

mr44er commented 1 year ago

Is your error still existing? Have you tried another file? Sounds more like a broken file (CRC error during transfer is more likely with big files) or complete wrong extension. Maybe it is originally a .iso or .rar.

Everything working here for me on:

$ freebsd-version -kru && zfs version
13.2-RELEASE
13.2-RELEASE
13.2-RELEASE
zfs-2.1.9-FreeBSD_g92e0d9d18
zfs-kmod-2.1.9-FreeBSD_g92e0d9d18