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] Cutting FLAC and Subitles
#1
Hello. Theres problem again. Input is "someanime.mkv" file that has 1080p 10bit and FLAC.
The main problem is that mkvextract crash when you try to reencode audio with cutting times. Actually, this bug is already quite old more than year, usually cause of this i just cut reencode audio with ffmpeg separatly with same timecodes, but now I decided to report it. And another bug with cutting times. Sometimes this does not allow you to select the timecodes you need. For example, you ctrl + v at field 00:10:37.700, its locks 00:10:37.200 and you cannot change the above .222 or this loops from 200 to 222 and you cant change that.

And there are still old bugs with subtitles and custom styles subtitles. First, it doesn't always import ass. Second, when you select "SUBTITLE">"IMPORT">choosing your "subtitle file">"Embed subtitle in frame"> "Overwrite Ass Styling">then add in "Subtitle Queue" it does not remove the font and style from the past subtitles, but adds your own. Because of this, the job crashes, and the preview does not work.
Like this 2 lines but should exist only one. From old sub "Candara", new overwrited  Bahnschrift:
Style: Default,Bahnschrift Condensed,20,&H0000aaff,&H000000FF,&H00000000,&H00000000,&H00ffffff,&H000000ff,&H0001013f,&H00000000,100,100,0,0,100.00,1,1,0.00,1,2.50,10,2,40,40,40,1
Style: Default,Candara,40,&H00ffffff,&H000000ff,&H0001013f,&H00000000,-1,0,0,0,100.00,100.00,0.00,0.00,1,2.50,1.00,2,40,40,40,1

And I don't think overwrite is useful because you can't choose the location on screen of the subtitles, its in left bottom screen always. But that might be due to the bug above. Did a little debug for this.

Last question. Where can I find xml or txt with all the job's lines, so that I can insert them into the command line for the test myself, or change the commands a little. For example, in hybrid, I cannot change the cut timecodes as I want cause of above things, but I could do it if I inserted it myself via CMD. You called it Encoding call. In temp folder i didnt find them, but other files exist.
Please, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.


Attached Files
.zip   HybridDebugOutput_FLACCRASH.zip (Size: 38,33 KB / Downloads: 13)
.zip   Subtitles.zip (Size: 6,57 KB / Downloads: 15)
Reply
#2
Regading cutting mkvs with flac files, seems like mkvtoolnix doesn't support this:
Error: The track ID 1 from the file 'C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv' cannot be split. Splitting tracks of this type is not supported.
-> Wasn't aware of that I'll adjust Hybrid to use FFmpeg as extractor when FLAC audio is involved.

Regarding "Overwrite Ass Styling":
I'll look at tomorrow (to groggy atm.),..

Quote:you ctrl + v at field 00:10:37.700, its locks 00:10:37.200 and you cannot change the above .222 or this loops from 200 to 222 and you cant change that.
Probably related to the 'Collect key frames' sub-option of cut support.

Quote: Where can I find xml or txt with all the job's lines, so that I can insert them into the command line for the test myself,
if Hybrid is closed the settings folder contains an autosavedJobs.xml while Hybrid is running job queue is only in memory.
If if you want to edit the jobs:
a. do not complain about anything related to that to me
b. you will have to close Hybrid edit the queue, open Hybrid and hopefully your change didn't break anything.

Cu Selur
Reply
#3
Quote:-> Wasn't aware of that I'll adjust Hybrid to use FFmpeg as extractor when FLAC audio is involved.

Good!


Quote:Regarding "Overwrite Ass Styling":
I'll look at tomorrow (to groggy atm.),..

I'm not forcing anything. Have your time. Just reported some bugs.

Quote:Probably related to the 'Collect key frames' sub-option of cut support.

No, its not. This option is OFF. After 10 min of all 24 min episode, there no way new key frame doesnt exist.

Quote:if Hybrid is closed the settings folder contains an autosavedJobs.xml while Hybrid is running job queue is only in memory.

Noooo. I'm talking about full job command. Like when you report them in reply in other threads, after check Debug file.

For example like that two:

Encoding call:

