jit.movie~ audio output glitches with mp4 files

Arvid Tomayko's icon

Hi (this is probably a question for Rob Ramirez)

jit.movie~ audio output glitches with any mp4 i play through it, stereo AAC or PCM audio. It sounds distorted and glitchy. Looks like it is skipping forward or

Here's an example video that it happens with. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?) hear the difference .th. Try playing in a quicktime player, then with jit.movie~file and (maybe?) hear the difference .s (which is what I have my Signal Vector Size set to).

Same video is fine playing in jit.movie with @engine viddll. Other audio playing through MSP is also fine. Tried changing sample rates, etc. no improvements.

macOS 10.12.5, Max 7.3.4, viddll 1.1.0

Here's an example video that it happens on

Here's an example video that it happens with. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?) hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?)hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?>hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?(hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybehear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybhear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (mayhear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (mahear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (mhear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and (hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the difference.th. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the differenceth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the differencth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the differenth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the differeth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the differth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the diffeth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the diffth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the difth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the dith. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the dth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear the th. Try playing in a quicktime player, then with jit.movie~ helpfile and hear theth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear thth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear tth. Try playing in a quicktime player, then with jit.movie~ helpfile and hear th. Try playing in a quicktime player, then with jit.movie~ helpfile and hearth. Try playing in a quicktime player, then with jit.movie~ helpfile and heath. Try playing in a quicktime player, then with jit.movie~ helpfile and heth. Try playing in a quicktime player, then with jit.movie~ helpfile and hth. Try playing in a quicktime player, then with jit.movie~ helpfile and th. Try playing in a quicktime player, then with jit.movie~ helpfile andth. Try playing in a quicktime player, then with jit.movie~ helpfile anth. Try playing in a quicktime player, then with jit.movie~ helpfile ath. Try playing in a quicktime player, then with jit.movie~ helpfile th. Try playing in a quicktime player, then with jit.movie~ helpfileth. Try playing in a quicktime player, then with jit.movie~ helpfilth. Try playing in a quicktime player, then with jit.movie~ helpfulth. Try playing in a quicktime player, then with jit.movie~ helpfuth. Try playing in a quicktime player, then with jit.movie~ helpfth. Try playing in a quicktime player, then with jit.movie~ helpth. Try playing in a quicktime player, then with jit.movie~ helth. Try playing in a quicktime player, then with jit.movie~ heth. Try playing in a quicktime player, then with jit.movie~ hth. Try playing in a quicktime player, then with jit.movie~ th. Try playing in a quicktime player, then with jit.movie~th. Try playing in a quicktime player, then with jit.movieth. Try playing in a quicktime player, then with jit.movith. Try playing in a quicktime player, then with jit.movth. Try playing in a quicktime player, then with jit.moth. Try playing in a quicktime player, then with jit.mth. Try playing in a quicktime player, then with jit.th. Try playing in a quicktime player, then with jitth. Try playing in a quicktime player, then with jith. Try playing in a quicktime player, then with jth. Try playing in a quicktime player, then with th. Try playing in a quicktime player, then withth. Try playing in a quicktime player, then witth. Try playing in a quicktime player, then with. Try playing in a quicktime player, then wth. Try playing in a quicktime player, then th. Try playing in a quicktime player, thenth. Try playing in a quicktime player, theth. Try playing in a quicktime player, thth. Try playing in a quicktime player, tth. Try playing in a quicktime player, th. Try playing in a quicktime player,th. Try playing in a quicktime playerth. Try playing in a quicktime playeth. Try playing in a quicktime playth. Try playing in a quicktime plath. Try playing in a quicktime plth. Try playing in a quicktime pth. Try playing in a quicktime th. Try playing in a quicktimeth. Try playing in a quicktimth. Try playing in a quicktith. Try playing in a quicktth. Try playing in a quickth. Try playing in a quicth. Try playing in a quith. Try playing in a quth. Try playing in a qth. Try playing in a normal plauerth. Try playing in a normal plaueth. Try playing in a normal plauth. Try playing in a normal plath. Try playing in a normal plth. Try playing in a normal pth. Try playing in a normal th. Try playing in a normalth. Try playing in a normath. Try playing in a normth. Try playing in a north. Try playing in a noth. Try playing in a nth. Try playing in a th. Try playing in ath. Try playing in quicktimeonth. Try playing in quicktimonth. Try playing in quicktionth. Try playing in quicktonth. Try playing in quickonth. Try playing in quiconth. Try playing in quionth. Try playing in quonth. Try playing in qonth. Try playing in onth. Try playing inonth. Try playing ionth. Try playing onth. Try playingonth. Try playinonth. Try playionth. Try playonth. Try plaonth. Try plonth. Try ponth. Try onth. Tryonth. Tronth. Tonth. onth.onthontononnovie with @engine viddll. Other audio playing through MSP is also fine. Tried changing sample rates, interfaces, etc. no improvements.. no improvements. no improvements.no improvements.o impwith. Try pquicktime player, then with jit.movie~ hie and hear the difference.(maybe?>) ments.o improvements. improvements.improvements.mprovements.provements.rovements.ovements.vements.ements.ments.ents.nts.ts.s.

