Kodi Community Forum

Full Version: FFMPEGDemuxer Snchronization Resolution change
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get a smoth resolution change working in kodi when playing video with audio track (QT - MP4 file)

Quote:11:51:04 T:16080 DEBUG: ActiveAE::SyncStream - average error -28.233653 below threshold of 30.000000
11:51:04 T:6040 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
11:51:05 T:10072 DEBUG: CDVDClock:Big Griniscontinuity - CVideoPlayerAudio::OutputPacket - was:1161206.539976, should be:1106740.601151, error:-54465.938826
11:51:09 T:15956 DEBUG: CPullupCorrection: detected pattern of length 1: 41708.34, frameduration: 41708.333333
11:51:10 T:6040 INFO: Python, unloading python shared library because no scripts are running anymore
11:51:15 T:10328 DEBUG: CDVDDemuxFFmpeg::CDVDDemuxFFmpeg::Read - stream 0 change. PTS first-package: 20010666.6667
11:51:15 T:10328 NOTICE: Opening stream: 0 source: 256
11:51:15 T:10328 NOTICE: Finding audio codec for: 86018
11:51:15 T:10328 DEBUG: FactoryCodec - Audio: passthrough - Opening
11:51:15 T:10328 DEBUG: FactoryCodec - Audio: passthrough - Failed
11:51:15 T:10328 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:51:15 T:10328 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
11:51:17 T:10328 DEBUG: CDVDDemuxFFmpeg::CDVDDemuxFFmpeg::Read - stream 1 change. PTS first-package: 20103416.6667
11:51:17 T:10328 NOTICE: Opening stream: 1 source: 256
11:51:17 T:10328 NOTICE: Creating video codec with codec id: 28
11:51:17 T:10328 DEBUG: FactoryCodec - Video: - Opening
11:51:17 T:10328 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
11:51:17 T:10328 DEBUG: FactoryCodec - Video: ff-h264 - Opened
11:51:23 T:10072 DEBUG: CVideoPlayerAudio: Sample rate changed, checking for passthrough
11:51:23 T:10072 DEBUG: FactoryCodec - Audio: passthrough - Opening
11:51:23 T:10072 DEBUG: FactoryCodec - Audio: passthrough - Failed
11:51:23 T:10072 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:51:23 T:10072 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
11:51:23 T:10072 DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
11:51:23 T:10328 DEBUG: CVideoPlayer::HandleMessages - player started 1
11:51:23 T:15956 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
11:51:23 T:15956 DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 8 threads

- The video starts at 11:51:03
- The video changes its resolution after 20 secs
- because of buffering kodi detects the change at: 11:51:17

Question is now: why is the Decoder opened at this time (11:51:17)?
And anotherone at (the correct time) 11:51:23

I write this here because I didn't get a smooth resolution change for the video part, also the streams before / after the change fits together, kodi waits for about 0.5 secs before it continues playing it.
Audio works well.

It would be fine If somebody with experience in this could advice me.

Thanks
After some more debugging I found out, that the first open() just reinitializes the Decoder and the 2nd call (caused of a new package) Reopens the Decoder.
So this makes sense and seems to be OK, I'll investigate now, where the syncronization gap comes from.