Kodi Community Forum

Full Version: xmbc.player() question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi in my plugin i am developing i have:
xbmc.Player().play(item=movieUrl, listitem=itemToPlay)

this works will with jarvis, but with kryption its not working,


log file:
https://pastebin.com/3np3Wcti

any help is welcome Smile
incorrect info
incorrect info
comparing a working fule up again none working i see this :


(2017-05-04, 22:19)nero12 Wrote: [ -> ]22:06:20.062 T:904 DEBUG: CurlFile::CReadState::Connect - Resume from position 4090428909
22:06:20.510 T:904 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 416
22:06:20.510 T:904 INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
22:06:20.510 T:7044 DEBUG: XFILE::CFileCache::Seek - waiting for position 4090494362.
22:06:20.510 T:7044 WARNING: XFILE::CFileCache::Seek - failed to get remaining data
22:06:20.547 T:7044 DEBUG: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
22:06:20.548 T:7044 ERROR: ffmpeg[1B84]: [h264] Invalid nal size 33716
22:06:20.548 T:7044 ERROR: ffmpeg[1B84]: [h264] Error splitting the input into NAL units.
22:06:20.548 T:7044 ERROR: ffmpeg[1B84]: [mov,mp4,m4a,3gp,3g2,mj2] stream 0, offset 0x20f6d8: partial file
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: [mov,mp4,m4a,3gp,3g2,mj2] decoding for stream 0 failed
22:06:20.548 T:7044 DEBUG: ffmpeg[1B84]: [mov,mp4,m4a,3gp,3g2,mj2] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 4072 kb/s): unspecified pixel format
22:06:20.548 T:7044 DEBUG: ffmpeg[1B84]: [mov,mp4,m4a,3gp,3g2,mj2] Consider increasing the value for the 'analyzeduration' and 'probesize' options
22:06:20.548 T:7044 DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Input #0, mov,mp4,m4a,3gp,3g2,mj2, http://akshayan.me/Tamil%20DVD/ZK.%20350...3_1080P.mp':
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Metadata:
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: major_brand : isom
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: minor_version : 512
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: compatible_brands: isomiso2avc1mp41
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: encoder : Lavf57.25.100
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Duration: 02:04:05.72, start: 0.000000, bitrate: 4395 kb/s
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 4072 kb/s, 24 fps, 24 tbr, 12288 tbn, 24576 tbc (default)
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Metadata:
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: handler_name : VideoHandler
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Metadata:
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: handler_name : SoundHandler
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: Side data:
22:06:20.548 T:7044 INFO: ffmpeg[1B84]: audio service type: main
22:06:20.548 T:7044 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
22:06:20.548 T:7044 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 1
22:06:20.548 T:7044 DEBUG: CDVDInputStreamFile::SetReadRate - set cache throttle rate to 604312 bytes per second
22:06:20.548 T:7044 NOTICE: Opening stream: 0 source: 256
22:06:20.548 T:7044 NOTICE: Creating video codec with codec id: 28
22:06:20.548 T:7044 DEBUG: FactoryCodec - Video: - Opening
22:06:20.548 T:7044 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:06:20.548 T:7044 DEBUG: CDVDVideoCodecFFmpeg - Updated codec: ff-h264
22:06:20.548 T:7044 DEBUG: FactoryCodec - Video: ff-h264 - Opened
22:06:20.548 T:7044 DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 28
22:06:20.548 T:7044 NOTICE: Creating video thread
22:06:20.548 T:7044 NOTICE: Opening stream: 1 source: 256
22:06:20.548 T:7044 NOTICE: Finding audio codec for: 86019
22:06:20.549 T:7044 DEBUG: FactoryCodec - Audio: passthrough - Opening
22:06:20.549 T:7044 DEBUG: FactoryCodec - Audio: passthrough - Failed
22:06:20.549 T:7044 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
22:06:20.549 T:8168 DEBUG: Thread VideoPlayerVideo start, auto delete: false
22:06:20.549 T:8168 NOTICE: running thread: video_thread
22:06:20.549 T:7044 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
22:06:20.549 T:7044 NOTICE: Creating audio thread
22:06:20.549 T:2472 DEBUG: Thread VideoPlayerAudio start, auto delete: false
22:06:20.549 T:2472 NOTICE: running thread: CVideoPlayerAudio:Tonguerocess()
22:06:20.549 T:7044 DEBUG: CApplication::OnPlayBackStarted: play state was 1, starting 1
22:06:20.549 T:7044 DEBUG: CVideoPlayer::SetCaching - caching state 1
22:06:20.549 T:7044 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
22:06:20.550 T:7044 ERROR: ffmpeg[1B84]: [h264] Invalid nal size 33716
22:06:20.550 T:7044 ERROR: ffmpeg[1B84]: [h264] Error splitting the input into NAL units.
22:06:20.550 T:8168 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
22:06:20.550 T:7044 ERROR: ffmpeg[1B84]: [mov,mp4,m4a,3gp,3g2,mj2] stream 0, offset 0x20f96e: partial file
22:06:20.550 T:8168 DEBUG: CVideoPlayerVideo::CalcDropRequirement - hurry: 0
22:06:20.550 T:7044 DEBUG: CVideoPlayer::SetCaching - caching state 0
22:06:20.550 T:7044 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
22:06:20.550 T:7044 NOTICE: CVideoPlayer::OnExit()
22:06:20.550 T:7044 NOTICE: VideoPlayer: eof, waiting for queues to empty
22:06:20.550 T:7044 NOTICE: Closing stream player 1
22:06:20.550 T:7044 NOTICE: Waiting for audio thread to exit
22:06:20.550 T:8168 ERROR: ffmpeg[1FE8]: [h264] Invalid nal size 33716
22:06:20.550 T:8168 ERROR: ffmpeg[1FE8]: [h264] Error splitting the input into NAL units.
22:06:20.550 T:8168 ERROR: CDVDVideoCodecFFmpeg:Big Grinecode - avcodec_decode_video returned failure
22:06:20.550 T:8168 DEBUG: CVideoPlayerVideo - video decoder returned error
22:06:20.557 T:9912 DEBUG: CApplication:TonguelayFile: OpenFile succeed, play state 2
22:06:20.557 T:9912 DEBUG: CApplication::OnPlayBackStarted: play state was 2, starting 0
22:06:20.558 T:9912 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x0000, modifier: 0x0
22:06:20.560 T:2472 NOTICE: thread end: CVideoPlayerAudio::OnExit()
22:06:20.560 T:2472 DEBUG: Thread VideoPlayerAudio 2472 terminating
22:06:20.560 T:7044 NOTICE: Closing audio device
try putthing xbmc.Player().play(url,listitem)
Did not help. Sad thanks for suggesting
(2017-05-04, 20:12)nero12 Wrote: [ -> ]hi in my plugin i am developing i have:
xbmc.Player().play(item=movieUrl, listitem=itemToPlay)

this works will with jarvis, but with kryption its not working,


log file:
https://pastebin.com/3np3Wcti

any help is welcome Smile

https://codedocs.xyz/xbmc/xbmc/group__py...649029ba30
it might be related to the file that you want to play, i see ffmeg is complaining about stuff and seems like your player has already been initialized, dont think this is pythonic issue related to your addon.