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] audio not synchronized after cutting videos
#11
hi,

so i tried with the 2018.10.05.1 version
you have here the capture of the deployed job queue (i don't see any qp reference, so I didn't started the job), and here the level 9 log

regards
Reply
#12
1st Delete old HybridDebugOutput.txt before you create one you want to share with me, since it saves me a lot of nerves reading through old log content.
2nd read the sticky again and note when the DebugOutput is turned on. (Not interested in all the startup data unless there is a problem with Hybrid starting,..)
so 21981 lines later,....

I see that the Chapter file is created by not the .qp file.
There still seems to be some bug,.. works here, but something in your settings seems to cause Hybrid to not properly parse the encoding call.
-> looking into it
Reply
#13
Did you disable 'NVEnc->Misc->Key frames for chapter' ? (option is on by default and if you disable it you won't get the key frames where you want,..)
When enabled the NVEncC-call should contain '--keyfile GENERATED_KEY_FILE', it doesn't in your call.

Cu Selur
Reply
#14
LOL, just checked the 'Key frames for chapter' option wasn't default in the last dev since I did some testing and disabled it.
-> you need to enable that option for things to work as they should.

Cu Selur
Reply
#15
Hi,

i still have the same problem  Sad

My method :

I. Create a new proper file in the target format I want :
  1. set a default output folder
  2. load source
  3. adjust Input PAR 1x1
  4. do cropping and filter
  5. add chapter points and name them according to the episode
  6. configure audio to passthrough all &video to NVEnc
  7. NVEnc->Misc->key frames for chapters enabled --> i saw the qp file information in the Jobs tab
  8. encode the file
  9. i check the encoded & chapterized result before going on : the audio is synchronized

II. Split the file and name the output files after the chapters :
  1. load output of previous file as source
  2. set audio&video processing to passthrough
  3. enable Config->Output->Filename Generation->Output Filename Generation->Use chapter names
  4. enable Base->Generate
  5. hit 'Queue Chapters' to let Hybrid create the jobs to split the source into the chapters and name the output files according to the chapter names
but after this, only the 1st "chapter" has the audio synchronized, the others have not  Sad

hybrid version : 2018.10.05.1
base->processing->video = NVEnc
NVEnc->base->codec : h265 ; encoding mode : constant quantizer ; quantizer : 28
NVEnc->Misc->key frames for chapters enabled --> i saw the qp file information in the Jobs tab


the log is here

I have an other curious problem, and I'll create a new post.

regards

EDIT :
I see at the bottom of NVEnc->Base, the command line, which contains --fps 25.000, so I understand that the video track is encoded with this framerate
-> could it come from that, as i chose "passthrough" for the audio track ?
Is there a way to choose "same framerate as source" ?
Reply
#16
Hybrid by default should use the frame rate of that the source was detected at. (assuming the source if cfr and not vfr)

Quote:I see at the bottom of NVEnc->Base, the command line, which contains --fps 25.000, so I understand that the video track is encoded with this framerate
Can't see that anywhere in the debug output.
Encoding call in the debug output states:
"C:\WEYBPR~2\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -hwaccel auto -threads 1 -i "Y:\2 scrap\Jeunesse - 2 scrap\cartoons\looney tunes\H264-originaux\2_add_chapters_2_encode\720x480_ld5-8.PAR corrigé.mkv" -map 0:0 -an -sn -vf crop=694:476:26:0,zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0  -f yuv4mpegpipe - | "C:\WEYBPR~2\Hybrid\64bit\NVEncC.exe" --y4m -i - --fps 29.970 --codec h265 --profile main --level auto --sar 1:1 --lookahead 16 --cqp 28 --gop-len 0 --bframes 0 --ref 3 --mv-precision Q-pel --cu-max 32 --cu-min 8 --preset default --videoformat undef --colorprim undef --transfer undef --colormatrix bt470bg --keyfile "C:\temp\720x480_ld5-8.PAR corrigé_NVEnc_cqp28_PAR1x1_keyframe_09_21_54_7910_02.qp" --output "C:\temp\720x480_ld5-8.PAR corrigé_NVEnc_cqp28_PAR1x1_keyframe_09_21_54_7910_03.265"
and NVEncC also states:
694x476p 1:1 29.970fps (30000/1001fps)
Muxing call also states:
"C:\WEYBPR~2\Hybrid\64bit\mkvmerge.exe" --ui-language en -o "D:\Mes Documents\Downloads\complete\720x480_ld5-8.PAR corrigé_NVEnc_cqp28_PAR1x1_keyframe.mkv" --global-tags "C:\temp\720x480_ld5-8.PAR corrigé_NVEnc_cqp28_PAR1x1_keyframe_09_21_54_7910__04.xml" -d 0 --default-track 0:yes --default-duration 0:30000/1001fps --aspect-ratio-factor 0:1/1 --chapter-charset UTF-8 --chapters "C:\temp\09_21_54_7910__05.chp" --compression -1:none --forced-track 0:yes --no-audio --no-subtitles "C:\temp\720x480_ld5-8.PAR corrigé_NVEnc_cqp28_PAR1x1_keyframe_09_21_54_7910_03.265" --default-track 0:yes --forced-track 0:no -a 0 --compression -1:none --no-video --no-subtitles --no-chapters "C:\temp\iId_1_aid_0_09_21_54_7910_01.mp3"

Analysis of the output shows:
Duration: 00:25:55.55, start: 0.000000, bitrate: 911 kb/s
    Chapter #0:0: start 0.000000, end 488.000000
    Metadata:
      title           : hare ribbin'
    Chapter #0:1: start 488.000000, end 1161.000000
    Metadata:
      title           : the return of mr hook
    Chapter #0:2: start 1161.000000, end 1555.554000
    Metadata:
      title           : my dream is yours
    Stream #0:0: Video: hevc (Main), yuv420p(tv, bt470bg/unknown/unknown), 694x476 [SAR 1:1 DAR 347:238], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) (forced)
    Metadata:
      BPS-eng         : 781614
      DURATION-eng    : 00:25:55.554000000
      NUMBER_OF_FRAMES-eng: 46620
      NUMBER_OF_BYTES-eng: 151980400
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-10-09 07:25:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      BPS-eng         : 128000
      DURATION-eng    : 00:25:55.536000000
      NUMBER_OF_FRAMES-eng: 64814
      NUMBER_OF_BYTES-eng: 24888576
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-10-09 07:25:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
-> no clue where you saw the 25fps, but it doesn't look like it was used anywhere.

If Hybrid would have been 'oiff' with the frame rate, the reencoded output would already be asynchronous.

-> no clue why it isn't working for you Sad

Cu Selur
Reply
#17
hi,

here is a screenshot of where i saw --fps 25.000 (at the bottom of the picture here you'll see --fps 29.970)
but i didn't see it right now & can't remember how i got it this morning.
have to make other tests...

regards
Reply
#18
25fps will probably be shown if no source was loaded since 25fps is the default,..
Reply
#19
hi,

here is a little video (13sec - 2MB) with 4 chapters
the audio is sync.

when i split it according the chapters with the queue chapters, the audio tracks aren't sync anymore (except the 1st)

could you make a try with it please to see if it works for you ?

regards
Reply
#20
Doesn't work for me either. Smile
Reply


Forum Jump:


Users browsing this thread: 12 Guest(s)