Jump to content

A problem Use infuse stream video from emby server


xingyu

Recommended Posts

xingyu

    It seems that infuse can smooth stream most video formats include MKV、MP4、1080P BDMV 、1080P ISO and UHD ISO ,but when I play 4K UHD BDMV files, infuse failed to play and the emby dialog records the hdmv3000 error. 

System.Exception: System.Exception: Clip info file 00000.clpi has an unknown file type HDMV0300.
	   at BDInfo.BDROM.Scan()
	   at BDInfo.BdInfoExaminer.GetDiscInfo(String path)

    Many people use Apple TV, and infuse perform very well in apple TV . There is a problem that it will take a long time more than a minute before infuse start to stream 1080P BDMV files using samba.But when infuse stream 1080P BDMV files using emby ,video can be played immediately. All video formats perform very well using this way except 4K UHD BDMV.

    Many people are fans of Blu-ray original folder,for example , I have 400 UHD BDMV movies. 

    I know many people have raised this bug!

    I hope the developers can take the time to solve this problem. Even though this is a complicated job to streamand transcode this using emby app, we can deal with the problem of  making infuse can obtain the correct playback information to play first.

    After solving it, I feel emby is the perfect media software.😍🤩😘

    Thank you !

Link to comment
Share on other sites

xingyu

According to other people’s descriptions in other topics, I wrote a batch process in python

import os

# The folder path of BDMV to be modified, Support multiple BDMV processing
PATH = r'the path you need to handle'


def handle_file(path):
    for root, lists, files in os.walk(path):
        for file in files:
            file_path = os.path.join(root, file)
            if file == r'index.bdmv':
                print(file_path)
                replace_bytes(file_path, b'INDX0300', b'INDX0200')
                continue
            if file == r'MovieObject.bdmv':
                replace_bytes(file_path, b'MOBJ0300', b'MOBJ0200')
                print(file_path)
                continue
            if file.endswith(r'.clpi'):
                replace_bytes(file_path, b'HDMV0300', b'HDMV0200')
                print(file_path)
                continue
            if file.endswith(r'.mpls'):
                replace_bytes(file_path, b'MPLS0300', b'MPLS0200')
                print(file_path)
                continue


def replace_bytes(path, old_byte, new_byte):
    file_obj = open(path, 'rb')
    content = file_obj.read()
    if old_byte in content:
        content = content.replace(old_byte, new_byte)
        print('File modified successfully: ', path)
    else:
        print('No need to modify the file:', path)

    with open(path, "wb") as output_file:
        output_file.write(content)


if __name__ == '__main__':
    handle_file(PATH)

After processing, emby can scan for UHD BDMV ‘s detailed information, and infuse can also play perfectly!

111.thumb.png.de79a4c87b4b2ec42f5a4b01bcf49b46.png

Link to comment
Share on other sites

xingyu

After further testing, emby app and web also can stream most of UHD BDMV video after replace the file binary below.

in index.bdmv: INDX0300 to INDX0200

in MovieObject.bdmv: MOBJ0300 to MOBJ0200

in *.mpls: MPLS0300 to MPLS0200

in *.clpi: HDMV0300 to HDMV0200

 

Link to comment
Share on other sites

vdatanet
3 minutes ago, Luke said:

Hi there, have you considered converting to mkv?

That's a good idea, ISO files are not streaming friendly.

Link to comment
Share on other sites

4 hours ago, Luke said:

Hi there, have you considered converting to mkv?

No!

Why choose BDMV format instead of mkv is because Blu-ray players such as Pioneer UDP-LX500/LX800 and oppo203/205 have very poor compatibility with mkv, but the compatibility with BDMV is native and excellent.

Blu-ray player is the best choice for home theater, the picture quality and sound effect are better than any other players , for example Android players.

Some BDMV Blu-ray formats are dual-layer Dolby Vision. The picture quality of Dolby Vision is better than ordinary HDR10, and Dolby Vision with mkv is poor.

Sometimes we want to be able to watch movies on other devices, for example iphone and ipad. For the storage of hundreds of movies, saving another copy of mkv is a waste of hard disk space and a job that takes a lot of time.

Link to comment
Share on other sites

On 8/10/2021 at 3:12 AM, Luke said:

Hi there, have you considered converting to mkv?

The official may consider supporting the improvement of this function ?

Link to comment
Share on other sites

21 minutes ago, xingyu said:

The official may consider supporting the improvement of this function ?

It's possible for the future. Thanks.

Link to comment
Share on other sites

  • 1 year later...
vluobotou

iso无法播放,且无法转换mkv

On 8/16/2021 at 11:10 PM, Luke said:

未来是有可能的。谢谢。

 

Edited by vluobotou
Link to comment
Share on other sites

  • 2 months later...
lovejay66
On 2021/8/9 at PM5点07分, xingyu said:

根据其他人在其他主题中的描述,我用python写了一个批处理过程









处理后emby可以扫描UHD BDMV的详细信息,infuse也可以完美播放!

111.thumb.png.de79a4c87b4b2ec42f5a4b01bcf49b46.png

Please tell me how to use this, I am not a computer professional, I hope to have a detailed tutorial, thank you

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...