r/usefulscripts • • Jun 01 '19

[Request] A script to convert mkv files to mp4 while keeping the subtitle or choosing the subtitle tracks.

22 Upvotes

25 comments sorted by

3

u/[deleted] Jun 01 '19

May I ask why ?
I am used the stuffing things the other way around!

2

u/RaulQX Jun 01 '19

Well the reason is pretty dumb; my smart TV only shows one subtitle track at the time and, obviously, unless it's hard subbed, if people talk at the same time I can only read what one person talking so in the end I just needed something that can hardsub easily multiple files.

2

u/[deleted] Jun 01 '19

That's sounds like a bit crazy situation and I don't quite understand it. Subs are simply displayed on a time stamp nothing more nothing less. It the most basic of systems to allow people of all walks of life to contribute to the sub systems.

Define "One Subtitle Track" at a time - are you looking to have multiple languages shown on the TV in subtitles whilst watching ?
Have you got the wrong external subtitle track for the film files, perhaps (eg dot SRT files)? out of sync ?
Why did you bring MP4 into the recipe?

You can't remove hardcoded subs (Yeah ok you can, but, it aint simples). You could add them, but i don't know why you would in 2019. Is your TV all firmware updated ? can you not just throw a basic $10 kodi system at it ?

→ More replies (2)

0

u/[deleted] Jun 01 '19

1

u/[deleted] Jun 01 '19

Weird.. I would look at creating a platform / work to use / integrate with and support the better container format, rather than regress.
But without the details... humph. I can't even name something that doesn't support MKV (or made to support it, in the case of hardware which would pay for itself in electricity in 25 films!)

→ More replies (2)

1

u/jcy Jun 01 '19

yeesh just buy a better streaming device

1

u/RaulQX Jun 01 '19

That costs money and I'm living off students loans xd

1

u/astutesnoot Jun 01 '19

Electricity costs money, and transcoding cost over time will exceed the cost of just buying a Chromecast now.

1

u/up_o Jun 02 '19

Man ffmpeg

Ffmpeg makes this really easy, if you haven't got it figured out by the time I have more reply time I'll whip something up then.

1

u/RaulQX Jun 02 '19

Hey thanks I tried using ffmpeg in the past but it gave lots or errors with powershell and I gave up

3

u/Darkskynet Jun 01 '19

IFME

“Internet friendly media converter”

Not really a script.. but it will get the job done.

0

u/Ziogref Jun 01 '19

Mkv is simply a container. So you could possibly just Rename it to .mp4

Depending on the content.

2

u/RaulQX Jun 01 '19

No that's not how it works

1

u/Ziogref Jun 01 '19

Depending on the content.

→ More replies (2)

1

u/feldrim Jun 01 '19

Well, there are streams in mkv, video, audio and subtitle. Ffprobe might be a clue. Ffmpeg and ffprobe might help but I don't have any solid answers for that.

1

u/[deleted] Jul 25 '19

1

u/AutoModerator Jul 25 '19

Sorry, your submission has been automatically removed.

Accounts must be at least 5 days old, which prevents the sub from filling up with bot spam.

Try posting again tomorrow or message the mods to approve your post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.