Selur's Little Message Board
Re-Encoding VFR to CFR Audio is out of Sync - 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: Re-Encoding VFR to CFR Audio is out of Sync (/thread-1705.html)

Pages: 1 2


Re-Encoding VFR to CFR Audio is out of Sync - fltasin - 29.01.2021

I Have a VFR source and I want it to be CFR (23.976FPS)... Using x265...
The Video data is Like This⬇⬇⬇⬇⬇

ID                          : 1

Format                      : AVC
Format/Info                : Advanced Video Codec
Format profile              : High@L4.1
Format settings            : CABAC / 5 Ref Frames
Format settings, CABAC      : Yes
Format settings, Reference  : 5 frames
Codec ID                    : V_MPEG4/ISO/AVC
Duration                    : 30 min 57 s
Bit rate                    : 595 kb/s
Width                      : 720 pixels
Height                      : 480 pixels
Display aspect ratio        : 16:9
Frame rate mode            : Variable
Frame rate                  : 27.948 FPS
Original frame rate        : 29.970 (30000/1001) FPS
Color space                : YUV
Chroma subsampling          : 4:2:0
Bit depth                  : 8 bits
Scan type                  : Progressive

So the Problem is When I Re-encode this at 23.976 FPS the audio is out of sync..
For that 23.976 I use Filtering>speed Change>Scale output frame rate>23.976 FPS...
and the Audio is in Auto Add first (I don't want to mess With audio)
The Audio data is Like this⬇⬇⬇
Format                      : AAC LC

Format/Info                : Advanced Audio Codec Low Complexity
Codec ID                    : A_AAC-2
Duration                    : 30 min 57 s
Bit rate                    : 254 kb/s
Channel(s)                  : 2 channels
Channel layout              : L R
Sampling rate              : 48.0 kHz
Frame rate                  : 46.875 FPS (1024 SPF)
Compression mode            : Lossy
Stream size                : 56.1 MiB (30%)

So How can get the audio sync with the Video?
I want it CFR 23.976 FPS
I don't want to change the duration of the video...



RE: Re-Encoding VFR to CFR Audio is out of Sync - Selur - 29.01.2021

Just using "Filtering>speed Change>Scale output frame rate>23.976 FPS..." will cause synch issues if the input really is vfr.

Try enabling:
"Config->Input->Decoding->CFR output"
and/or
"Config->Internals->Handling->Ignore all input time codes" (<- this needs to be enabled before loading the source)

Cu Selur


RE: Re-Encoding VFR to CFR Audio is out of Sync - fltasin - 29.01.2021

What's the best way to be The video at 23.976FPS since I have VFR source?


RE: Re-Encoding VFR to CFR Audio is out of Sync - Selur - 29.01.2021

There's is no 'best' option. Personally I would try those options and use sRestore to archive the desired frame rate.

Cu Selur


RE: Re-Encoding VFR to CFR Audio is out of Sync - fltasin - 29.01.2021

So I will try those two Options and In vaporsynth tab If i just adjust like this will it be okay? (I Don't want to change the Duration or blended frame)



https://ibb.co/kBtc2ZS


RE: Re-Encoding VFR to CFR Audio is out of Sync - Selur - 29.01.2021

no visible image,..


RE: Re-Encoding VFR to CFR Audio is out of Sync - fltasin - 29.01.2021

(29.01.2021, 20:57)Selur Wrote: no visible image,..

I have edited..
didn't knew it will be weird like that!!


RE: Re-Encoding VFR to CFR Audio is out of Sync - Selur - 29.01.2021

Yes, using that and enabling CFR output should work.


RE: Re-Encoding VFR to CFR Audio is out of Sync - Selur - 29.01.2021

Now that I thought over it again, using sRestore should already force CFR output.

Cu Selur


RE: Re-Encoding VFR to CFR Audio is out of Sync - fltasin - 29.01.2021

(29.01.2021, 21:00)Selur Wrote: Yes, using that and enabling CFR output should work.
Okay So I will try These Three... First one will be that Ignore timecode (before loading the source)
after loading all I have to try this!!!

https://ibb.co/6r0hNsv
https://ibb.co/RPgYjcP
https://ibb.co/fQKK1gB


And not use that Filtering>speed Change>Scale output frame rate>23.976 FPS...

Will it be alright?

I encoded a thing for 25 hours and i am getting that (audio out of sync)
SO I just want to be make sure... Smile