MediaGlobe 2: OK, frame rate is 30 fps. Problem was audio sampling rate. Fixed now.

Yesterday I wrote about the problem with obtaining mp4-formatted fulldome features, which is that to play them as mp4s I'd have to play them on my laptop with the fisheye projector set up as an extended desktop (a bit fiddly since the commands to start and so forth are visible on the dome -- although another planetarian says he uses fade to hide the commands in between features). Besides which, I keep my laptop with me rather than leaving it lying about at the planetarium, and there are volunteers who run some of the shows -- they prefer more straightforward procedures using the existing system, on which they were trained.

So all in all, it's much better for me to convert the mp4 video into the demuxed m2v (video file) -plus-ogg (audio file) pair with the java script to run them in the mediaglobe system, all in a neat folder with a title.txt in the toplevel directory at load-in time. That's what the MG2 software wants, so that's what I gave it. Only...

UPDATE: This is where the problem was. [ORIG: The audio (ogg file) was in tune and was sampled at the CD standard rate of 44.1 kHz, and it started out in sync with the video (m2v file), but rapidly "slid" as the video seemed to be playing faster than it was supposed to.]  UPDATE: Well, supposedly it was sampled at 44.1 kHz, but in fact the original S/W I was using would take the sampling rate I wanted and ignore it in favor of the 48 kHz sampling rate of the original mp4. A sad commentary on friendly user interfaces... So, here's what I'm using on my Windows machine: MPEG_Streamclip. That will not demux an mp4 directly (nothing is ever easy, is it) and says so in the documentation, but it is sort of a GUI that ties together several programs, one of which is Prism Video File Converter. When you download MPEG_Streamclip, you get Prism (assuming you tell it to include everything). Prism will happily turn an mp4 into an MPG, no fuss. And while MPEG_Streamclip will not demux an mp4, it has no qualms about demuxing an mpg. However, it won't demux directly into an ogg file. It will produce the m2v and you should (probably; to be on the safe side) use the following to get the ogg:

In order to be absolutely certain that I am getting the audio sampling rate I specify, I open the original mp4 (which has very clear Properties that tell me this mp4 is 30 frames per second, audio sampled at 48 kHz) in MPEG_Streamclip and choose Export Audio... then I can set everything in the dialog that opens. I choose type: mp3, Channels: Stereo, "sample rate": 44.1 kHz, bit rate: 128 kbps. That's so I can be very specific about the bitrate in the final ogg file. I then use the other free download, "SWITCH" sound file converter to convert that mp3 to an .ogg file. It keeps the 44.1 kHz sampling rate, so at last (at last!) my audio and my video are staying in synchronization over the length of a 20-plus-minute show.

[ORIGINAL: The mp4 video track had been converted to an m2v with the STATED frame rate (from the MediaGlobe 2 manual) of 30 fps, but clearly that was not working. So I did a little research. Other possibilities were 29.7 fps and 23.9 (24) fps. After trying both of those, the solution was clear.]  UPDATE: No, it wasn't. Fortunately, the frame rate stays at 30 fps without any prompting if I just use MPEG_Streamclip to demux the mpg I created using Prism. So once the solution actually *was* clear (the audio sampling rate was not what it was supposed to be), the sync drift problem was solved. Much happier now.

The m2v file has to be written with a frame rate of 24 fps. The ogg file is written with a sampling rate of 44.1kHz as stated in the manual [UPDATE: only if you make absolutely sure your software is paying attention to what you tell it!] but the video frames per second is NOT 30 (as stated, apparently incorrectly, in the manual). It's 24. After writing the m2v file with 24 fps, there is NO expanding slippage between video and audio, the way there was with 30 fps as the m2v frame rate.  [UPDATE: Alas, that was only true for the short video I used as a test. Once I used the method on a longer video the evil slippage was back, plus at the lower fps rate the motion starts to look a little less fluid than it should be.

So, general advice for anyone else out there who is pulling out his or her hair over creating an m2v file that stays in sync with the ogg file: if they start out synced up and then the video begins to slip earlier than the audio, decrease your frames per second in the conversion. [UPDATE: This is actually still true] If they start out synced up and the video starts to seriously get later than the corresponding audio, increase your fps in the conversion.

