This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] Hybrid 2022.11.28.1, y4m bad sequence header issue
#11
Okay, looking at the debug output.
  • 2022-12-10@11_40_31_1910_01_audio, extract the audio using:
    "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -threads 4 -i "C:\Users\kiaara\Downloads\Video Processing\002 Test.avi" -map 0:1 -vn -sn -ac 2 -ar 48000 -acodec pcm_s16le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2022.12.09.1" "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_01.wav"
    Which finished after 00:00:59.98 and created "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_01.wav" (10.9864 MB).
  • 2022-12-10@11_40_31_1910_02_audio, reencodes the audio using:
    "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -threads 4 -i "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_01.wav" -strict -2 -ab 128000 -channel_layout stereo -ar 48000 "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_02.aac"
    Which finished after 00:00:59.98 and created "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_02.aac" (0.94227 MB)
  • 2022-12-10@11_40_31_1910_03_cleanUp, deletes "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_01.wav"
  • 2022-12-10@11_40_31_1910_04_create, creates the Vapoursynth script "C:\Users\kiaara\AppData\Local\Temp\encodingTempSynthSkript_2022-12-10@11_40_31_1910.vpy"
    # Imports
    import vapoursynth as vs
    import os
    import ctypes
    # Loading Support Files
    Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
    import sys
    # getting Vapoursynth core
    core = vs.core
    # Import scripts folder
    scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
    sys.path.insert(0, os.path.abspath(scriptPath))
    # Loading Plugins
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
    core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
    # Import scripts
    import havsfunc
    # source: 'C:\Users\kiaara\Downloads\Video Processing\002 Test.avi'
    # current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: bottom field first
    # Loading C:\Users\kiaara\Downloads\Video Processing\002 Test.avi using LWLibavSource
    clip = core.lsmas.LWLibavSource(source="C:/Users/kiaara/Downloads/Video Processing/002 Test.avi", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
    # Setting color matrix to 470bg.
    clip = core.std.SetFrameProps(clip, _Matrix=5)
    clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5)
    clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5)
    # Setting color range to TV (limited) range.
    clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
    # making sure frame rate is set to 25
    clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
    clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
    # setting field order to what QTGMC should assume (bottom field first)
    clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1)
    # Deinterlacing using QTGMC
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=False) # new fps: 25
    # make sure content is preceived as frame based
    clip = core.std.SetFieldBased(clip, 0)
    clip = clip[::2]
    # set output frame rate to 25fps
    clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
    # Output
    clip.set_output()
  • 2022-12-10@11_40_31_1910_05_video, encodes the video using:
    "C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "C:\Users\kiaara\AppData\Local\Temp\encodingTempSynthSkript_2022-12-10@11_40_31_1910.vpy" - -c y4m | "C:\Program Files\Hybrid\64bit\x264.exe" --preset veryfast --crf 17.00 --profile high --level 4.1 --ref 3 --direct auto --b-adapt 0 --sync-lookahead 6 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --partitions i4x4,p8x8,b8x8 --no-fast-pskip --subme 5 --aq-mode 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 64:45 --non-deterministic --range tv --colormatrix bt470bg --demuxer y4m --input-range tv --fps 25/1 --output-depth 8 --output "C:\Users\kiaara\AppData\Local\Temp\2022-12-10@11_40_31_1910_05.264" -
    It finished after 00:00:50.812 and created "C:\Users\kiaara\AppData\Local\Temp\2022-12-10@11_40_31_1910_05.264" (30.1443 MB).
  • 2022-12-10@11_40_31_1910_06_cleanUp, deletes "C:\Users\kiaara\AppData\Local\Temp\encodingTempSynthSkript_2022-12-10@11_40_31_1910.vpy"
  • 2022-12-10@11_40_31_1910_07_rename, renames "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_DELAY_-43ms_2022-12-10@11_40_31_1910_02.aac" to "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_ms_2022-12-10@11_40_31_1910_02.aac"
  • 2022-12-10@11_40_31_1910_08_muxing, muxes audio&video using:
    "C:\Program Files\Hybrid\64bit\MP4Box.exe" -add "C:\Users\kiaara\AppData\Local\Temp\2022-12-10@11_40_31_1910_05.264"#video:fps=25:delay=43:name="":lang="" -brand avc1 -add "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_ms_2022-12-10@11_40_31_1910_02.aac"#audio:name="":lang="" -mpeg4 -itags tool="Hybrid 2022.12.09.1" -tmp "C:\Users\kiaara\AppData\Local\Temp" -new "C:\Users\kiaara\Downloads\Video Processing\2022-12-10@11_40_31_1910__08.mp4"
    It finished after 00:00:00.613 and created "C:\Users\kiaara\Downloads\Video Processing\2022-12-10@11_40_31_1910__08.mp4" (31.0985 MB).
  • 2022-12-10@11_40_31_1910_09_cleanUp, deletes "C:\Users\kiaara\AppData\Local\Temp\2022-12-10@11_40_31_1910_05.264"
  • 2022-12-10@11_40_31_1910_10_cleanUp, deletes "C:\Users\kiaara\AppData\Local\Temp\iId_1_aid_1_ms_2022-12-10@11_40_31_1910_02.aac"
2022-12-10@11_40_31_1910_11_rename, renames "C:\Users\kiaara\Downloads\Video Processing\2022-12-10@11_40_31_1910__08.mp4" to "C:\Users\kiaara\Downloads\Video Processing\1.mp4"
[/list]
None of these steps shows an error or warning that something might have gone amiss.
Then I do the same you did, my output has audio&video.
-> No clue why your output does not, according to the logs it should have. Sad
Did you check the right file? What player are you using?

Cu Selur
Reply
#12
(10.12.2022, 09:55)Selur Wrote: -> No clue why your output does not, according to the logs it should have. Sad
Did you check the right file? What player are you using?

Cu Selur

Thanks for the tip. I was using VLC. Now I tried windows media player and IINA on MAC. Both plays sound well in this output file but VLC is not able to play sound.
Pretty weird but issues is resolved.
Thanks a lot once again for your support.

I didn't try other player than my default VLC as got bit sceptic with this msg display in Hybrid:
"Couldn't get free space in folder(), assuming zero."

I thought something is wrong with Hybrid.
Reply
#13
That message is only important in case Hybrid is configured to check the space on the target drive before starting a job.
About VLC: have you tried updating VLC?

Cu Selur
Reply
#14
(10.12.2022, 11:04)Selur Wrote: That message is only important in case Hybrid is configured to check the space on the target drive before starting a job.
About VLC: have you tried updating VLC?

Cu Selur

Got it.
Yes, VLC is updated.
Reply
#15
Okay, strange no clue what's wrong with VLC, but it from time to time it has issues with mp4 files.
Personally, I'm using MPC-HC which works better for me than VLC.
When I use VLC I usually use the current nightly build (https://nightlies.videolan.org/). Currently, I would use the nightly build of v4.

Reading the changelog over at https://github.com/videolan/vlc/blob/master/NEWS regardint the changes from 3x to 4x, it states:
Demux:
* Adaptive: fix artefacts in HLS streams with wrong profiles/levels
* Fix regression on some MP4 files for the audio track
* Fix MPGA and ADTS probing in TS files
* Fix Flac inside AVI files
* Fix VP9/Webm artefacts when seeking
"Fix regression on some MP4 files for the audio track" <- this might be your issue, so trying VLC 4.x might help.


Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)