Jump to content

embyforkodi (next-gen) 6.X.X support


quickmic

Recommended Posts

33 minutes ago, quickmic said:

@heula

Please let me know if the delete is working, thanks.

Yes, delete is working again.

Thanks.

  • Thanks 1
Link to comment
Share on other sites

brilliwilli
On 12/3/2021 at 10:35 AM, quickmic said:

next-gen -> "perform local databse reset" and select yes when you will be asked for reset settings

sorry but i think i have to add some more information...

i am using emby on a himedia q5 pro. at the moment in native mode. everything is fine. himedia videoplayer is used in kodi for better playback (wrapper).

i have now set up a new media player and installed emby-next-gen beta and configured addon mode.
setup was ok and movies got imported and playback is possible. but only with the kodi videoplayer. when i click menu and say play with wrapper (himedia videoplayer) the wrapper app crashes.

after that i have removed emby-next-gen, installed it again and configured native mode. import of movies sucessful and also playback with himedia videoplayer works as expected.

any idea why it didn't work in addon mode?

Link to comment
Share on other sites

quickmic
6 minutes ago, brilliwilli said:

sorry but i think i have to add some more information...

i am using emby on a himedia q5 pro. at the moment in native mode. everything is fine. himedia videoplayer is used in kodi for better playback (wrapper).

i have now set up a new media player and installed emby-next-gen beta and configured addon mode.
setup was ok and movies got imported and playback is possible. but only with the kodi videoplayer. when i click menu and say play with wrapper (himedia videoplayer) the wrapper app crashes.

after that i have removed emby-next-gen, installed it again and configured native mode. import of movies sucessful and also playback with himedia videoplayer works as expected.

any idea why it didn't work in addon mode?

Well, the only difference between both is native file access vs http stream. Problably himedia cannot play webstreams (depends on the stream content)? Can you please send me a kodi.log.

Edited by quickmic
Link to comment
Share on other sites

brilliwilli

Perhaps an issue of the playercorefactory.xml of kodi?

<playercorefactory>
    <players>
        <player name="Wrapper" type="ExternalPlayer" audio="false" video="true">
            <filename>com.himedia.xbmcwrapper</filename>
            <hidexbmc>true</hidexbmc>
            <playcountminimumtime>120</playcountminimumtime>
        </player>
                
    </players>

    <rules action="prepend">
        <rule protocols="nfs" name="Wrapper" />        
        <rule protocols="smb" name="Wrapper" />
        <rule dvdimage="true" player="Wrapper"/>        
        <rule protocols="rtmp" player="Wrapper"/>        
        <rule protocols="rtsp" player="Wrapper" />        
        <rule protocols="sop" player="Wrapper" />        
        <rule protocols="pvr" player="Wrapper" />        
        <rule name="DVD-Ordner" filetypes="ifo|vob" player="Wrapper"/>    
        
        <!-- Internet streams -- Disabled for now -->        
        <rule internetstream="true" player="VideoPlayer"/>
        <rule name="pvr/http/udp" protocols="pvr|http|udp" player="VideoPlayer"/>
        
        <rule video="true" player="Wrapper"/>        
        <rule audio="true" player="PAPlayer"/>        
    </rules>
</playercorefactory>

Is it possible to play 4k movies in original resolution with addon mode? Or is there always a transcoding?
It is important for me to play the files in best video and audio quality.

Link to comment
Share on other sites

quickmic
28 minutes ago, brilliwilli said:

Is it possible to play 4k movies in original resolution with addon mode? Or is there always a transcoding?

It is important for me to play the files in best video and audio quality.

I can play 4k content, yes but also depends on hardware. Just try it.

I have no experience with playercorefactory, but I guess something like that could help:

<rule protocols="http" name="Wrapper" />

 

Link to comment
Share on other sites

brilliwilli

When i edit the playercorefactory to the suggested entry, the himedia videoplayer is standard player in kodi when i try to start the movie.

But the app crashes in addon mode. When i perform a local database reset and change from addon to native, everything is fine.

But then i have no cinema trailewrs before the movie 😩

Link to comment
Share on other sites

quickmic
2 minutes ago, brilliwilli said:

When i edit the playercorefactory to the suggested entry, the himedia videoplayer is standard player in kodi when i try to start the movie.

But the app crashes in addon mode. When i perform a local database reset and change from addon to native, everything is fine.

