OpenIPC / majestic

Majestic Community edition integration kit
MIT License
33 stars 5 forks source link

Incorrect video duration in 1 minute files #119

Closed bo-skor closed 3 months ago

bo-skor commented 1 year ago

Required information

Issue description

Если запись видео на SD карту происходит стандартным отрезками по 1 часу, то перемотка работает корректно. Однако если выставить запись файлами по 1 минуте, то длительность отображается некорректно, в части случаев 1 часю Перемотка в таком случае не работает или ведет себя непредсказуемо.

Expectations

Steps to reproduce

  1. Включаем запись и заполняем поле /mnt/mmcblk0p1/%Y/%m/%d/%H/%M.mp4
  2. Производим запись
  3. Просматриваем записанный материал. Перемотка не работает

Information to attach

gtxaspec commented 1 year ago

I have this issue as well:

The duration time of the file created by majestic is incorrect, it seems to be the total time majestic has been running at the time of the file creation, yet the file is supposed to be 1 minute, only:

File created by majestic:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '00.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1iso6mp41
    creation_time   : 2023-08-02T18:00:04.000000Z
    encoder         : Lavf57.83.100
  **Duration: 03:03:28.48, start: 10937.674445, bitrate: 14 kb/s**
    Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 2048x1536, 14 kb/s, 19.77 fps, 20 tbr, 1000k tbn (default)

for comparison, this file created by ffmpeg:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'street-2023_07_24-17_36.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf59.16.100
  **Duration: 00:01:00.03, start: 0.000000, bitrate: 2137 kb/s**
  Stream #0:0[0x1]: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 2006 kb/s, 30 fps, 30 tbr, 15360 tbn (default)

Latest master as of today. @FlyRouter would this be a settings issue, or a bug in majestic?