Wowza Community

File duration requires 64-bit atom structures. File may not play properly in...

Wowza Team

we are having trouble using the ILiveStreamRecordManager class.

In the example below ILiveStreamRecordManager started the class in onAppStart.

private static com.wowza.wms.livestreamrecord.manager.ILiveStreamRecordManager recordManager;

private static com.wowza.wms.livestreamrecord.manager.StreamRecorderParameters recordParams;

in onAppStart.

recordParams = new com.wowza.wms.livestreamrecord.manager.StreamRecorderParameters(appInstance);

recordParams.moveFirstVideoFrameToZero=true;

recordParams.versioningOption = IStreamRecorderConstants.VERSION_FILE;

recordManager = appInstance.getVHost().getLiveStreamRecordManager();

Then through another method we started recording.

recordParams.outputFile=params.get(“streamName”).toString()+"_recorder";

recordManager.startRecording(appInstance, params.get(“streamName”).toString(), recordParams);

Issue 1

What we need to do is get the name and the file size (MP4) recording to save the database. We have researched and found nothing in the documentation.

Issue 2

Another problem we have is that the recording created with the class is generating problems of time in the video, he gets a crazy time a 30-second video gets 348239489398/2. In the logs is generated the following error:

TWriterUtils.writeMOOVAtom: File duration requires 64-bit atom structures. File may not play properly in QuickTime for Windows.

Thanks!

Hi Carlos,

Issue 1

What we need to do is get the name and the file size (MP4) recording to save the database. We have researched and found nothing in the documentation.

Do look into the livestreamrecord API to get the file name and duration. In particular, the methods getCurrentDuration and getFilename.

Issue 2

Another problem we have is that the recording created with the class is generating problems of time in the video, he gets a crazy time a 30-second video gets 348239489398/2. In the logs is generated the following error:

TWriterUtils.writeMOOVAtom: File duration requires 64-bit atom structures. File may not play properly in QuickTime for Windows.

Can you tell us what version and build number you are using? There was a recent update that fixed a scenario that generated this error. I would recommend installing the latest patch and seeing if this resolved your livestream recording issue.

Michelle