Topic: Transcoding seems broken for split video files after recent update.
I often split large videos into 10 minute chunks before transcoding each and merging them back together, because electricity is unstable in my country and I don't want to start again from 0% after my PC loses power at 87%. This has worked well so far, until the last update.
It seems transcoding no longer works for split files, particularly the second segment and upwards as it seems to work fine on the first segment. I have 12 segments of videos and before the update, I had the first 10 already transcoded. Today, I tried to transcode the 11th and got the error. Tried with the 10th, and 2nd, and also got the error. But transcoding the 1st works fine.
I use FFMPEG to split the videos using the params
-c copy -map 0 -segment_time 10:00 -copyts -avoid_negative_ts make_non_negative -f segment -reset_timestamps 1
.
Below is the logs for one of the segments I already transcoded earlier, throwing the error.
04:38:40.342: ===== Starting mpv ======
04:38:40.342: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024010.mkv --o=D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024010.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --video-crop=0x0+0+0 --vf=vapoursynth:[C:\Users\Peter Egunjobi\AppData\Roaming\SVP4\scripts\ffff.py]:4:7 --of=matroska --ovc=hevc_nvenc --ovcopts=b=77059334,preset=slow,rc=vbr,maxrate=100177134,bufsize=154118668,time_base=1000/60000,threads=7
04:38:40.389: ● Video --vid=1 (hevc 3840x2080 24 fps) [default]
04:38:40.389: ○ Audio --aid=1 (aac 6ch 48000 Hz) [default]
04:38:40.389: ○ Subs --sid=1 --slang=eng 'SDH' (subrip) [default]
04:38:42.755: [autoconvert] Converting yuv420p10 -> p010
04:38:42.905: VO: [lavc] 3840x2080 => 3855x2080 p010
04:38:42.905: [vo/lavc] Opening encoder: NVIDIA NVENC hevc encoder [hevc_nvenc]
04:38:43.289: [encode] Opening output file: D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024010.SVP.temporary.mkv
04:38:43.289: [encode] Opening muxer: Matroska [matroska]
04:38:43.403: V: 00:00:00 / 00:10:01 (0%) {1.8min 0.0MB}
04:38:44.712: [ffmpeg] matroska: pts (50) < dts (67) in stream 0
04:38:44.712: [encode] Writing packet failed.
04:38:46.063: Exiting... (Interrupted by error)
04:38:46.187: (!!!) Intermediate file may be broken: D:\Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]\Mufasa.The.Lion.King.2024_SplitVideos\Mufasa.The.Lion.King.2024010.SVP.temporary.mkv
And here's the log for the first segment (which doesn't throw error) if needed. Note that I didn't finish the transcoding.
06:39:18.757: ===== Starting mpv ======
06:39:18.757: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024000.mkv --o=D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024000.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --video-crop=0x0+0+0 --vf=vapoursynth:[C:\Users\Peter Egunjobi\AppData\Roaming\SVP4\scripts\ffff.py]:4:7 --of=matroska --ovc=hevc_nvenc --ovcopts=b=77059334,preset=slow,rc=vbr,maxrate=100177134,bufsize=154118668,time_base=1000/60000,threads=7
06:39:18.815: ● Video --vid=1 (hevc 3840x2080 24 fps) [default]
06:39:18.815: ○ Audio --aid=1 (aac 6ch 48000 Hz) [default]
06:39:18.815: ○ Subs --sid=1 --slang=eng 'SDH' (subrip) [default]
06:39:21.111: [autoconvert] Converting yuv420p10 -> p010
06:39:21.175: VO: [lavc] 3840x2080 => 3855x2080 p010
06:39:21.175: [vo/lavc] Opening encoder: NVIDIA NVENC hevc encoder [hevc_nvenc]
06:39:21.566: [encode] Opening output file: D:/Mufasa The Lion King (2024) [2160p] [4K] [WEB] [5.1] [YTS.MX]/Mufasa.The.Lion.King.2024_SplitVideos/Mufasa.The.Lion.King.2024000.SVP.temporary.mkv
06:39:21.566: [encode] Opening muxer: Matroska [matroska]
06:39:21.754: V: 00:00:00 / 00:10:02 (0%) {6.4min 0.0MB}
06:40:02.846: -- PAUSED --
06:57:11.727: -- RESUMED --
06:57:11.748: V: 00:00:06 / 00:10:02 (1%) {2549.0min 0.4fps 3957.6MB}
06:57:13.675: -- PAUSED --
06:57:32.821: -- RESUMED --
06:58:12.053: V: 00:00:13 / 00:10:02 (2%) {694.5min 0.7fps 4335.1MB}
06:58:19.410: -- PAUSED --
Edit: Seems to only affect mkv files.