Comments (2)
This is more of a general FFMPEG question and maybe not the appropriate place to be asking but I can give some general guidance
Without logs it will be hard to nail down a specific bottleneck but there's always going to be some kind of bottle neck
If you're remuxing everything and doing no transcoding then your HDD (or SSD) read/write speeds will be your main bottle neck
Metadata writing for MKVs does do a second pass and essentially writes the metadata with a full remux transcode as a second step so this can add some time since it essentially has to rewrap the streams in a fresh mkv container, but this is only limited by your drive read/write so should be relatively quick still, mp4's don't have this limitation since they are written by mutagen (though mp4s usually get processed by qtfaststart which also needs to rewrap the file so you come out even)
Transcoding is always where you lose the most speed
Video being the slowest even with hardware transcoding
Software video transcoding depending on hardware can take hours
Certain filters aren't supported by hardware transcoding so even when using hardware you can have a software layer that slows it down substantially
Then audio
FFMPEG audio transcoders are pretty much all single threaded and do not benefit from hardware acceleration so it can take some time for larger sources but still should be measured in minutes not hours, an order of magnitude faster than video
Then subtitles which is almost negligible since its only text based subtitles which takes a few seconds at most
The other thing to consider is source material; Content length/duration and bitrate play a huge role. Higher bitrate means more data. This makes every part of the process take longer. Remuxing will take longer just due to bigger size. Transcoding can take longer for more complicated formats (more audio channels, higher fidelity formats, higher bitrate all make audio transcoding more complicated and time consuming). And higher quality transcoding comes at the cost of time.
You can watch the SMA logs to see if there's a particular spot that things are hanging but the times you are reporting don't seem excessive
I also use a ramdisk for most of my transcoding which speeds things up but you need quite a bit of ram for this approach, but this won't be huge gains over an ssd
from sickbeard_mp4_automator.
OK makes sense then. Thanks!
from sickbeard_mp4_automator.
Related Issues (20)
- Use hardware encoder and software decoder HOT 5
- Invalid format string in avcodecs.py NVEncH265Codec HOT 3
- Error in postSonarr with recent Sonarr update (4.0.1.929 — Jan 19 2024) HOT 2
- Generic Permissions HOT 1
- Need help with skipStream HOT 2
- How to get/configure SMA to use my Nvidia GPU HOT 5
- SAB Stating it is unable to run script HOT 2
- Problem embedding external subtitles HOT 1
- Subtitle marked as default HOT 11
- Convert only french audio track if not in codec list HOT 7
- Not Processing files running in Manual Mode HOT 9
- Embed subtitles srt. HOT 7
- Error processing some anime HOT 6
- subtitle errors HOT 8
- [Question] Proper way to utilize output-directory and temp-extension HOT 1
- post_process scripts not running HOT 2
- Pip package dependency issue, qtfaststart won't install HOT 8
- Docker vaapi build: No such file or directory: '/usr/local/bin/ffprobe HOT 5
- Integrating SMA with FFmpeg in Docker
- Skip Encoding? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sickbeard_mp4_automator.