![]() |
Cut support - Issue with audio not being cut - Printable Version +- Selur's Little Message Board (https://forum.selur.net) +-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html) +--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html) +--- Thread: Cut support - Issue with audio not being cut (/thread-1293.html) |
Cut support - Issue with audio not being cut - AssCabbage - 05.04.2020 Hi, I know this is a new feature that may have bugs, but I can't seem to make this work at all and don't see it mentioned here. The cut support option never cuts audio for me. I'm recording VHS tapes, which have a lot of stuff at the beginning and end that I want to remove, so I was hoping I could use the cut feature for this. Unfortunately what seems to happen every time I try to use cut, is that the audio file is the same audio file, but only the video is cut. That is the audio starts at the beginning of the input, regardless of where the video is. Is this a known bug? I'm using Huffyuv compressed video with PCM audio (if it matters). I did try and search the forums, but I can't see this mentioned anywhere else. Thanks for great software ![]() RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 Are you just cutting or are you also converting the audio to another format? Some details and a debug output level 9 of the job creation might help. Can't try to reproduce and fix the issue if I don't know that you are doing. Cu Selur RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 I did a 'blind-test' trying to reproduce the issue without really knowing what you did,.. What I did:
ffmpeg -y -threads 8 -i "E:\Test\60secondsHuffHD.avi" -map 0:1 -vn -sn -ss 00:00:10.000 -t 00:00:40.000 -ac 6 -ar 48000 -acodec pcm_s16le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2020.04.04.1" "E:\Temp\iId_2_aid_0_DELAY_-53ms_07_53_04_9410_01.wav" then the video encoding call: ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "E:\test\60secondsHuffHD.avi" -map 0:0 -an -sn -ss 00:00:10.000 -t 00:00:40.000 -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0 -f rawvideo - | x264 --preset ultrafast --crf 18.00 --profile high --level 4.1 --scenecut 0 --sync-lookahead 24 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1920x1080 --input-csp i420 --input-range tv --input-depth 8 --fps 24000/1001 --output-depth 8 --output "E:\Temp\07_53_04_9410_04.264" - -> Without detailed information what you are doing I can't reproduce the issue. Cu Selur RE: Cut support - Issue with audio not being cut - AssCabbage - 05.04.2020 I have the settings stored as default. So I'm only: 1. adding the video file 2. Setting my crop (14 on all sides, then letter boxed) 3. Adding audio to queue. 4. Setting my cut 5. setting output file. 6. Clicking the "man at work" to start the job. >Are you just cutting or are you also converting the audio to another format? The audio is PCM 48khz, and I'm changing it to AAC 192kbps 44100khz. >Some details and a debug output level 9 of the job creation might help. attached! I think everything's in the debug log, but if you want to know anything else let me know! RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 You didn't attach a debug output,... thus the steps don't help since they are not detailed enough to make anything of them without the debug output,.. RE: Cut support - Issue with audio not being cut - AssCabbage - 05.04.2020 (05.04.2020, 14:45)Selur Wrote: You didn't attach a debug output,... thus the steps don't help since they are not detailed enough to make anything of them without the debug output,.. Attempt 2.... EDIT: The attach isn't working for some reason. Here's a firefox send link: https://send.firefox.com/download/5a739168d4321d96/#HT0aWCKl6UFJ9x8Ic3U8Ng RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 That one worked: Looking at the audio extraction call: "C:\PROGRA~1\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -i "C:\Users\kevin\Desktop\VHS project\FINALLY CAPTURING FOLDER\Input files\Friends final setup RAW.avi" -map 0:1 -vn -sn -ss 00:01:00.000 -t 00:19:00.000 -ac 2 -ar 48000 -acodec pcm_s16le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2020.02.19.1" "C:\Users\kevin\AppData\Local\Temp\iId_1_aid_0_DELAY_-43ms_13_21_42_4010_01.wav" The Vapoursynth script: # Imports BUT,... Hybrid doesn't support cutting when Vapoursynth is used atm. ![]() -> I'll look whether I can add a quick 'hack' for this. Cu Selur RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 Just looked at it again, I already added cut support to Vapoursynth: # cutting from 1500 with 30000 frames - WARNING: This might cause synch issues Video is cut in the Vapoursynth script. Audio is cut upon extraction and that extracted audio is the audio which gets reencoded: "C:\PROGRA~1\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -i "C:\Users\kevin\AppData\Local\Temp\iId_1_aid_0_DELAY_-43ms_13_21_42_4010_01.wav" -strict -2 -ab 192000 -ac 2 -channel_layout stereo -ar 48000 "C:\Users\kevin\AppData\Local\Temp\iId_1_aid_0_DELAY_-43ms_13_21_42_4010_02.aac" Cu Selur ps.: didn't implement it for Avisynth RE: Cut support - Issue with audio not being cut - AssCabbage - 05.04.2020 Well it's completely out of sync? It's hard to say exactly how much, but we're talking minutes. RE: Cut support - Issue with audio not being cut - Selur - 05.04.2020 No clue why it would be out of sync that much unless your source if vfr or either the audio or video decoder has issues with the source. I don't see any indication in the log where the problem could be. -> this and similar effects is why the whole cutting support is marked as *experimental* I don't see a way to fix it in Hybrid. Cu Selur |