VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. 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:

    Code:
    ConvertToYV12()
    SetFilterMTMode("QTGMC", 2)
    AssumeTFF()
    QTGMC(Preset="Slower", Edithreads=2)
    Prefetch(threads=3)
    BilinearResize(1080, 720)
    I am encoding them with x265 inside of .mp4.

    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!
    Quote Quote  
  2. 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)
    Quote Quote  
  3. 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.
    Quote Quote  
  4. Try to remux the source avi with MKVToolNix to mkv and encode the mkv with your script
    Quote Quote  
  5. Originally Posted by bigal100 View Post
    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.
    Post the log file for one of the problem encodes

    Does the encode complete gracefully, but premature ? or is something else going on to abort the encode (hardware instability, overheating) ?
    Quote Quote  
  6. 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.
    Quote Quote  
  7. 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.84
    Complete 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 IDR
    General
    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
    Quote Quote  
  8. 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
    Quote Quote  
  9. Interesting, I'm going to give the ffmpeg MP4 muxer a shot. I am using the beta version of StaxRip (which includes MP4Box 0.9.0) because the stable 2.0.8.0 was giving me some weird crashes.
    Quote Quote  
  10. ffmpeg MP4 muxer did the trick! Thanks for the help yall!
    Quote Quote  
  11. Do not use ffmpeg to mux raw AVC or HEVC into mp4 or mkv. It doesn't correctly handle b frames AFAIK (no ctts atom).
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!