Kodi Community Forum

Full Version: Is there any way to disable hardware acceleration for certain formats?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have some transport streams (.ts and .tp) that I am trying to playback on my ION PC. If I have hardware acceleration enabled the systems chokes and it doesn't even start playback, although it tries. If I disable the hardware acceleration the files play fine, but unfortunately I have some other HD format files that drop a lot of frames if hardware acceleration is disabled. So.....I was wondering if there was anyway I could either disable hardware acceleration for .tp or .ts files and keep it enabled for other files as applicable or if there was a way to disable it for mpeg2video (which is what it appears the format is identified as). A little snip from my debug log is attached.

Thanks


Quote:6:46:48 T:2900921200 M:1921875968 ERROR: ffmpeg[ACE88B70]: [mpeg2video] mpeg_decode_postinit() failure
16:46:48 T:2900921200 M:1921748992 ERROR: Previous line repeats 18 times.
16:46:48 T:2900921200 M:1921748992 DEBUG: Open - av_find_stream_info finished
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Input #0, mpegts, from 'smb://ALAN-PC/D/Glee/Glee-(The Substitute)-2011-03-22-0.tp':
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Duration: 01:04:58.49, start: 14872.065222, bitrate: 15039 kb/s
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Program 3
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Stream #0.0[0x31]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 13750 kb/s, 569.62 fps, 59.94 tbr, 90k tbn, 119.88 tbc
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Stream #0.1[0x34](eng): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
16:46:48 T:2900921200 M:1921748992 INFO: ffmpeg[ACE88B70]: Stream #0.2[0x35](spa): Audio: ac3, 48000 Hz, mono, s16, 192 kb/s
16:46:48 T:2900921200 M:1921748992 NOTICE: Opening video stream: 0 source: 256
16:46:48 T:2900921200 M:1921748992 NOTICE: Creating video codec with codec id: 2
16:46:48 T:2900921200 M:1921748992 DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:no OpenMax:no VDPAU:yes VAAPI:no
16:46:48 T:2900921200 M:1921748992 DEBUG: FactoryCodec - Video: - Opening
16:46:48 T:2900921200 M:1921748992 DEBUG: Loading: /usr/lib/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so
16:46:48 T:2900921200 M:1921425408 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(1280x720, 2)
16:46:49 T:2900921200 M:1920036864 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
16:46:49 T:2900921200 M:1920036864 NOTICE: VDPAU Decoder capabilities:
16:46:49 T:2900921200 M:1920036864 NOTICE: name level macbs width height
16:46:49 T:2900921200 M:1920036864 NOTICE: ------------------------------------
16:46:49 T:2900921200 M:1920036864 NOTICE: MPEG1 0 8192 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: MPEG2_MAIN 3 8192 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: H264_MAIN 41 8190 2032 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: H264_HIGH 41 8190 2032 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: VC1_SIMPLE 1 8190 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: VC1_MAIN 2 8190 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: VC1_ADVANCED 4 8190 2048 2048
16:46:49 T:2900921200 M:1920036864 NOTICE: ------------------------------------
16:46:49 T:2900921200 M:1920036864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
16:46:49 T:2900921200 M:1920036864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
16:46:49 T:2900921200 M:1920036864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
16:46:49 T:2900921200 M:1920036864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
16:46:49 T:2900921200 M:1920036864 NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
16:46:49 T:2900921200 M:1920036864 NOTICE: Creating 1280x720 pixmap
16:46:49 T:2900921200 M:1920036864 DEBUG: Found 4 fbconfigs.
16:46:49 T:2900921200 M:1920036864 DEBUG: Using fbconfig index 0.
16:46:49 T:2900921200 M:1920036864 INFO: GLX: Creating Pixmap context
16:46:49 T:2900921200 M:1910038528 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
16:46:49 T:2900921200 M:1910038528 DEBUG: FactoryCodec - Video: ff-mpegvideo_vdpau-vdpau - Opened
16:46:49 T:2900921200 M:1909927936 NOTICE: Creating video thread
16:46:49 T:2900921200 M:1909927936 NOTICE: Opening audio stream: 1 source: 256
16:46:49 T:2892528496 M:1909927936 DEBUG: thread start, auto delete: 0
16:46:49 T:2900921200 M:1909927936 NOTICE: Finding audio codec for: 86020
16:46:49 T:2900921200 M:1909927936 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
16:46:49 T:2900921200 M:1909927936 INFO: CDVDAudioCodecPassthroughFFmpeg::Open - Won't transcode for HDMI
16:46:49 T:2900921200 M:1909927936 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Failed
16:46:49 T:2900921200 M:1909800960 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
16:46:49 T:2892528496 M:1909800960 DEBUG: LinuxRendererGL: Cleaning up GL resources
16:46:49 T:2900921200 M:1909800960 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
16:46:49 T:2892528496 M:1909800960 NOTICE: running thread: video_thread
16:46:49 T:2900921200 M:1909800960 NOTICE: Creating audio thread
16:46:49 T:2884135792 M:1909800960 DEBUG: thread start, auto delete: 0
16:46:49 T:2900921200 M:1909800960 DEBUG: ReadEditDecisionLists - Assuming NTSC or 60i interlaced content. Adjusted frames per second from 59.940 (~59.940 fps) to 29.970
16:46:49 T:2884135792 M:1909800960 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
16:46:49 T:2900921200 M:1909800960 DEBUG: ReadEditDecisionLists - Checking for edit decision lists (EDL) on local drive or remote share for: smb://ALAN-PC/D/Glee/Glee-(The Substitute)-2011-03-22-0.tp
16:46:49 T:2900921200 M:1909997568 DEBUG: CDVDPlayer::SetCaching - caching state 2
16:46:49 T:2884135792 M:1909170176 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(1200.222223, 1)
16:46:49 T:2892528496 M:1909170176 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
16:46:49 T:2884135792 M:1909170176 ERROR: ffmpeg[ABE86B70]: [ac3] frame sync error
16:46:49 T:2892528496 M:1909170176 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(425989.111112, 0)
16:46:49 T:2884135792 M:1909170176 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
16:46:49 T:2884135792 M:1909170176 DEBUG: CDVDPlayerAudio:Tonguerocess - Decode Error
16:46:49 T:2884135792 M:1908011008 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, no pass-through
16:46:49 T:2884135792 M:1908011008 INFO: CPCMRemap: Configured speaker layout: 2.1
16:46:49 T:2884135792 M:1907884032 INFO: CPCMRemap: I channel map: FL,FR
16:46:49 T:2884135792 M:1907884032 INFO: CPCMRemap: O channel map: FL,FR
16:46:49 T:2884135792 M:1907757056 DEBUG: CPCMRemap: Downmix normalization is disabled
16:46:49 T:2884135792 M:1907757056 DEBUG: CPCMRemap: FL = FL(1.000000*)
16:46:49 T:2884135792 M:1907630080 DEBUG: CPCMRemap: FR = FR(1.000000*)
16:46:49 T:2884135792 M:1907630080 DEBUG: RemoveActiveDevice - Removing device 1
16:46:49 T:2884135792 M:1907630080 DEBUG: CGUIAudioManager:Big GrineInitialize
16:46:49 T:2892528496 M:1907249152 ERROR: ffmpeg[AC687B70]: [mpegvideo_vdpau] warning: first frame is no keyframe
16:46:49 T:2892528496 M:1905725440 NOTICE: (VDPAU) screenWidth:1280 vidWidth:1280
16:46:49 T:2892528496 M:1905725440 NOTICE: (VDPAU) screenHeight:720 vidHeight:720
16:46:49 T:2892528496 M:1884561408 ERROR: (VDPAU) Error: A catch-all error, used when no other error code applies.(25) at VDPAU.cpp:905
16:46:49 T:2892528496 M:1884561408 NOTICE: Attempting recovery
16:46:49 T:2892528496 M:1905467392 ERROR: VDPAU Device Preempted - attempting recovery
16:46:49 T:2892528496 M:1905467392 ERROR: (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:748
16:46:49 T:2884135792 M:1904451584 DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
16:46:49 T:2884135792 M:1904451584 DEBUG: RemoveActiveDevice - Removing device 0
16:46:49 T:3025442816 M:1904451584 DEBUG: CAnnouncementManager - Announcement: PlaybackStarted from xbmc
16:46:49 T:2884135792 M:1904451584 DEBUG: Initialize - using alsa device plug:hdmi
16:46:49 T:3025442816 M:1903816704 DEBUG: CGUIInfoManager::SetCurrentMovie(smb://ALAN-PC/D/Glee/Glee-(The Substitute)-2011-03-22-0.tp)
16:46:49 T:2884135792 M:1903816704 DEBUG: CALSADirectSound::Initialize - packet size:2048, packet count:16, buffer size:8192
16:46:49 T:2884135792 M:1903816704 DEBUG: CALSADirectSound::Initialize - Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough false - audioDevice: plug:hdmi
not without hacking the code.