Hi yall,
I captured some MiniDV tapes with the Diamond VC500. The .avi's are encoded with Lagarith. I am trying to export them using Staxrip with the following AviSynth code:
I am encoding them with x265 inside of .mp4.Code:ConvertToYV12() SetFilterMTMode("QTGMC", 2) AssumeTFF() QTGMC(Preset="Slower", Edithreads=2) Prefetch(threads=3) BilinearResize(1080, 720)
I hit a weird problem where for the one file I converted so far, where at around 36 minutes into the video (out of an hour and a half), the video freezes. I tried VLC, SMplayer, same result. There is audio for the second half of the video but no video. I've verified the second half video is in the source.
Anyone have any clue what this issue might be?
Thanks!
+ Reply to Thread
Results 1 to 11 of 11
-
-
Is it just the one file ? Do others work ok ?
Does that one original AVI file play ok in a media player ?
Preview the script with source filter only (comment out all the other lines), is there video ?
This is unrelated to the issue, but it should be ConvertToYV12(interlaced=true) -
Thanks for the response! I ran the script on more videos and gathered data.
Is it just the one file?: No, it happens on other videos too, but not all of them. It doesn't cut half the frames out, it seems pretty random, for example in one video it loses frames at around 23 minutes, and another at 5 minutes. The dropped frames are reflected in the file size, for example, an hour long clip where the video dies at 5 minutes is only 700mb where a video with a full hour of frames is around 5-6Gb.
Does that one original AVI file play ok in a media player ?: Yes, all the originals play fine
Preview the script with source filter only (comment out all the other lines), is there video ?: Yes, in AvsPmod all the frames are there with just the source filter, AND with the additional QTGMC/resize-related lines. It only happens on fully processed files. -
Try to remux the source avi with MKVToolNix to mkv and encode the mkv with your script
-
-
I'm not sure if it terminates early, I usually just start the job and leave it alone during the work week and check back the next weekend (hour and a half of video takes 10 hours!).
Here is a log from a bad encode: https://justpaste.it/757pc
What is interesting is that the .hevc file in the temp folder has all the frames (played back quickly due to incorrect frame rate), yet in the log, we can see in the MP4 muxing section that it reads:
Duration : 36 min 40 s
Source duration : 36 min 40 s
While the actual video is 1:32:23 (seen elsewhere in the log file). At 36 minutes and 40 seconds is exactly where the video cuts off. So somewhere along the lines of converting HEVC to MP4 the loss happens. -
From the log it seems the problem may be with mp4box or the HEVC file it get as input, not with the source. The x265 output is 6.34 GiB, but the mp4box output only 2.55 GiB.
encoded 332306 frames in 39287.08s (8.46 fps), 9822.49 kb/s, Avg QP:22.84Complete name : D:\george\raw_cut\1989_athena_temp\1989_athena_out .hevc
Format : HEVC
Format/Info : High Efficiency Video Coding
File size : 6.34 GiB---- Muxing using MP4Box 0.9.0-DEV-rev0-g81b4481e1-gcc10.0.1 Patman ----
[...]
HEVC Import results: 131904 samples (131909 NALUs) - Slices: 574 I 32852 P 98478 B - 1 SEI - 1 IDRGeneral
Complete name : D:\george\raw_cut\1989_athena.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : iso4 (iso4/iso6)
File size : 2.55 GiB -
MP4Box 0.9.0-DEV may be better stick with 0.8 builds (https://gpac.wp.imt.fr/downloads/gpac-nightly-builds/) when even gpacs nightly builds use 0.8
users currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
Converting a Lagarith AVI to Blu-Ray (50i) using MeGUI and x264
By PARALAX in forum Authoring (Blu-ray)Replies: 55Last Post: 23rd May 2019, 03:47 -
Laggy video after editing video on premiere and lagarith codec
By banane1 in forum Newbie / General discussionsReplies: 6Last Post: 17th Jan 2019, 11:09 -
Smart render. Lagarith > Vegas(edit) > Lagarith.
By ValentineStone in forum Video ConversionReplies: 11Last Post: 5th Oct 2016, 13:31 -
Lagarith to mp4
By timsky in forum Video ConversionReplies: 5Last Post: 22nd Aug 2016, 15:50 -
Is x265 ready for Primetime.. Migrating From x264 to x265..
By RazorBurn in forum Video ConversionReplies: 83Last Post: 31st Jan 2016, 07:14