Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link | ||||||
Registered User
Join Date: May 2004
Location: Albuquerque, NM
Posts: 78
|
audio sync & AR problem.
Hi, I'm unable to use vapoursynth because I get two problems. I've not been successful getting audio muxed into the final encode without a progressive sync problem. I don't think it's a strictly mux problem because I've muxed various ways and get the exact same behavior. Also, using vapoursynth, I'm forced to do a resize to get the correct AR, which using ffmpeg is unnecessary. What's causing this?
vapoursynth script: Quote:
Quote:
ffmpeg commandline that works fine, but lacks comb filter Quote:
extra info regarding AR problem. If I use the vapoursynth script above, commenting out the crop+resize and issue this command: Quote:
Quote:
Quote:
Last edited by Nematocyst; 19th May 2019 at 18:47. |
||||||
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
If you dumb everything down to
Code:
from vapoursynth import core video = core.ffms2.Source(source='foo.mkv') video.set_output() Code:
vspipe --y4m "foo.vpy" - | ffmpeg -i pipe: -c:v libx264 -preset ultrafast -y "outfoovideo.mkv" ffmpeg -i "outfoovideo.mkv" -i "foo.mkv" -map 0:v -map 1:a -c copy "outfoo.mkv" |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,746
|
29.64 fps looks suspicious, maybe it has VFR?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
![]() |
![]() |
![]() |
#4 | Link | |
Registered User
Join Date: May 2004
Location: Albuquerque, NM
Posts: 78
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: May 2004
Location: Albuquerque, NM
Posts: 78
|
MIght be the issue. the source is a title_00x.mkv created with makemkv. vlc's codec info shows it as 29.970030. opening the encoded video in vlc shows it as 29.637534. This is the intermediate file [no audio] from the dumbed down script suggested by sneaker_ger.
|
![]() |
![]() |
![]() |
#6 | Link | ||
Registered User
Join Date: May 2004
Location: Albuquerque, NM
Posts: 78
|
Still don't really understand the issue, but maybe the pipe is causing both problems?
Because of warnings about finding stuff when compiling vapoursynth, I use this script for vspipe. Doesn't seem like it should cause problems. but I'm at a loss. Quote:
Quote:
Last edited by Nematocyst; 19th May 2019 at 20:15. Reason: include ffmpeg output |
||
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Sep 2018
Posts: 14
|
You need to write the timecodes to a file and then mux them into the video.
Code:
vspipe --y4m <foo.vpy> --timecodes timecodes.txt - | ffmpeg -i pipe: -c:v libx265 -preset veryslow -crf 20 -vf "nlmeans=s=10" -y "outfoo.mkv" Code:
mkvmerge --output finalfoo.mkv --timestamps 0:timecodes.txt outfoo.mkv |
![]() |
![]() |
![]() |
#9 | Link | ||
Registered User
Join Date: May 2004
Location: Albuquerque, NM
Posts: 78
|
Quote:
[edit] Fixed the AR issue running: Quote:
Last edited by Nematocyst; 20th May 2019 at 23:46. Reason: AR fix |
||
![]() |
![]() |
![]() |
#10 | Link | |
契約者
Join Date: Jun 2008
Posts: 1,577
|
Quote:
Edit: also if makemkv is responsible for making initial mkvs, there is no way the fremarate issue would be VFR-related. Correct me if i'm wrong, but makemkv doesn't do re-encoding and can't decimate frames, which is required to produce VFR. So not sure why people are suggesting that. Last edited by Keiyakusha; 21st May 2019 at 00:45. |
|
![]() |
![]() |
![]() |
#11 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
__________________
Buy me a "coffee" and/or hire me to write code! |
|
![]() |
![]() |
![]() |
Tags |
aspect ratio, audio sync, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|