Quote:"C:\Program Files\Hybriddd\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "C:\Users\SaberAnasterian\AppData\Local\Temp\encodingTempSynthSkript_2021-03-08@18_19_49_2810.avs" -an -sn -pix_fmt yuv420p -vsync 0 -f rawvideo - | "C:\Program Files\Hybriddd\64bit\x264.exe" --preset slower --crf 18.00 --profile high --level 5.2 --ref 5 --sync-lookahead 36 --vbv-maxrate 300000 --vbv-bufsize 300000 --sar 1:1 --non-deterministic --range pc --colormatrix bt709 --demuxer raw --input-res 3840x2160 --input-csp i420 --input-range pc --input-depth 8 --fps 60000/1001 --output-depth 8 --output "C:\Users\SABERA~1\AppData\Local\Temp\2021-03-08@18_19_49_2810_02.264" -


Avisynth script:


Quote:ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\LoadDll.dll")
Import("C:\Program Files\Hybriddd\64bit\Avisynth\avisynthPlugins\FrameRateConverter.avsi")
LoadDLL("C:\Program Files\Hybriddd\64bit\Avisynth\avisynthPlugins\libfftw3f-3.dll")
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\ImageSeq.dll")
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\FrameRateConverter-x64.dll")
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\grunt-x64.dll")
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybriddd\64bit\Avisynth\AVISYN~1\masktools2.dll")
# loading source: C:\Users\SaberAnasterian\P3DDONE\%04d.png
#  color sampling RGB24@8, matrix: pc709, scantyp: progressive, luminance scale: full
ImageReader(file="C:\Users\SABERA~1\P3DDONE\%04d.png", start=1, end=2940, fps=29.97, use_DeviL=true, pixel_type="RGB")
# current resolution: 3840x2160
ConvertToYV24(interlaced=false, matrix="PC.709")
FrameRateConverter(FrameDouble=true,NewNum=60,NewDen=1,Preset="anime",Output="auto",BlendOver=40,SkipOver=140)
# filtering
# adjust color to YV12 (color matrix: PC.709)
ConvertToYV12()
PreFetch(12)
# setting output fps to 59.940fps
AssumeFPS(60000,1001)
#  output: color sampling YV24@8, matrix: pc709, scantyp: progressive, luminance scale: full
return last

I dont think you really searching all debug file to find all these commands and merge them as above. Isn't it generated somewhere automatically.(except avisynth, its easy to find)

Quote:If if you want to edit the jobs:
a. do not complain about anything related to that to me
b. you will have to close Hybrid edit the queue, open Hybrid and hopefully your change didn't break anything.

Yeah ofc
Reply
#4
Quote:No, its not. This option is OFF. After 10 min of all 24 min episode, there no way new key frame doesnt exist.
Then I have no clue, why the that would happen. Smile

Quote:Noooo. I'm talking about full job command. Like when you report them in reply in other threads, after check Debug file.
The avisynth script is shown in full in the debug output (and is also part of the job queue), also it's shown in the Avisynth Script View.
The "decoder | encoding" call, is always put together by hand, since Hybrid doesn't use one process to call it but two processes which are connected.

Cu Selur
Reply
#5
Send you link via pm to a dev version which should fix the ass style overwrite and the cutting.

Cu Selur
Reply
#6
Quote:The avisynth script is shown in full in the debug output (and is also part of the job queue), also it's shown in the Avisynth Script View.


Yeah. I know. Its easy to find.

Quote:The "decoder | encoding" call, is always put together by hand, since Hybrid doesn't use one process to call it but two processes which are connected.

So you're telling i should find them in debug output by myself, right? Isn't there easy way for this. For test i made job, started job, so hybrid will create job's commands in hybriddebugoutput.txt. 

Example:

I did find all commands in txt:


