How I make a MPEG transport stream?

Post Reply
User avatar
X17
Member
Posts: 32
Joined: Sat Apr 24, 2021 17:44

How I make a MPEG transport stream?

by X17 » Post

I need a MPEG transport stream to make a tree. How I can create one?

X17

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: How I make a MPEG transport stream?

by Walker » Post

thsi is a simple one ^^:

Code: Select all

ffmpeg -i movie.whatever out.ts

User avatar
Linuxdirk
Member
Posts: 3216
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: How I make a MPEG transport stream?

by Linuxdirk » Post

I highly doubt that you need a video broadcast container format to make a tree.

User avatar
Walker
Member
Posts: 1802
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: How I make a MPEG transport stream?

by Walker » Post

Linuxdirk wrote:
Fri Jun 25, 2021 06:48
I highly doubt that you need a video broadcast container format to make a tree.
sometimes you just have to believe that people already know what they are doing XDD

Bastrabun
Member
Posts: 210
Joined: Mon Nov 04, 2019 19:48

Re: How I make a MPEG transport stream?

by Bastrabun » Post

From context I'd guess something kindly autocompleted "mts" to that MPEG thingy.

You can create mts files with a worldedit command:

//mtschemcreate NAME

Find worldedit here:

https://content.minetest.net/packages/sfan5/worldedit/
Whatever I say is CC0

User avatar
X17
Member
Posts: 32
Joined: Sat Apr 24, 2021 17:44

Re: How I make a MPEG transport stream?

by X17 » Post

Just for understanding:

I didn't know what a mts is, so I looked in the properties, where
my system said that the file is an MPEG transport stream.
I thought that this is a common phrase, so I asked for it.

User avatar
Blockhead
Member
Posts: 1602
Joined: Wed Jul 17, 2019 10:14
GitHub: Montandalar
IRC: Blockhead256
In-game: Blockhead Blockhead256
Location: Land Down Under
Contact:

Re: How I make a MPEG transport stream?

by Blockhead » Post

Big lol @ the confusion (not at your expense, it's just that determining file types is a hard problem in general). In actuality you are looking for info on the Minetest Schematic format.

Some Linux file managers have more intelligence than just looking at the extension to figure out what a file is. GNU file just guesses Minetest schematics are 'data' because they're binary files and file doesn't track Minetest schematics' file extensions, it doesn't know what it is from its contents like a lot of file managers do. Windows will just decide to look up a dumb list of extensions. So since '.mts' has been used as an extension for 'MPEG transport stream', your file manager just goes and guesses that's what it is.

Use schemedit to make and save schematics to your world directory. In particular because you are making trees, you need to make sure the leaves don't get marked as player-placed so they'll decay properly. You can't just use the screwdriver though. I would recommend the param2 tool from devtoys. Use the F5 debug menu and make sure every leave node you place has param2 = 0 instead of the default 1 for player-placed. Then once you save the schematic you can copy the files to a mod, other world or wherever and the tree should work well when placed.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂

Corax
Member
Posts: 18
Joined: Tue Jan 05, 2021 17:59

How to add a 'magic' entry for Minetest Schematic files

by Corax » Post

Maybe someone finds this information useful:

The Minetest Schematic File documentation specifies the header as a sequence of four characters "MTSM", followed by a version number and various other bits of information.

I've checked my local magic database (/usr/share/misc/magic) and found no occurrences of MTS* except in a comment in ./msdos, so I'd say it's reasonably safe to add a custom definition like this:

Code: Select all

$ grep --recursive --ignore-case mts /usr/share/misc/magic
/usr/share/misc/magic/msdos:# with MTSM=RJSPBS in [MasterThemeSelector] inside *.theme
$ mkdir ${HOME}/.magic
$ echo '0       string          MTSM    Minetest Schematic file' >${HOME}/.magic/minetest
Depending on your installation and preferences, you may or may not need to recompile the magic.mgc file for your local user and/or system-wide:

Code: Select all

$ file --compile --magic-file /usr/share/misc/magic:${HOME}/.magic
# cp magic.mgc /usr/share/misc/magic.mgs
et voilà,

Code: Select all

$ file myschematic.mts
myschematic.mts: Minetest Schematic file

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests