guino / Merkury1080P

Merkury1080P (CW017) Rooting and Customization
77 stars 16 forks source link

Question: Does anyone know the audio track format or codec used in .data files? #56

Open AeonJJohnson opened 2 months ago

AeonJJohnson commented 2 months ago

Greetings, Apologies for the indirect question to the project. Does anyone know what audio codec is used in the saved .data files? A unique codec or otherwise where/how do they embed and hide the audio? I can playback video just fine but no audio unless it is viewed through the Geeni app. There are no other files or hidden partitions in the sd card. I cannot figure out where the audio tracks are hidden or embedded.

Any response is appreciated

guino commented 2 months ago

From the code I believe the audio is captured in AAC format, the video is H264. The '.data' file format is non-standard -- it is basically a save of the captured buffers in sequential order (video + audio mixed). I have not been able to find a tool to 'convert' those from .data to any standard format (avi, mp4, mkv, etc) directly.

You can use the phone app to 'playback' the captured data, then press 'record' while watching the portion you want to save to the app's album, then you can export/share that recording (mp4 format) and play it normally.

You can playback the .data file directly in VLC, mplayer, ffmpeg (ffplay) but the audio will not play (and we usually have to 'force' the H264 demuxer on VLC).

If you find a tool to convert .data files into any other format directly, please post it as I would like to have it (and a lot of users here would like it too).

I have other cameras that record to 'AVI' files but again they're not standard AVI files so I have to 'convert' them to standard files as well -- at least on those cameras I have found a tool to convert them to standard format.