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
#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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RochHarz Festival
Reply


Messages In This Thread
RE: audio not synchronized after cutting videos - by Selur - 09.10.2018, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)