UPDATE: Specific advice for anyone still using an MG2 system or needing m2v-plus-ogg for whatever arcane reason: MPEG_streamclip is a free download. Prism video converter comes with it and will make mp4s into mpgs so that even though MPEG_Streamclip won't demux an mpg you can still do that, in two steps. MPEG_streamclip *will* allow you to set the audio sampling rate when you just elect to Export Audio from the mp4 to, say, mp3 format, and once it's in that format and sampled at 44.1 kHz, the mp3 can be converted quickly and easily to an ogg file (preserving the sampling rate) using SWITCH (another free download). OK, this was certainly a learning process. I'm sure there will be more. If some bewildered person finds this useful, then I'm really glad I was able to cut your stressful period down by posting it. I also owe thanks to someone for pointing me toward MPEG_Streamclip and SWITCH rather than the straight FFMPEG and Avidemux I was trying to use. Those are both very powerful but evidently (from my lack of being able to get them to enforce sampling rates) are less noob-friendly; in particular Prism and MPEG_streamclip make use of one or both of these, but in a way that a Windows user has a chance of figuring out.

Today an older free show that was converted at 30 fps years ago and that the volunteers had refused to run because by the end it's embarrassingly out of sync has been re-converted and is in sync for the first time. I'm pretty happy about that. And all it took was a week of nerves and two days [UPDATE: Make that five days] of serious stress! :-)

Good luck, everyone. Happy New Year! And Clear Skies, or at least highly resolved skies. I'm hoping to see Comet 2014 Q2 Lovejoy one of these nights if the clouds will depart for a few hours!  [Seen it. Fuzzy. Green. The "green" is kinda cool :-) ]

-- Heather

Views: 361

Comment

You need to be a member of fulldome.org to add comments!

Join fulldome.org

Fulldome Wikipedia Entry

Fulldome Video Discussion Group

IMERSA

Fulldome Database

Forum

Converting HD Video to Fulldome

Started by Dave Monk Apr 3.

The best Tools for Fulldome content creation 1 Reply

Started by Mike Lee. Last reply by Amr Ellaithy Oct 16, 2019.

Immersive Film Festival - IFF’19

Started by Antonio Pedrosa Jul 17, 2019.

help with conversion tool - won't communicate with PS 2 Replies

Started by Kimberly A Allard. Last reply by Andrew Hazelden Jun 14, 2019.

New To Fulldome Filmmaking And Need Some Advice

Started by Charl May 3, 2019.

Selecting a projector for Spherical mirror System 6 Replies

Started by Amr Ellaithy. Last reply by Joe Dunfee Mar 3, 2019.

KartaVR v4 for Fusion and Resolve Released

Started by Andrew Hazelden Jan 24, 2019.

Shooting fisheye lens, sensors - tips?

Started by Erika Tsuchiya Oct 27, 2017.

uh oh, i just joined... 1 Reply

Started by steve. Last reply by Alexander Hager Jun 12, 2017.

Stereoscopic domemaster images 154 Replies

Started by Roberto Ziche. Last reply by Andrew Hazelden Jun 10, 2017.

Latest Activity

Mark C. Petersen posted a blog post

FULLDOME OnDemand Adds Flat-screen HD Format Options

FULLDOME OnDemand has added a flat-screen option for customers to use when renting selected shows."Over the years at Loch Ness Productions, we've had inquiries about flat-screen versions of our shows, particularly for use in classroom settings," said Loch Ness Productions CEO Carolyn Collins Petersen. "Traditionally, we stayed focused on the dome experience; that's what we're good at, after all. Now with the worldwide…See More
Sep 1
James posted a blog post

Essential Tips For a Long and Lucrative Music Career, Wowessays.com review

Breaking into the music industry has always been a challenge for artists of all genres. Tens of thousands of artists are dying for meditation and gigs, and this is on top of the artistic challenge of finding inspiration for new songs, finding the right melody or beat, and tackling band member personalities. The entire process can be…See More
Aug 21
Dan posted an event

IMERSA Days at https://mailchi.mp/imersa/imersaday2

August 21, 2020 from 10am to 12:30pm
https://mailchi.mp/imersa/imersaday2Virtual IMERSA Days, August 21st and 28thFree registration!See More
Aug 19
Claudio Recabarren Madrid posted a blog post
Aug 10

© 2020   Created by Dan.   Powered by

Badges  |  Report an Issue  |  Terms of Service