recorded mixer stream has wrong creation time in the metadata

ett

Member
When,
- WCS: 5.2.591-54b0ff638d81e3e5350a066f8bf93652816868ac
- Add to flashphoner.properties: record_mixer_streams = true
- A client publish using Android-SDK-1.1's Room#publish()
Then,
the recorded .mp4 file has wrong creation time 2002-05-16T04:50:38.000000Z,
today is Mon Apr 27 00:51:02 UTC 2020.

What's more,
try 3 minutes later, new recorded file has approximately one more day newer than above.

Code:
$ date ##### server time is correct #####
Mon Apr 27 00:51:02 UTC 2020

$ stat ./stream-675dd23a-3173-455c-b586-3bf6cd22d349-424jbot9956tr9uduhuf6516ke.mp4
##### file timestamp is correct #####
  File: './stream-675dd23a-3173-455c-b586-3bf6cd22d349-424jbot9956tr9uduhuf6516ke.mp4'
  Size: 272302      Blocks: 536        IO Block: 4096   regular file
Device: 10301h/66305d   Inode: 411901      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-04-27 00:28:21.666306553 +0000
Modify: 2020-04-27 00:28:21.686306218 +0000
Change: 2020-04-27 00:28:21.686306218 +0000
 Birth: -
$ ffprove-4.2.2-static ./stream-675dd23a-3173-455c-b586-3bf6cd22d349-424jbot9956tr9uduhuf6516ke.mp4
##### creation_time is wrong #####
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream-675dd23a-3173-455c-b586-3bf6cd22d349-424jbot9956tr9uduhuf6516ke.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2002-05-16T04:50:38.000000Z
  Duration: 00:00:16.25, start: 0.000000, bitrate: 134 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2002-05-16T04:50:38.000000Z
      handler_name    : SoundHandler
exiftool reports same result attached.
 

Attachments

Max

Administrator
Staff member
Good day.
We reproduced the issue and raised the internal ticket WCS-2657 to fix it. We'll let you know in this topic when fix will be ready.
As workaroung, you can use post-recording script to set the file creation date to metadata.
 

ett

Member
I tried it just now, the recorded stream's creation time is correct perfectly!
Awesome thanks!
 
Top