But then i have no cinema trailewrs before the movie 😩

please send me a kodi.log file

Also try if it works with transcoding...

Edited by quickmic
Link to comment
Share on other sites

brilliwilli

The HiMedia Wrapper doesn't support HTTP. Therefore XBMC Wrapper must be installed.

But why should i make HTTP streaming when i can play the files directly via SMB? Very disapointing that I can't use cinema trailer in native mode!
What is the reason for that? Do I have any other opportunity to achiev playing my files with himedia videoplayer and playing trailers due to cinema mode?

Edited by brilliwilli
Link to comment
Share on other sites

jonomite
On 12/2/2021 at 11:36 PM, quickmic said:

It's not a next-gen feature, that a stock Kodi function.

The easiest way will be installing a log-upload addon in Kodi. Not sure how it's called, but I think you can find it.

 

Here's a log capturing the issue (no remote controls, sending a text message doesn't work)

 

Edited by jonomite
Link to comment
Share on other sites

quickmic
8 hours ago, brilliwilli said:

The HiMedia Wrapper doesn't support HTTP. Therefore XBMC Wrapper must be installed.

But why should i make HTTP streaming when i can play the files directly via SMB? Very disapointing that I can't use cinema trailer in native mode!
What is the reason for that? Do I have any other opportunity to achiev playing my files with himedia videoplayer and playing trailers due to cinema mode?

Unfortunately cinema mode is almost impossible with native mode. I'm not explaining it in all it's details, but playing trailers is not a stock Kodi function. Therefore it's very hard to add this function. Lot's of ugly workaround would be required. I see what I can do, but I'm not promise anything yet.

Edited by quickmic
Link to comment
Share on other sites

brilliwilli

One idea:

why isn‘t it possible to define that i will only play local trailers and that the same way as local movies are played? Then no internetstream has to be used.

Link to comment
Share on other sites

brilliwilli

I have tested the playback in addon mode with the xbmcwrapper cause this wrapper can handle http.
But i have no success. I get the message "Please wait" and nothing else happens.

I have added a nas-folder with smb. The playback fromn this source works perfect.

Link to comment
Share on other sites

quickmic
2 hours ago, brilliwilli said:

One idea:

why isn‘t it possible to define that i will only play local trailers and that the same way as local movies are played? Then no internetstream has to be used.

As mentioned, stock Kodi does not provide this feature, therefore the (movie) play requests from Kodi must be intercepted, canceled, redirected to trailers, after trailer played initiate movie playback again and so on. All this must be done by the plugin. Kodi just can't do that out of the box.

addon-mode gives me much more options (intercepting Kodi play commands and redirections). But I don't wanna bother you with technical details you have to trust me on this. It's not that easy.

Edited by quickmic
Link to comment
Share on other sites

brilliwilli

I trust you and i can imagine that it isn't easy!

Do you have any idea what i can try? Have you seen something in the kodi.log?

Link to comment
Share on other sites

quickmic
2 hours ago, brilliwilli said:

I have tested the playback in addon mode with the xbmcwrapper cause this wrapper can handle http.
But i have no success. I get the message "Please wait" and nothing else happens.

I have added a nas-folder with smb. The playback fromn this source works perfect.

Please send me a another kogi.log here. Maybe I see something, btw.

Emby Trailers can be local or external. External trailers will ALWAYS be http based. Usually they come via youtube and the Kodi's youtube plugin is used.

Edit:

Youtube trailers are the "regular" ones.

Edited by quickmic
Link to comment
Share on other sites

quickmic
Just now, quickmic said:

Please send me a another kogi.log here. Maybe I see something, btw.

Emby Trailers can be local or external. External trailers will ALWAYS be http based. Usually they come via youtube and the Kodi's youtube plugin is used.

I see you are tryng to play hevc content (h265) with omx: -> OMX.MTK.VIDEO.DECODER.HEVC

Not sure if this works. Have you tried transcoding to h264 (just as a test case)?

Link to comment
Share on other sites

quickmic
2 minutes ago, brilliwilli said:

I have also tested by activating all transcoding options. Without success

Try disabling hardware decoding in Kodi player options (as a test).

Link to comment
Share on other sites

quickmic
17 minutes ago, brilliwilli said:

I have tried to start 2 files with xbmc wrapper without success and after that i started a file with the videoplayer with success.
Log attached.

