Opened 20 months ago
Last modified 20 months ago
#18321 new enhancement
MediaPlayer can't play y4m files
Reported by: | topolinik | Owned by: | pulkomandy |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Audio & Video/Codecs | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description
Title is self explanatory: when I pick a y4m file, mediaplayer refuses to play because "it seems not to be a multimedia format". Nevertheless, ffplay can play that file.
Tested on both haiku 32 bit and haiku 64 bit, same result.
(the attached file comes from a test suite for libaom, I think it is freely usable - in case it is not, I will remove it)
Attachments (1)
Change History (10)
by , 20 months ago
Attachment: | paris_352_288_30.y4m added |
---|
comment:1 by , 20 months ago
Keywords: | mediaplayer y4m removed |
---|
comment:2 by , 20 months ago
I don't think it has one (no mime list includes y4m or yuv4mpeg2).
It is an uncompressed video format.
comment:4 by , 20 months ago
on haiku 32 bit:
~> listattr paris_352_288_30.y4m File: paris_352_288_30.y4m Type Size Name ---------------------------------------------------------- 0 bytes total in attributes. ~>
On haiku 64 bit:
~> listattr paris_352_288_30.y4m File: paris_352_288_30.y4m Type Size Name ---------------------------------------------------------- MIME String 25 "BEOS:TYPE" 25 bytes total in attributes. ~>
comment:5 by , 20 months ago
BEOS:TYPE is the mime attribute yeah :)
I'd like to know the content of it, you can get it with catattr. on 32bit you probably have not tried to open the file yet, hence it has no mime type assigned.
comment:6 by , 20 months ago
catattr gives:
application/octet-stream
on both haiku 32 bit and 64 bit.
comment:7 by , 20 months ago
Going by https://wiki.multimedia.cx/index.php/YUV4MPEG2 it shouldn't be hard to create a sniffer rule. That doesn't mean MediaPlayer will be able to play back though. At least, I couldn't persuade MediaPlayer to do so...
comment:8 by , 20 months ago
I'll investigate this later. IIRC mediaplayer will refuse to play anything not video/ or audio/
adding a different video/ mime type may let it play back, if so the only change needed is the sniffer rule.
Regardless of whether this is the case I'll write a sniffer rule.
comment:9 by , 20 months ago
Type: | bug → enhancement |
---|
Marking as enhancement since this is not really a bug.
I think there is some extra filtering happening specifically in MediaPlayer, I have files (for example Amiga .MOD files) that will play just fine with Media Kit in my own apps, but not in MediaPlayer. Would be nice to know why, but I didn't have time to investigate it.
What's the mime type of the file?