Quote:2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  -> "C:\Program Files\Hybrid\64bit\vpxenc.exe" --codec=vp9 --row-mt=1 --passes=2 --pass=2 --target-bitrate=306 --end-usage=vbr --fpf="C:\Users\SaberAnasterian\AppData\Local\Temp\1kira4_2021-04-28@19_38_17_6310_01.stats" --profile=0 --good --corpus-complexity=0 --cpu-used=0 --min-q=0 --max-q=63 --bias-pct=100 --minsection-pct=15 --maxsection-pct=10000 --lag-in-frames=25 --drop-frame=0 --undershoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --resize-allowed=1 --resize-up=100 --resize-down=100 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=5 --arnr-strength=3 --noise-sensitivity=0 --sharpness=0 --static-thresh=0 --aq-mode=2 --tile-columns=2 --tile-rows=1 --frame-parallel=1 --min-gf-interval=0 --max-gf-interval=0 --threads=48 --width=640 --height=360 --i420 --color-space=unknown --target-level=255 --input-bit-depth=8 --bit-depth=8 --tile-columns=0 --tile-rows=0 --ivf -o "C:\Users\SABERA~1\AppData\Local\Temp\2021-04-28@19_38_17_6310_02.ivf" -
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: absolute path for helper call
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: setting absolute path for call: mencoder  -ss 639.218 -endpos 11.8914 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv"
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: assuming tool name is: mencoder
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: Absolute path for mencoder: C:\Program Files\Hybrid\64bit\mencoder.exe
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  -> absolute path for tool is: C:\Program Files\Hybrid\64bit\mencoder.exe
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  replacing 'mencoder' with '"C:\Program Files\Hybrid\64bit\mencoder.exe"'
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: in call: mencoder  -ss 639.218 -endpos 11.8914 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv"
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  -> "C:\Program Files\Hybrid\64bit\mencoder.exe"  -ss 639.218 -endpos 11.8914 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv"
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: absolute path for helper2 call
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: setting absolute path for call: ffmpeg -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe -
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: assuming tool name is: ffmpeg
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: Absolute path for ffmpeg: C:\Program Files\Hybrid\64bit\ffmpeg.exe
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  -> absolute path for tool is: C:\Program Files\Hybrid\64bit\ffmpeg.exe
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  replacing 'ffmpeg' with '"C:\Program Files\Hybrid\64bit\ffmpeg.exe"'
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9: in call: ffmpeg -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe -
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:  -> "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe -
2021.04.28 - 19:56:21_Windows 10 Version 2004 (64bit)_2021.04.12.1 - level 9:
-> MainCall: "C:\Program Files\Hybrid\64bit\vpxenc.exe" --codec=vp9 --row-mt=1 --passes=2 --pass=2 --target-bitrate=306 --end-usage=vbr --fpf="C:\Users\SaberAnasterian\AppData\Local\Temp\1kira4_2021-04-28@19_38_17_6310_01.stats" --profile=0 --good --corpus-complexity=0 --cpu-used=0 --min-q=0 --max-q=63 --bias-pct=100 --minsection-pct=15 --maxsection-pct=10000 --lag-in-frames=25 --drop-frame=0 --undershoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --resize-allowed=1 --resize-up=100 --resize-down=100 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=5 --arnr-strength=3 --noise-sensitivity=0 --sharpness=0 --static-thresh=0 --aq-mode=2 --tile-columns=2 --tile-rows=1 --frame-parallel=1 --min-gf-interval=0 --max-gf-interval=0 --threads=48 --width=640 --height=360 --i420 --color-space=unknown --target-level=255 --input-bit-depth=8 --bit-depth=8 --tile-columns=0 --tile-rows=0 --ivf -o "C:\Users\SABERA~1\AppData\Local\Temp\2021-04-28@19_38_17_6310_02.ivf" -
-> HelperCall: "C:\Program Files\Hybrid\64bit\mencoder.exe"  -ss 639.218 -endpos 11.8914 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv"
-> Helper2Call: "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe -

So there 3 commands i need in order:

Quote:"C:\Program Files\Hybrid\64bit\mencoder.exe"  -ss 639.218 -endpos 11.8914 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv"

Quote:"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe -

Quote:"C:\Program Files\Hybrid\64bit\vpxenc.exe" --codec=vp9 --row-mt=1 --passes=2 --pass=2 --target-bitrate=306 --end-usage=vbr --fpf="C:\Users\SaberAnasterian\AppData\Local\Temp\1kira4_2021-04-28@19_38_17_6310_01.stats" --profile=0 --good --corpus-complexity=0 --cpu-used=0 --min-q=0 --max-q=63 --bias-pct=100 --minsection-pct=15 --maxsection-pct=10000 --lag-in-frames=25 --drop-frame=0 --undershoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --resize-allowed=1 --resize-up=100 --resize-down=100 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=5 --arnr-strength=3 --noise-sensitivity=0 --sharpness=0 --static-thresh=0 --aq-mode=2 --tile-columns=2 --tile-rows=1 --frame-parallel=1 --min-gf-interval=0 --max-gf-interval=0 --threads=48 --width=640 --height=360 --i420 --color-space=unknown --target-level=255 --input-bit-depth=8 --bit-depth=8 --tile-columns=0 --tile-rows=0 --ivf -o "C:\Users\SABERA~1\AppData\Local\Temp\2021-04-28@19_38_17_6310_02.ivf" -

