Please add support for the .rm RealMedia file extension. Only .rmvb works.
#1
I want to imagine a 'Da Fuq?' face on every dev who saw that thread title.  But yes, despite using FFMPEG and even supporting Real Media files, Kodi doesn't seem to know that the .rm file extension is valid.

Code:
2024-01-28 21:45:42.237 T:1832    debug <general>: CInputManager::HandleKey: return (0xf00d) pressed, window 10025, action is Select
2024-01-28 21:45:42.237 T:1832    debug <general>: CGUIWindowVideoBase::OnPlayMedia smb://FLUTTERSHY/Media/Web Videos/Sailor Moon - Worlds Greatest.rm
2024-01-28 21:45:42.237 T:15328   debug <general>: dbiplus::MysqlDatabase::connect replacing configured host 192.168.1.50 with resolved host 192.168.1.50
2024-01-28 21:45:42.239 T:1832    error <general>: Playlist Player: skipping unplayable item: 0, path [smb://FLUTTERSHY/Media/Web Videos/Sailor Moon - Worlds Greatest.rm]
2024-01-28 21:45:42.239 T:1832    debug <general>: Playlist Player: no more playable items... aborting playback
2024-01-28 21:45:42.239 T:15040   debug <general>: Thread BackgroundLoader start, auto delete: false

I've been trying to play some VERY old anime music videos, I actually have a copy of the full contents of AnimeMusicVideos.org from around 2015, every file hosted, and a CSV dump of the full database. (This is all legit, it was awarded as a prise to a donor, who later sold the drive to me, which I wanted to see preserved)

But the kicker is, if I just rename the file extension to .rmvb, it plays file.

Code:
2024-01-28 21:44:11.789 T:1832     info <general>: VideoPlayer::OpenFile: smb://FLUTTERSHY/Media/Web Videos/Sailor Moon - Worlds Greatest.rmvb
2024-01-28 21:44:11.789 T:3620     info <general>: Creating InputStream
2024-01-28 21:44:11.804 T:3620     info <general>: Creating Demuxer
2024-01-28 21:44:11.805 T:3620     info <general>: Opening stream: 1 source: 256
2024-01-28 21:44:11.806 T:3620     info <general>: Creating video codec with codec id: 68
2024-01-28 21:44:11.806 T:3620     info <general>: CDVDVideoCodecFFmpeg::Open() Using codec: RealVideo 3.0
2024-01-28 21:44:11.806 T:3620     info <general>: Creating video thread
2024-01-28 21:44:11.806 T:14416    info <general>: running thread: video_thread
2024-01-28 21:44:11.806 T:3620     info <general>: Opening stream: 0 source: 256
2024-01-28 21:44:11.806 T:3620     info <general>: Finding audio codec for: 86036
2024-01-28 21:44:11.806 T:3620     info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder cook
2024-01-28 21:44:11.806 T:3620     info <general>: CVideoPlayerAudio::OpenStream: Allowing max Out-Of-Sync Value of 10 ms
2024-01-28 21:44:11.806 T:3620     info <general>: Creating audio thread
2024-01-28 21:44:11.806 T:14644    info <general>: running thread: CVideoPlayerAudio:Tonguerocess()
2024-01-28 21:44:11.817 T:14644    info <general>: Creating audio stream (codec id: 86036, channels: 2, sample rate: 44100, no pass-through)
2024-01-28 21:44:11.827 T:9576     info <general>: CActiveAESink::OpenSink - initialize sink
2024-01-28 21:44:11.882 T:9576     info <general>: CAESinkWASAPI::InitializeExclusive: Format is Supported - will attempt to Initialize
2024-01-28 21:44:11.886 T:9576     info <general>: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S16NE, 48000, 2
2024-01-28 21:44:11.886 T:13860    info <general>: CAEEncoderFFmpeg::Initialize - AC3 encoder ready
2024-01-28 21:44:11.894 T:1832     info <general>: DXVA::CProcessorHD::InitProcessor: supported deinterlace methods: blend:yes, bob:yes, adaptive:yes, mocomp:no.
2024-01-28 21:44:12.105 T:14416    info <general>: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 33181
2024-01-28 21:44:33.055 T:14416    info <general>: CDVDVideoCodecFFmpeg::CDropControl: lost diff
2024-01-28 21:44:33.788 T:14416    info <general>: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 66636
2024-01-28 21:44:34.686 T:14416 warning <general>: CVideoPlayerVideo::OutputPicture - timeout waiting for buffer
2024-01-28 21:44:34.807 T:14416    info <general>: CDVDVideoCodecFFmpeg::CDropControl: lost diff
2024-01-28 21:44:35.221 T:14416    info <general>: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 33272
2024-01-28 21:44:35.786 T:14416 warning <general>: CVideoPlayerVideo::OutputPicture - timeout waiting for buffer
2024-01-28 21:44:36.703 T:1832     info <general>: CVideoPlayer::CloseFile()

The only change here is that a renamed the file to change it's extension.  My guess is that Kodi just doesn't know the .rm file extension, which is probably because 'Who the hell was even watching RealVideo even in 2002 when Xbox Media Player was released?'.  But that's the feature request I'm making, to add .rm to the list of file extensions that Kodi can correctly identify and play.  Since the file extension rename works, I'm hoping this is not a complicated request. ...Weird out of left field request though...
Reply
#2
According to the code here both .rm and .rmvb are supported. You've not accidentally removed .rm via AS.xml by any chance?
Learning Linux the hard way !!
Reply
#3
(2024-01-29, 10:05)black_eagle Wrote: According to the code here both .rm and .rmvb are supported. You've not accidentally removed .rm via AS.xml by any chance?

I've definitely made no such modification to advancedsettings.xml for any kind of file extension.  This is the complete contents of my advancedsettings.xml with only the MySQL user and pass blanked out.

Code:
<advancedsettings>
 <gui>    
   <algorithmdirtyregions>0</algorithmdirtyregions>
   <nofliptimeout>1000</nofliptimeout>
 </gui>
    <videodatabase>
        <type>mysql</type>
        <host>192.168.1.50</host>
        <port>3306</port>
        <user>XXXX</user>
        <pass>XXXX</pass>
    </videodatabase> 
     <videolibrary>
          <importwatchedstate>true</importwatchedstate>
     </videolibrary>

<cache>
<buffermode>1</buffermode>
<memorysize>2147483648</memorysize>
<readfactor>200</readfactor>
</cache>

 <pathsubstitution>
  <substitute>
    <from>special://profile/playlists/</from>
    <to>SMB:\\FLUTTERSHY\Docker_SSD\Kodi\playlists\</to>
  </substitute>
 </pathsubstitution>
</advancedsettings>

That said, that would explain why Kodi in video files view will list an .RM file where it'd hide say an .SRT file, since it doesn't consider .SRT to be a video extension.
But still I've tried multiple instances of Kodi and it won't play .RM files.  I even noticed this a few versions ago but failed to bring it up.  And renaming .RM to .RMVB 'fixes' it.
Reply
#4
this is something that goes back many many years

i did find that if you use advanced settings to <remove> .rm as a music file you get a different error in the log

recommended implementation would be to expand the advanced settings "extensions" remove/add capability to playlists because it seems to think that it is some sort of playlist after removing it as a music file


these all exist, but not playlist files (pls,m3u,m3u8,strm) so that is what i am suggesting to add
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
Reply
#5
(2024-01-29, 21:07)izprtxqkft Wrote: this is something that goes back many many years

i did find that if you use advanced settings to <remove> .rm as a music file you get a different error in the log

recommended implementation would be to expand the advanced settings "extensions" remove/add capability to playlists because it seems to think that it is some sort of playlist after removing it as a music file


these all exist, but not playlist files (pls,m3u,m3u8,strm) so that is what i am suggesting to add
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
- https://kodi.wiki/view/Advancedsettings....extensions
Ha ha, I love that what I thought was probably a very simple omission is in fact some kind of a 'thing'.
Reply
#6
(2024-01-29, 21:43)DJ_Izumi Wrote: Ha ha, I love that what I thought was probably a very simple omission is in fact some kind of a 'thing'.
probably goes to the 'devs only code for what they use'


reaching back to 2015 https://forum.kodi.tv/showthread.php?tid=218894
and revisited in 2018 https://forum.kodi.tv/showthread.php?tid=337385
Reply
#7
It only took 14 years for the problem to be reported :-)
It comes from a commit that uses the mime type to identify playlist-type files, and .rm is classified as one of those, which doesn't make much sense.
(it unfortunately shared the same mime type "audio/x-pn-realaudio" in MimeType.cpp as .ram, which really is a playlist)
That mime-type hasn't changed in code since at least 2008, would have to find svn history to go back further ;-)
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#8
(2024-01-30, 05:29)CrystalP Wrote: It only took 14 years for the problem to be reported :-)
It comes from a commit that uses the mime type to identify playlist-type files, and .rm is classified as one of those, which doesn't make much sense.
(it unfortunately shared the same mime type "audio/x-pn-realaudio" in MimeType.cpp as .ram, which really is a playlist)
That mime-type hasn't changed in code since at least 2008, would have to find svn history to go back further ;-)
Thank you very much for even looking at the issue, for a media type that more or less died hard the moment XviD/DivX became popular over two decades ago. Smile
Reply
#9
CrystalP has submitted a fix... https://github.com/xbmc/xbmc/pull/24607
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#10
thank you guys for reporting it and submit a fix I was watching this thread for the past few days as I have some home videos from the 80s and 90s that I wanted to add to Kodi but to be honest I wasn't brave enough to ask for a feature to support a type of video that is no longer in use. so again thanks and recognition to all of you
Reply
#11
(2024-01-30, 08:36)Karellen Wrote: CrystalP has submitted a fix... https://github.com/xbmc/xbmc/pull/24607

