Server: Unpredictive playout when using interlaced

Created on 16 Oct 2018  路  17Comments  路  Source: CasparCG/server

Expected behaviour

Predictive output when playing progressive/interlaced media files in interlaced mode.

Current behaviour

When setting a channel to 1080i50 and playing media files that are progressive or interlaced the output becomes unpredictive. For example, when playing a progressive file and then starting an interlaced file results sometimes in wrong upper and lower field order and sometimes the order is right.

Verified by using decklink output.


Steps to reproduce

  1. Set channel to 1080i50
  2. Play a progressive file
  3. Play an interlaced file
  4. Toggle between those two files
  5. Results in unpredictive output for interlaced media

Environment

  • Commit: 727542f
  • Server version: v2.2
typbug

Most helpful comment

The default config was to never deinterlace. Fixed in master.

All 17 comments

ping @ronag @Julusian

What does unpredictive mean?

Can you record and post?

ping @5opr4ni

Is seeking involved? e.g. START

Hi
No there is no seek involved. Made a phonerecording to clearer show the issue. I have one 50p 720 file, that plays flawlessly and then I have a 50i file that the first couple of times has the wrong field order but when I restart it several times, it jumps to the correct field order. I hope you can se it in the video here. (Sadly this makes it impossible for us to test more in production, we mix these two formats in some productions, I know now ;) )
https://youtu.be/jDS4LmuPFc8

/olle

Can you provide me with the exact files used? The interlaced clip should be de-interlaced... so this issue should not be possible unless the meta in the interlaced file doesn't properly indicate it is interlaced.

Large one, uploading it to wetransfer, you will have a gmaIl soon.

We changed somewhere in between betas to go from always deinterlace, to only deinterlace if meta says the file is interlaced... due to performance considerations...

Maybe we should make this configurable?

AE discovers the interlacing on this file, haven't checked it with probe. Will do that.

MediaInfo shows
ScanType: Interlaced
Scan order: Top Field First

Does this happen on the screen consumer as well? Or only decklink consumer?

You cant see the wrong fieldorder in the screenconsumer it shows both fields all the time.

@5opr4ni yes, screen consumer shows the de-interlaced output. If that is correct then this is an issue in the decklink consumer (which performs the interlacing of the output you see in the screen consumer) somewhere.

No, I see the complete frame with the fields.

screenconsumer
<channel> <video-mode>720p5000</video-mode> <consumers> <screen> <device>1</device> <aspect-ratio>16:9</aspect-ratio> <windowed>true</windowed> <key-only>false</key-only> <vsync>true</vsync> <borderless>false</borderless> <interactive>true</interactive> </screen> <system-audio> <channel-layout>stereo</channel-layout> <latency>0</latency> </system-audio> </consumers> </channel>

@5opr4ni that is totally wrong, it's something with the de-interlacer then. I will take a look.

The default config was to never deinterlace. Fixed in master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

premultiply picture premultiply  路  25Comments

jesperstarkar picture jesperstarkar  路  27Comments

Behinder picture Behinder  路  28Comments

petterreinholdtsen picture petterreinholdtsen  路  61Comments

Bernie333 picture Bernie333  路  47Comments