Jump to content

m2strm: a console app to create strm-files from m3u8 (free open source) (win/lnx)


trix77
 Share

Recommended Posts

Hi all! I've been working on this for quite some time now, first as a bash script, now as a console app written in C#. Please check it out an give feedback! I am atm using Jellyfin and Kodi, so I am not 100 that everything works with Emby.

To run it in Windows, first open a cmd-window with administrator rights and then cd to the directory where you've downloaded the file, then type m2strm.exe /? to get the help content.

To run it in Linux, you need first need to install Mono, in Debian that is: sudo apt-get install mono-devel mono-vbnc

Then run it with mono m2strm.exe

M3U8 is the same as m3u_plus.

Download it from github under Releases here:

https://github.com/trix7777/m2strm

Edited by trix77
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 2 months later...
Mark II


trix77,

Just wanted to say thanks for this tool!

I ran my entire m3u file through it and am adding entries to Emby on an as-want basis.

Took awhile to run, but we're talking about a 36M input file here.

C:\m2strm\Bin>m2strm
2/17/2021 1:21:02 PM: *** Using config set M3U8-file: C:\m2strm\Bin\VOD.m3u
2/17/2021 1:21:02 PM: *** BaseDirectory: C:\m2strm\Bin\
2/17/2021 1:21:02 PM: *** OutDirectory: C:\m2strm\Bin\Output
2/17/2021 1:21:02 PM: *** Movie subfolder: VOD Movies
2/17/2021 1:21:02 PM: *** Series subfolder: VOD Series
2/17/2021 1:21:02 PM: *** TV subfolder: TV Channels
2/17/2021 1:21:02 PM: *** Configuration file in use: C:\m2strm\Bin\m2strm.exe.config
2/17/2021 1:21:02 PM: *** Unwanted groups file in use: C:\m2strm\Bin\uwgroups.cfg
2/17/2021 1:21:02 PM: *** Processing C:\m2strm\Bin\VOD.m3u
2/17/2021 1:37:34 PM: *** Purging files in: C:\m2strm\Bin\Output
2/17/2021 1:37:37 PM: *** Movies summary: 18459 new, 1182 skipped (whereof 1182 dupes), 19641 in total
2/17/2021 1:37:37 PM: *** Episodes summary: 130927 new, 246 skipped (whereof 246 dupes), 131173 in total
2/17/2021 1:37:37 PM: *** TV-channels summary: 0 new
2/17/2021 1:37:37 PM: *** Processing time: 00:16:35.19

C:\m2strm\Bin>

The only suggestion I would make is that you put a "Release" package on github or at the very least, leave an .exe in the Release directory of the project.

This would allow for more people that might not code to use it.

Thanks again,

Mark
 

 

 

VOD Movies.png

Link to comment
Share on other sites

trix77
21 hours ago, Mark II said:


trix77,

Just wanted to say thanks for this tool!

I ran my entire m3u file through it and am adding entries to Emby on an as-want basis.

Took awhile to run, but we're talking about a 36M input file here.


C:\m2strm\Bin>m2strm
2/17/2021 1:21:02 PM: *** Using config set M3U8-file: C:\m2strm\Bin\VOD.m3u
2/17/2021 1:21:02 PM: *** BaseDirectory: C:\m2strm\Bin\
2/17/2021 1:21:02 PM: *** OutDirectory: C:\m2strm\Bin\Output
2/17/2021 1:21:02 PM: *** Movie subfolder: VOD Movies
2/17/2021 1:21:02 PM: *** Series subfolder: VOD Series
2/17/2021 1:21:02 PM: *** TV subfolder: TV Channels
2/17/2021 1:21:02 PM: *** Configuration file in use: C:\m2strm\Bin\m2strm.exe.config
2/17/2021 1:21:02 PM: *** Unwanted groups file in use: C:\m2strm\Bin\uwgroups.cfg
2/17/2021 1:21:02 PM: *** Processing C:\m2strm\Bin\VOD.m3u
2/17/2021 1:37:34 PM: *** Purging files in: C:\m2strm\Bin\Output
2/17/2021 1:37:37 PM: *** Movies summary: 18459 new, 1182 skipped (whereof 1182 dupes), 19641 in total
2/17/2021 1:37:37 PM: *** Episodes summary: 130927 new, 246 skipped (whereof 246 dupes), 131173 in total
2/17/2021 1:37:37 PM: *** TV-channels summary: 0 new
2/17/2021 1:37:37 PM: *** Processing time: 00:16:35.19

C:\m2strm\Bin>

The only suggestion I would make is that you put a "Release" package on github or at the very least, leave an .exe in the Release directory of the project.

This would allow for more people that might not code to use it.

Thanks again,

Mark
 

 

 

 

Thank you Mark! Yeah, strange thing is that if run in Linux through Mono it's lightning fast even on 30MB+, if it takes like 15 mins in Windows it only takes 20 seconds in Linux. I guess the file management works quite different in the two OS's.

Well, there is a release .exe if you click "Releases" (right column) and then "Assets" 😃

Cheers 😃

Link to comment
Share on other sites

  • 6 months later...
jimbo94

Hi, 

Great tool. But it is skipping files "Dublicates" I have for instance one group that has the name "Movie- Multi Subtitles" and one with the name "Movie- 4K" 
I don't want the tool to skip files in these as of now there is maybe 20 4k files out of 250. and that is because the tool already found them in "Movie- Multi Subtitles" 

I wouldn't mind if I have doublicates as long as they are in different groups so to speak. 

 

Best Regards

Edited by jimbo94
Link to comment
Share on other sites

trix77
5 hours ago, jimbo94 said:

Hi, 

Great tool. But it is skipping files "Dublicates" I have for instance one group that has the name "Movie- Multi Subtitles" and one with the name "Movie- 4K" 
I don't want the tool to skip files in these as of now there is maybe 20 4k files out of 250. and that is because the tool already found them in "Movie- Multi Subtitles" 

I wouldn't mind if I have doublicates as long as they are in different groups so to speak. 

 

Best Regards

Hi, glad to see that someone finds it useful! 😃 Regarding your post, I'm sorry to say that I am not interested in adding or removing features to it atm, read about how it works under the section "Notes about dupes". The app strips the 4K from the title in the following code:

            //remove [4K] tag
            fileName = Regex.Replace(fileName, @"\[4K\]", "", RegexOptions.IgnoreCase);

            //remove 4K tag
            fileName = Regex.Replace(fileName, @"4K", "", RegexOptions.IgnoreCase);

Cheers

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
 Share

×
×
  • Create New...