Arvid Tomayko's icon

Sorry about that post! The delete key, spacebar and return stopped working in that text field in my browser after I attached the video file. I thought I was editing the text, but actually I guess it was inserting all my edits at the end! And the edit button for the post also does not work! (Safari 10.1.1)

Arvid Tomayko's icon

Here's what that original post should say, (the edit button doesn't work for me in Safari or Firefox):

Hi (this is probably a question for Rob Ramirez),

jit.movie~ audio output glitches with any mp4 i play through it, stereo AAC or PCM audio. It sounds distorted and glitchy. Looks like it is skipping forward or backward a few samples every 64 samples (which is what I have my Signal Vector Size set to).

Same video is fine playing in jit.movie with @engine viddll. Other audio playing through MSP is also fine.

Tried changing sample rates, etc. no improvements.macOS 10.12.5, Max 7.3.4, viddll 1.1.0

Here's an example video that it happens with. Try playing in a quicktime player, then with jit.movie~ helpfile and (maybe?) hear the difference.

Thanks!

Rob Ramirez's icon

hi Arvid.

unfortunately, there are still some issues that still plague viddll's audio playback functionality. in your case, it's likely related to to the 48K sampling rate of your file.

easiest fix for now is to set your Audio Status Sampling Rate to match that of your file (probably requires a Max restart). alternatively, reexport the file to match your playback Sampling Rate (probably 44.1K).

please let me know if eithter of these fixes works for you.

Arvid Tomayko's icon

Thanks for the quick reply! Actually 48k is the sampling rate I'm working at, which is why I encoded the video at that rate. Also the same video sounds fine playing in jit.movie with @engine viddll at 48kHz sample rate.

Rob Ramirez's icon

can you, just for kicks, try re-encoding at 44.1 and running the same?

Arvid Tomayko's icon

Yeah - same problem when video's audio is re-encoded at 44.1kHz. When MSP's rate is set to either 44.1kHz or 48kHz. This distortion happens even with the example "crashtest.mov" movie in the jit.movie~ help file, at either sample rate.

A larger signal vector size makes it better (but not perfect) because the pops from skipping samples happen less often. Similarly, picking a small signal vec size like 16 samples makes it sound really bad.

Rob Ramirez's icon

ok, this obviously needs some more work.

msnf's icon

Hi all,
is there some news about solving this problem now?
I am trying to play the mp4 files from ftp server -> impossible to use spigot~ (playing only local files), but I have the same jit.movie~ audio output glitches.
You can try this patch to hear the result :

jit.movie1ex~.maxpat
Max Patch

The same result is on Mac / PC computers...

Thanks!

Andreas Bade's icon
Arvid Tomayko's icon

Just to weigh in again – this is still an issue, and in addition, standard jit.movie (without ~) audio playback on windows with viddll seems to have gotten worse and now has constant glitches similar to the ones in jit.movie~ i reported here earlier. They are seemingly independent of sample rate or mono vs stereo. Testing with Max 7.3.4 on Windows 10, viddll 1.1.3.

It was so bad I could not use it for my standalone project and had to build my own system to synchronize playback of silent videos with mp3 files loaded into groove~ (buffer~ does not seem to load .m4a audio files on windows). Thankfully my videos are not that long and exact sync between picture and sound is not too important. (Aside: This also meant I couldn't use Max's playbar object anymore because it doesn't provide enough data on its state and had to build my own - but that's a complaint for a different thread :) ).

Leo Mayberry's icon

I'll chime in and say that I'm having the same sort of problem and thought it might have to do with the PCM audio files I'm using, but have just been too lazy/distracted to provide an example because it would involve uploading a large file. I can get it to do it by just loading one of my files into the vanilla movie~ help file example and messing with the playbar. PJPEG 80% quality, uncompressed PCM audio files. Start fine and then turn to garbage after a bit, or after scrubbing around on the playbar. It put a stop to rebuilding my A/V player, since I'm still stuck with using Quicktime on Windows and spigot~.

Rob Ramirez's icon

hi everyone, thanks for your feedback on this. viddll work has taken a back seat in recent months to some more pressing tasks, however this is still something I'd like to fix.

In the meantime, the workaround is still separating your audio files from your video files and syncing jit.movie to your audio player, a simple programming task with lots of flexibility. here's a basic example of this in case it's helpful:

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

hey guys, please check out the 7.3.5 update, which contains a viddll engine update that should address the issues in this thread.

yaniki's icon

Splendid!

Herr Markant's icon

+1 works like a charm now!

Arvid Tomayko's icon

Works great for me now on both macOS 10.13 and Windows 10. Thanks!