22
submitted 6 months ago by priapus@sh.itjust.works to c/jellyfin@lemmy.ml

Do any of you have any software you can recommend for removing unwanted audio tracks and subtitles? Some of my shows and movies have multiple, and the Roku app does not follow the users set default language, leading to it playing the wrong track when autoplaying.

I've tried unmanic, but its unfortunately too heavy for my server, just slows everything to a crawl.

all 23 comments
sorted by: hot top controversial new old
[-] Krafting@lemmy.world 11 points 6 months ago* (last edited 6 months ago)

mkvtoolnix and ~~handbrake~~ are pretty useful and powerful, you might try those

[-] five82@lemmy.world 11 points 6 months ago* (last edited 6 months ago)

If you just want to remove audio and subtitle tracks, don’t use Handbrake. That will re-encode your video which will result in quality loss. Use MKVToolNix or FFmpeg to remux instead and only remove the tracks you don’t want.

Remuxing is also much faster and less cpu intensive than re-encoding.

[-] Krafting@lemmy.world 3 points 6 months ago

Doesn't handbrake has an option to not re-encode the video ? But yeah totally agree, it's not worth it to re-encode everything just to remove audio tracks.

[-] five82@lemmy.world 3 points 6 months ago

It didn’t when I last used it. But that was also years ago. The Handbrake devs were pretty adamant back then about not adding remuxing.

[-] priapus@sh.itjust.works 1 points 6 months ago

MKVToolNix did look like it could do a good job with this, but I have a lot of files that aren't mkv

[-] Zubgub 2 points 6 months ago

I can't check right now, but I'm pretty certain I've used MKVToolNix to remove unwanted audio files from an mp4 before. However, the result will always be remuxed to mkv.

[-] priapus@sh.itjust.works 1 points 6 months ago

I'll give that a try, thanks.

[-] db2@lemmy.world 5 points 6 months ago
[-] priapus@sh.itjust.works 1 points 6 months ago

I was avoiding writing an ffmpeg script to do this in a somewhat organized way, but it probably is the best option. I'll look into it.

[-] db2@lemmy.world 1 points 6 months ago

Maybe it's possible to make it just part of the transcoding process so your source material can stay unadulterated?

[-] tordenflesk@lemmy.world 3 points 6 months ago

Remuxing with unmanic / tdarr shouldn't be a very intensive task. If your server can't handle reading an writing to a disk you've got other issues.

[-] priapus@sh.itjust.works 1 points 6 months ago

My server doesn't have any other performance problems, it handles transcoding for jellyfin great. Maybe I'll just reach out in the unmanic discord to try to figure out why this is happening.

[-] Spuddlesv2@lemmy.ca 2 points 6 months ago

Tdarr will do this but if your server is struggling with unmanic then no solution will work well for you. I think possibly you might be doing more than just remuxing to remove audio and subs if it’s thrashing your server.

[-] priapus@sh.itjust.works 1 points 6 months ago* (last edited 6 months ago)

That's what I've been thinking, but I don't know how that could be happening. I only have a plugin to remove unwanted audio tracks and another to remove unwanted subs enabled. Despite this, whenever I start the container every other service on the server becomes unusable.

It's especially confusing because the server can handle transcoding multiple streams on Jellyfin at the same time without a problem.

[-] BaumGeist@lemmy.ml 1 points 6 months ago

stupid question, but does your server have a video card or only the CPU's (or SOC's) built-in GPU?

If you do, you might want to make sure you've configured ffmpeg to use the hardware acceleration

Also, could be that unmanic is trying to reencode the files, which would eat up wayyyyyyyy more resources than necessary. It looks like the least overhead/performance hungry option will be to just run ffmpeg directly, so you know exactly what's being done.

[-] priapus@sh.itjust.works 1 points 6 months ago

It does have a GPU and Jellyfin is set up to use it, but I might need to do some more work to get unmanic to use it since it's in a container. I didn't think it would need my GPU for this since it shouldn't require transcoding.

[-] worldofbirths@lemmy.world 1 points 6 months ago

Any idea on why unmanic was not performing well? If it's unrelated to ffmpeg, you could try tdarr.

[-] priapus@sh.itjust.works 1 points 6 months ago

ffmpeg is working fine for jellyfin, so I believe it's unmanic. i'll take a look at tdarr.

[-] catloaf@lemm.ee 1 points 6 months ago* (last edited 6 months ago)

ffmpeg is the swiss army knife of video and audio

[-] BaumGeist@lemmy.ml 1 points 6 months ago

right? I know the unix philosophy disagrees, bur goddamn is it so convenient and versatile.

plus overpowered CLI tools like ffmpeg are the definitive case where CLI is definitely preferable to GUI by almost every metric. Why go hunting through a labyrinth of dropdowns and dialog boxes when I could just search the man page and type a few characters.

[-] Sailing7@lemmy.ml 1 points 6 months ago

As others have suggested: MKVToolnix If that doesn't work for you, losslesscut also has the capability to remove audio and video streams - subtitle streams hower, i dont know.

I would tend to use mkvtoolnix though

this post was submitted on 15 Apr 2024
22 points (100.0% liked)

Jellyfin: The Free Software Media System

5720 readers
3 users here now

Current stable release: 10.10.0

Community Standards

Website

Forum

GitHub

Documentation

Feature Requests

Matrix (General Information & Help)

Matrix (Announcements)

Matrix (General Development)

Matrix (Off-Topic) - Come get to know the team and blow off steam!

Matrix Space - List of all the available rooms on Matrix.

Discord - Bridged to our Matrix rooms

founded 4 years ago
MODERATORS