I'll donate CAD$20 if this goes to the top of the change list on the announcement post of v21's stable release, if only because that'd be funny as all heck. Big Grin
Reply
#12
If you want to test with your files before it gets merged then there is a build here https://mirrors.kodi.tv/test-builds/wind...pe-x64.exe which I created to test with the limited number of files I could find.
Reply
#13
So, it seems to work on my original test file, but not on some others:

This is Sailor Moon - Worlds Greatest.rm playing correctly:
https://justpaste.it/dnfp4

Meanwhile this one and other's like it fail.  I'm noticing that the any file that will not playback is RealMedia
https://justpaste.it/bume2

Every one that does work seems to be RV30 while the ones that don't work is RV40.  ...I also can't get these non-working files to work in anything else that uses FFMPEG either.  Is this an FFMPEG bug?  Same issue with older versions of Kodi, these files don't play regardless of the file extension.  I'm also including a google drive link to a zip with the two files I used:

https://drive.google.com/file/d/13SnlfBl...sp=sharing

Even HandBrake shares this issue, it can open the files Kodi can but not open the files Kodi can't.  I think this is likely an FFMPEG issue not a Kodi issue.

So hey, it's great, I appreciate this little fix, it was probably not a huge ask but it's appreciated all the same.  That said, this has apparently allowed me to uncover greater issues that are surely not worth the efforts of Kodi's devs for such a largely depreciated video format.
Reply
#14
ffmpeg provides the decoding, you can try creating a ticket over there. Some RV40 work so maybe the format has unsupported optional features or it could indeed be a bug.
You could use the real media player as external player of Kodi :-)

The problems in the log are here:
2024-01-30 19:40:12.572 T:41420   debug <general>: ffmpeg[0x192c0c9b1c0]: [rm] Unsupported stream type 000002b5
2024-01-30 19:40:12.572 T:41420   debug <general>: ffmpeg[0x192c0c9b1c0]: [rm] Unsupported stream type 000002f0

ffmpeg doesn't know what to do with the streams.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
Please add support for the .rm RealMedia file extension. Only .rmvb works.0