-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to not encode - only convert mkv to mp4? #677
Comments
Just add all the video codes you do not want to convert to the accepted values. H264,hevc w/e and it will try and copy them as long as u don't set the bit rate limit |
@Mirabis , I'm a bit confused. Sorry, a bit of a noob when it comes to encoding. " add all the video codes you do not want to convert" So right now I have the following in my autoprocess.ini: video-codec = h264,x264 So, you're saying remove H264? |
@seanvree in your case it will convert anything that is not h264 OR x264 TO h264. So if you always want to copy you must add the video codes you want to copy to that line. E.g. H264,x264,x265,h265 would copy all those and if neither, it will convert to the first value. |
@Mirabis - Gotcha! Thanks! One final question, if I'm just wanting to copy from mkv to mp4, those are the main codecs, right? So If I add those to the that line, it shouldn't have to convert (often) unless it's a weird video release, right? Because with my entry before it was converting all of the files no matter what. |
mkv and mp4 are containers not codecs just in case it is not clear. Post your whole autoProcess.ini for the mp4 variables. If the files that manual.py comes across are mkv and is one of the "video-codec" values it will copy the video and not transcode. It still takes some time to create a new mp4 so that might be what you are seeing. It should also take vastly less time to copy than transcode. If any of your files are already mp4 it will only convert if it doesn't meet some other requirement, ie. video quality, audio codec, subtitles, ios audio. oh and to run it manually it is |
@zybeon - Right, I know MKV and MP4 are not codecs. I'm a noob but not that noob! Ha! Anyway, yeah, i'm really only concerned with copying from MKV to MP4. When I run the Manual.py, it copies just fine, but for some reason when it automatically runs from SABNZBD it's re-encoding despite the source (and it takes a while). Here is what I got in my autoprocess.ini: [MP4] |
can you post the SABNZBD log showing what all it is doing. The "ios-audio=true" will always cause an audio reencode if there is any audio stream with more than 2 channels and not already ac3. Also "ios-first-track-only=false" could create multiple copies of audio streams if the file has more than one audio stream with more than 2 channels. |
@zybeon - No problem: So this file has been processing for 7 hours now and is 65% done. The original format was X264 MKV, so why is it taking so long to simply convert it to MP4? So the input MKV Downloaded from SAB and sent to the script was as follows:General Video Audio #1 Audio #2 Audio #3 Text #1 Text #2 Text #3 Text #4 Text #5 Text #6 Text #7 Text #8 Text #9 Text #10 Sab sent it to the script...here is the output: 02-14 09:12:23 - SABPostProcess - INFO - SAB post processing started. |
From what I can tell it is copying the video over and only making a iOS compatible track for the 5.1 channel track (Audio #1). So it should only be transcoding that single audio track when making the mp4. No matter your system specs it should not be taking 7 hours. Can you change "ios-audio" to "false" and try another mkv file with h264/x264 codec? |
How long it takes to encode/transcode is entirely hardware dependent Is there anything in the log after "starting conversion" ? There should usually be a printout (it might only be in info.log) of what is being converted and what is being copied |
Hey guys, everything is working great! Thanks for all the help! |
First, THANK you for this! It's great!
I'm currently using this for Radarr and Sabnzbd, and everything is working great.
I'm wondering how I can use this script to NOT encode and only convert from MKV to MP4?
Essentially, I can run this script manually, but how would I do this with this tool:
ffmpeg -i <source.movie.title>.mkv -vcodec copy -acodec copy <output.movie.title>.mp4
Thanks!
The text was updated successfully, but these errors were encountered: