-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError - video/audio sync issue #3
Comments
Actually I'm finding even with 4 videos in a loop that produce no visible errors as above there still is a video/audio sync issue after a couple of hours. Each video is just about 10 to 30 seconds playing from a local folder. I'm on a computer that has more than enough RAM and CPU to handle the job. Is this a problem you ever experienced? UPDATE I've since taken the four videos and passed them all through
Now all the files that originally would cause immediate problems no long do; but, the audio and video de-sync after only 30 minutes or so. Is this me and my files or something about |
The unicode decode error seems to be caused by non-asci character in the filename. Are you using python2 or python3 btw? Async issue is expected and so far i haven't found a way how to fix it. AAC codec (and most likely other compressed audio formats) encodes an audio track using packets of 1024 samples, so in most cases video and audio duration slightly differs. Conti uses apad and trim filters to avoid this problem, but so far it works only if audio tracks are PCM. |
We usually use dnxhd mov or mxf files, but - depending on your file ingest platform - sometimes track durations don't match if the original source is for example mp4 with aac audio. |
@martastain I am using python3. I mostly have mp4 files already and have tried using dnxhd but the size of the files is just too much for our current project. I am not very familiar with all the ins-and-outs of ffmpeg and video formats but I'll look into PCM for the audio. But referring to your second post, are you saying if my original source is mp4/aac then it may not convert to a better format with the correct duration? @jb-alvarado Thanks for the project link. I'm going to give it a try as well today. |
When playing certain files I get an error which causes either a
BrokenPipeError
or the following:Play continues but these files can cause video/audio sync problems which can be very small or adds up over an hour or two to be noticeable.
All files were downloaded with
youtube-dl
and I was just playing them in a loop to see if this type of error would occur; only a few of the files seem to cause the error.The text was updated successfully, but these errors were encountered: