Kydoimos 916 Posted March 21, 2014 Hi all - can anyone tell me why I have a 2-3 second sound delay when I use the playVideo function? The sound is correct on the .OGV format video. Share this post Link to post Share on other sites
mrchy 2 Posted March 21, 2014 try like this sleep 0.1; _video = ["rsc\tunel.ogg"] spawn bis_fnc_playVideo; waitUntil {scriptDone _video}; 2 cutText ["", "BLACK IN"]; }; Share this post Link to post Share on other sites
Kydoimos 916 Posted March 21, 2014 Still out of sync, I'm afraid. Share this post Link to post Share on other sites
mrchy 2 Posted March 21, 2014 you need to convert again the video and check also the fps of the original video or use another program for convert video Share this post Link to post Share on other sites
Kydoimos 916 Posted March 21, 2014 Original video is DivX HD, 1920 x 1080 12000kbit/s, 29.97 frames/sec AAC, 16 it stereo, 48kHz I'm converting at: https://video.online-convert.com/convert-to-ogg Share this post Link to post Share on other sites
mrchy 2 Posted March 21, 2014 i use vlc player isnt the best but its work correctly Share this post Link to post Share on other sites
Kydoimos 916 Posted March 21, 2014 I've got VLC, I'll try that now - seems to be only recording the audio for the OGG (video)... ---------- Post added at 23:27 ---------- Previous post was at 23:16 ---------- Thanks though, MrChy, you've been very helpful! ;-p Share this post Link to post Share on other sites
Kydoimos 916 Posted March 22, 2014 I'm really struggling with this - can anyone offer to convert my file? I need a lossless conversion on an HD .mkv to OGG which will play correctly on A3... if there's anyone out there... please! You'd be a hero! I've tried VLC and some online converters but have had no success. Share this post Link to post Share on other sites
Grumpy Old Man 3545 Posted March 22, 2014 Just an out of the blue guess, is the video/audio converted with constant bitrate? variable bitrate can sometimes lead to sync issues Share this post Link to post Share on other sites
mcpxxl 2 Posted March 22, 2014 I have also tried a lot but no success The used AAN BIS video does not have syncron sound and pic sequences so no one will see the gap between Share this post Link to post Share on other sites
Kydoimos 916 Posted March 22, 2014 I'm implementing a workaround, which involves shifting the audio about! It's barbaric but it ought to do the job! Share this post Link to post Share on other sites
Kydoimos 916 Posted March 24, 2014 Ok - so I've tried several different converters, and with several different start formats - out of sync with each! Really can't think why this is happening?! Share this post Link to post Share on other sites
Magirot 14 Posted March 25, 2014 Same problem here, no idea of the cause. It's not very comfortable how often the game crashes when trying out different solutions, apparently in reaction to wrong aspect ratio. I'm implementing a workaround, which involves shifting the audio about! It's barbaric but it ought to do the job! A similar crude workaround I could think of was to play the audio seperately with playSound, and it seems to work reasonably well. You might want to give it a try to see if it works with longer videos. Here's an example mission with both versions, and choices in the action menu if you preview it: videotest.Stratis.zip (4,3mb) I wish we got a surefire way to get it working straight from the .ogv. Share this post Link to post Share on other sites
Kydoimos 916 Posted March 25, 2014 Thanks Magirot - perhaps we should address this on the feedback tracker? OGV seem bug-ridden! Share this post Link to post Share on other sites
Kydoimos 916 Posted March 25, 2014 £10 via payPal to the first one who can help me get a HD quality OGV video working with audio and video in sync! Share this post Link to post Share on other sites
Magirot 14 Posted March 26, 2014 perhaps we should address this on the feedback tracker? OGV seem bug-ridden! This turned up in the search: http://feedback.arma3.com/view.php?id=18026 Share this post Link to post Share on other sites
Kydoimos 916 Posted March 26, 2014 £15 via payPal... I'm upping the stakes. Share this post Link to post Share on other sites
mrchy 2 Posted March 26, 2014 Up for 100£ ? ;) the problem i think, its because you try to convert video coded in dvix, try to convert it first in avi and after that you can use vlc or whatever you want for convert it. also try to check the format audio and get the general format audio Share this post Link to post Share on other sites
Magirot 14 Posted March 26, 2014 the problem i think, its because you try to convert video coded in dvix, try to convert it first in avi and after that you can use vlc or whatever you want for convert it. also try to check the format audio and get the general format audio I did try to convert a raw video with both VLC and ffmpeg2theora. With the latter I also tested different setups I could dig up with google, all had either the same old desync or even worse problems. Has someone actually got it working correctly? None of the older threads I find on the subject mention this stuff. Share this post Link to post Share on other sites
mrchy 2 Posted March 27, 2014 ok im just curious, can you send me a link where i can download the video and i will convert it for you, i made since 2 weeks many video in ogg /ogv and i dont have any trouble with sound. Share this post Link to post Share on other sites
Magirot 14 Posted March 27, 2014 Have you used them in-game? I don't have any trouble with sound while playing them with regular media players either, but in Arma 3 there's always the desync. Share this post Link to post Share on other sites
Kydoimos 916 Posted March 27, 2014 Here's a link to my video: https://www.dropbox.com/s/mexrqehwlgghcww/Video.zip - I need to get a lossless HD copy in an OGV that works! If anyone susses it out I'll owe you big time! Share this post Link to post Share on other sites
mrchy 2 Posted March 28, 2014 Back, i just convert it on the fly, and i just realize your video its from a great project ;) so, there is something wrong with your video, 2 minutes in [MP4] 154 mega........... "the force is strong with you" ;) First : i don't know if arma can handle video for 2 min maybe yes i dont know, i always make video around 6 to 10 sec but its for MP Second : what kind of program did you use for make the video ? third : i converted with my regular parameter for ogg, and its seems the video don't have constant quality also i get a big audio desync at the end of the video Maybe you can make a combination of *PAA file for your intro, or i just thinking if the trouble come from the 2 minutes, you can cut your video in 4 or 3, its can be a solution against desync. sorry mate, vlc get hard time to convert your video and he did it not well 75 mega final result and not stable quality. Share this post Link to post Share on other sites
Magirot 14 Posted March 28, 2014 First : i don't know if arma can handle video for 2 min maybe yes i dont know, i always make video around 6 to 10 sec but its for MP I don't think it's related to length, since at least with me the audio always desyncs in the first few seconds regardless of how long it is. I've tried clips ranging from 4 seconds to ~5 minutes. Still there must be a working encoding setup, since BI's own intro works fine if you call it in your own mission, and apparently you've gotten shorter videos to work as well? I played around with Kydoimos' file in ffmpeg2theora (since that's what BI used), and I actually got the sync to be better than what it usually is for me, but there's still an annoying sound failure in the beginning, and it's clearly not as good as with a regular media player. On another note, if there are other people like me who hadn't checked BI's own scripts before, here's initIntro.sqf from Survive with the subtitles removed. Makes the mission intro consist of only the video in an apparently performance friendly manner and then ends the intro section. 0 fadeSound 0; titleCut ["", "BLACK FADED", 10e10]; [] spawn { waitUntil {time > 0}; enableEnvironment false; }; // Limit view distance setViewDistance 500; // Create upwards-facing camera private ["_camera"]; _camera = "Camera" camCreate [10,10,10]; _camera cameraEffect ["INTERNAL", "BACK"]; _camera camPreparePos [10,10,10]; _camera camPrepareTarget [10,10,1000]; _camera camPrepareFOV 0.7; _camera camCommitPrepared 0; sleep 1; private ["_video"]; _video = ["A3\Missions_F_EPA\video\A_in_intro.ogv"] spawn BIS_fnc_playVideo; waitUntil {scriptDone _video}; sleep 1; _camera cameraEffect ["TERMINATE", "BACK"]; camDestroy _camera; // Terminate intro endMission "END1"; Share this post Link to post Share on other sites
Kydoimos 916 Posted March 28, 2014 Yeah - certainly not related to length - good thinking though! Chances are, it might be something like that... ---------- Post added at 17:55 ---------- Previous post was at 17:54 ---------- I used Pinnacle Studio 16 to make the video... Share this post Link to post Share on other sites