kodi.log 42.18 kB · 0 downloads

 

Looks the play only detected an audio stream:

 

2021-12-07 10:42:50.022 T:3853  NOTICE: OpenFile: http://127.0.0.1:57578/movies/61e538cec929dd5c40595acf5c7613e8/embyvideo-4f7b840936594084a50792a5886ad3e5-46387-aff2e17d54708e2dae8bb02c8ba25db1-aff2e17d54708e2dae8bb02c8ba25db1-46380-4-4-movie-1394923-0-1-1-1-vp9-Eternals__2021__trailer.mkv
2021-12-07 10:42:50.036 T:5292  NOTICE: Process: Player : hu.xmister.xbmcwrapper
2021-12-07 10:42:50.036 T:5292  NOTICE: Process: File   : http://127.0.0.1:57578/movies/61e538cec929dd5c40595acf5c7613e8/embyvideo-4f7b840936594084a50792a5886ad3e5-46387-aff2e17d54708e2dae8bb02c8ba25db1-aff2e17d54708e2dae8bb02c8ba25db1-46380-4-4-movie-1394923-0-1-1-1-vp9-Eternals__2021__trailer.mkv
2021-12-07 10:42:50.036 T:5292  NOTICE: Process: Content:
2021-12-07 10:42:50.036 T:5292  NOTICE: Process: Args   :
2021-12-07 10:42:50.036 T:5292  NOTICE: Process: Start
2021-12-07 10:42:50.239 T:5292  NOTICE: ExecuteAppAndroid: hu.xmister.xbmcwrapper
2021-12-07 10:42:50.281 T:5292  NOTICE: Process: Stop
2021-12-07 10:42:50.281 T:5292  NOTICE: Process: Showing Kodi window
2021-12-07 10:42:50.336 T:5296  NOTICE: INFO: EMBY.hooks.player.Player: [ onPlayBackStarted ]
2021-12-07 10:42:50.384 T:5300  NOTICE: INFO: EMBY.hooks.monitor.Monitor: [ VideoLibrary_OnUpdate reset progress episode/46387 ]
2021-12-07 10:42:50.471 T:5304  NOTICE: INFO: EMBY.hooks.player.Player: [ onAVStarted ]
2021-12-07 10:42:50.480 T:3904  NOTICE: Float is supported
2021-12-07 10:42:50.480 T:3904  NOTICE: Multi channel Float is supported
2021-12-07 10:42:50.925 T:3904  NOTICE: Found 1 Lists of Devices
2021-12-07 10:42:50.925 T:3904  NOTICE: Enumerated AUDIOTRACK devices:
2021-12-07 10:42:50.925 T:3904  NOTICE:     Device 1
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_deviceName      : AudioTrack
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_displayName     : android
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_displayNameExtra: audiotrack
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_channels        : FL, FR, FC, LFE, SL, SR, BL, BR, BC, BLOC, BROC
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_dataFormats     : AE_FMT_S16LE,AE_FMT_FLOAT,AE_FMT_RAW,AE_FMT_RAW
2021-12-07 10:42:50.926 T:3904  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3
2021-12-07 10:42:50.927 T:3905  NOTICE: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4
2021-12-07 10:42:50.930 T:5319  NOTICE: INFO: EMBY.hooks.monitor.Monitor: [ UserDataChanged ] [{u'ItemId': u'46387', u'IsFavorite': False, u'Played': False, u'LastPlayedDate': u'2021-12-07T10:42:50.0000000+00:00', u'PlaybackPositionTicks': 0, u'PlayCount': 0}]
2021-12-07 10:42:50.931 T:3905  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 42528 m_frames: 2658 m_frameSize: 8 channels: 2
2021-12-07 10:42:50.940 T:5319  NOTICE: INFO: EMBY.hooks.monitor.Monitor: [ UserDataChanged skip update/46387 ]
2021-12-07 10:42:51.015 T:5322  NOTICE: INFO: EMBY.hooks.player.Player: [ onPlayBackStopped ]

 

Sorry to say, but I think you need to ask an "hu.xmister.xbmcwrapper" expert. I'm not.

 

I'll try to add trailer support for native mode...

Edited by quickmic
Link to comment
Share on other sites

quickmic
6 minutes ago, brilliwilli said:

Wow, that would be fantastic.

But this would only work with local trailers. Are you using local trailers (only)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...