Server: Info (OSC) Reports wrong duration.

Created on 19 Sep 2018  路  1Comment  路  Source: CasparCG/server

Expected behaviour

Duration of clip should have the correct time reported in OSC and Info.

Current behaviour

When a 25 fps or 50i file is played and has the LENGTH set, the time is half that of the actual length.


Steps to reproduce

Download this file to test it out.
https://www.dropbox.com/s/l5hwohse91bibpz/HAP_Alpha_FILLKEY_AUDIO.mov.zip?dl=0

The "HAP_ALPHA_FILLKEY_AUDIO" is 900 frames (36s) long and Progressive 25fps. Info below.

PLAY 1-10 HAP_ALPHA_FILLKEY_AUDIO
INFO 1

Gives the correct time. 36s

PLAY 1-10 HAP_ALPHA_FILLKEY_AUDIO SEEK 0
INFO 1

Gives the correct time. 36s

PLAY 1-10 HAP_ALPHA_FILLKEY_AUDIO SEEK 0 LENGTH 900
INFO 1

Gives the WRONG time. 18s

Environment

  • Commit: fda4d
  • Server version: v2.2
  • Operating system: Windows 10

General
Complete name                            : /Volumes/caspar/_MEDIA/HAP_Alpha_FILLKEY_AUDIO.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2005.03 (qt  )
File size                                : 501 MiB
Duration                                 : 36s 0ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 117 Mbps
Encoded date                             : UTC 2016-05-03 12:02:05
Tagged date                              : UTC 2016-05-03 12:06:48
Writing library                          : Apple QuickTime
TIM                                      : 00:00:00:00
TSC                                      : 25
TSZ                                      : 1

Video
ID                                       : 1
Format                                   : Hap Alpha
Codec ID                                 : Hap5
Codec ID/Info                            : Hap Video Codec
Duration                                 : 36s 0ms
Bit rate mode                            : Variable
Bit rate                                 : 115 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Bits/(Pixel*Frame)                       : 2.223
Stream size                              : 495 MiB (99%)
Language                                 : English
Encoded date                             : UTC 2016-05-03 12:02:05
Tagged date                              : UTC 2016-05-03 12:06:48

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 36s 0ms
Source duration                          : 36s 160ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.59 MiB (1%)
Source stream size                       : 6.62 MiB (1%)
Language                                 : English
Encoded date                             : UTC 2016-05-03 12:02:05
Tagged date                              : UTC 2016-05-03 12:06:48

Other
ID                                       : 3
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 36s 0ms
Time code of first frame                 : 00:00:00:00
Time code, striped                       : Yes
Language                                 : English
Encoded date                             : UTC 2016-05-03 12:06:48
Tagged date                              : UTC 2016-05-03 12:06:48
typbug

Most helpful comment

@5opr4ni what mode are you running the channel in? Remember the LENGTH parameter is in channel frames, NOT media frames, so 900 frames in 50p/i is 18s.

>All comments

@5opr4ni what mode are you running the channel in? Remember the LENGTH parameter is in channel frames, NOT media frames, so 900 frames in 50p/i is 18s.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

super-ienien picture super-ienien  路  24Comments

rrebuffo picture rrebuffo  路  25Comments

ronag picture ronag  路  29Comments

petterreinholdtsen picture petterreinholdtsen  路  61Comments

MauriceVeraart picture MauriceVeraart  路  45Comments