To execute in CMD. it will look like this:

Quote:"C:\Program Files\Hybrid\64bit\mencoder.exe"  -ss 579.781 -endpos 651.143 -lavdopts threads=8 -really-quiet -subcp UTF-8 -sub "C:\Users\SABERA~1\Kira4.ass"  -ass  -ofps  24000/1001 -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420,scale=640:360,ass,scale,format=i420 -sws 10 -nosound "C:\Users\SaberAnasterian\Downloads\Higurashi no Naku Koro ni Kira [BDRip] [1080p]\[Yousei-raws] Higurashi no Naku Koro ni Kira 1 [BDrip 1920x1080 x264 FLAC].mkv" | "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -loglevel fatal -noautorotate -nostdin -threads 8 -an -sn -r 24000/1001 -video_size 640x360 -f rawvideo -i - -r 24000/1001 -f yuv4mpegpipe - | "C:\Program Files\Hybrid\64bit\vpxenc.exe" --codec=vp9 --row-mt=1 --passes=2 --pass=2 --target-bitrate=306 --end-usage=vbr --fpf="C:\Users\SaberAnasterian\AppData\Local\Temp\1kira4_2021-04-28@19_38_17_6310_01.stats" --profile=0 --good --corpus-complexity=0 --cpu-used=0 --min-q=0 --max-q=63 --bias-pct=100 --minsection-pct=15 --maxsection-pct=10000 --lag-in-frames=25 --drop-frame=0 --undershoot-pct=0 --buf-sz=6 --buf-initial-sz=4 --buf-optimal-sz=5 --drop-frame=0 --resize-allowed=1 --resize-up=100 --resize-down=100 --kf-min-dist=0 --kf-max-dist=250 --auto-alt-ref=1 --arnr-maxframes=5 --arnr-strength=3 --noise-sensitivity=0 --sharpness=0 --static-thresh=0 --aq-mode=2 --tile-columns=0 --tile-rows=0 --frame-parallel=1 --min-gf-interval=0 --max-gf-interval=0 --threads=48 --width=640 --height=360 --i420 --color-space=unknown --target-level=255 --input-bit-depth=8 --bit-depth=8 --ivf -o "C:\Users\SABERA~1\AppData\Local\Temp\2021-04-28@19_38_17_6310_02.ivf" -

I know that this is only the second pass but this is just for example.

So my question is, is it possible to find this full subjob command fast and easily, or should I always search in HybridDebugOutput myself. If not, then another q, is it possible to add a function in the "Jobs" section, just copy FULL subjob command that I need with a right click like in the screenshots in one click "Copy".
[Image: 0g463Qf.png]
[Image: PmI5lUt.png]
[Image: jZUOVlN.png]
Reply
#7
Quote:So my question is, is it possible to find this full subjob command fast and easily, or should I always search in HybridDebugOutput myself. If not, then another q, is it possible to add a function in the "Jobs" section, just copy FULL subjob command that I need with a right click like in the screenshots in one click "Copy".
No, simply because the full command line does not exists until the processing.
The command lines in the jobs does not contain paths to the tools. It sometimes only contains placeholders which will be filled during the processing (i.e. the bitrate in a 2pass encoding aiming for a fixed size might change after the audio&subtitles were processed).
-> if you want a those command lines you have to get them from the job processing.

Cu Selur
Reply
#8
(29.04.2021, 05:49)Selur Wrote: No, simply because the full command line does not exists until the processing.
The command lines in the jobs does not contain paths to the tools. It sometimes only contains placeholders which will be filled during the processing (i.e. the bitrate in a 2pass encoding aiming for a fixed size might change after the audio&subtitles were processed).
-> if you want a those command lines you have to get them from the job processing.

Cu Selur

Ahhh Sad Thank you for reply and explanation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)