Closed CanisHelix closed 2 years ago
Subtitle encoding failed
Looks like you've got some bad subtitles in your source file that are messing up FFMPEG
Try turning on subtitle cleaning with CleanIt which looks like it's off in your settings
I'll give that a try, this config file has served well for many years :) I did get the same errors on another series but adding the queue param to 9999 fixed that one (even though it also has the same subtitle error), hence I wasn't sure that was the cause. I'll try turning cleanit on next.
So now I'm getting Non-monotonous DTS in output stream 0:3
/Non-monotonous DTS in output stream 0:4
/Non-monotonous DTS in output stream 0:5
(getting a new DEBUG log now), but these are Subtitle streams from the looks of it.
Going to try -fflags +igndts
as recommend by some googling.
Yeah unfortunately its really up to the creator of the source material but its really more an FFMPEG problem you have to work around but hopefully that sorts things out
The DTS thing however is usually just a warning and shouldn't be causing failure, if that doesn't fix it just post the whole logs and I'll take a look
The only way so far has been to use FFMPEG to strip out the subtitle streams completely. After cleanit I looked at the srt files it produced, each of them has a few subtitles lines that are over 100k characters in length, unicode bytes from the looks of it.
ffmpeg -i input -map 0 -map -0:s -map -0:d -c copy output
Would it be possible that this might work in pre/postopts too?
Just wondering if it's possible use cleanit to strip out and get the srt's, but not re-encode them back into the mp4, but leave the .srt's separated.
Seems like it's just a corrupt subtitle file that's breaking the encoder
More than likely a corrupt lined or two.
Do you think adding -map, 0, -map, -0:s, -map, -0:d
would prevent it from embedding the subtitles, but allow CleanIt to extract them for manual cleanup as Plex can use .srt I think without being embedded.
Edit: embed-subs: False
might be better if I'm reading this right.
Just turn off embed subs in autoProcess and it'll extract them and clean
Change your sub codec to srt as well
Thanks for all the help, got it working and converted now.
Describe the bug
Error occurrring and failing to convert mkv to mp4 for 9 files of a series. Tried 4 times via Sonarr importing, and 1 time manual.
Command or context you are trying to run
/usr/local/sma/venv/bin/python /usr/local/sma/manual.py -i ./Sword\ Art\ Online\ -\ S04E06\ -\ \[HDTV-1080p\]\[AAC\ 2.0\]\[x265\].mkv
autoProcess.ini settings
Log files Full log from manual run is at https://pastebin.com/T4b1wcKd
Debug Log Attached sma.log
FFMpeg headers ffmpeg version 5.0.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2022 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-li sma.log baom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
System Information mdhiggins/sonarr-sma