CasparCG / server

CasparCG Server is a Windows and Linux software used to play out professional graphics, audio and video to multiple outputs. It has been in 24/7 broadcast production since 2006. Ready-to-use downloads are available under the Releases tab https://casparcg.com.
GNU General Public License v3.0
914 stars 268 forks source link

Info (OSC) Reports wrong duration. #1082

Closed 5opr4ni closed 6 years ago

5opr4ni commented 6 years ago

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


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
ronag commented 6 years ago

@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.