Cannot play recently imported added video file
#1
Shocked 
Hello,

I found an abnormal behavior about play video file.
When I add a video file through SAMBA and play it directly,
I got an 'ERROR: CDVDPlayer::OpenInputStream - error opening [/share/Video/lastvegas-tlr3_h1080p.mov]' like this.
I tried to play other videos in the same path, it works.
And I try to play lastvegas-tlr3_h1080p.mov again (without quit XBMC and keep try to play lastvegas-tlr3_h1080p.mov), player played normally !!!
That's really strange, is there anyone also get this behavior? Angel

My sample code as below:
PHP Code:
import xbmc
import xbmcgui

PLAYER 
xbmc.Player

xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
p.clear()

xbmcgui.ListItem(item.getLabel(), thumbnailImage=item.getProperty('thumbnail'))
l.setInfo('video', {'Title'item.getLabel()})

p.add(url=item.getProperty('filepath'), listitem=l)

PLAYER.stop()
PLAYER.play(item pwindowed True

Full log file is here:
http://pastebin.com/JkDMgeJt

Code:
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers(/share/Video/lastvegas-tlr3_h1080p.mov)
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/mms/udp
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
16:54:51 T:4110612224   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
16:54:51 T:4110612224   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
16:54:51 T:4110612224  NOTICE: DVDPlayer: Opening: /share/Video/lastvegas-tlr3_h1080p.mov
16:54:51 T:4110612224 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:51 T:4110612224   DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
16:54:51 T:4110612224   DEBUG: LinuxRendererGL: Cleaning up GL resources
16:54:51 T:4110612224   DEBUG: CLinuxRendererGL::PreInit - precision of luminance 16 is 16
16:54:51 T:3976522560  NOTICE: Thread CDVDPlayer start, auto delete: false
16:54:51 T:3976522560  NOTICE: Creating InputStream
16:54:51 T:3976522560   ERROR: CDVDPlayer::OpenInputStream - error opening [/share/Video/lastvegas-tlr3_h1080p.mov]
16:54:51 T:3976522560  NOTICE: CDVDPlayer::OnExit()
16:54:51 T:3976522560  NOTICE: CDVDPlayer::OnExit() deleting input stream
16:54:51 T:3976522560   DEBUG: Thread CDVDPlayer 3976522560 terminating
16:54:51 T:4110612224   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
16:54:51 T:4110612224   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
16:54:51 T:4110612224   ERROR: Playlist Player: skipping unplayable item: 0, path [/share/Video/lastvegas-tlr3_h1080p.mov]
16:54:51 T:4110612224   DEBUG: Playlist Player: no more playable items... aborting playback
16:54:51 T:4110612224  NOTICE: CDVDPlayer::CloseFile()
16:54:51 T:4110612224 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:51 T:4110612224  NOTICE: DVDPlayer: waiting for threads to exit
16:54:51 T:4110612224  NOTICE: DVDPlayer: finished waiting
Reply
#2
I'm not sure exactly what the variable 'url' looks like when you call p.add, but for my samba shares, it looks like: "smb://VIVESWHS/Videos/TV/Game of Thrones/Season 1/Game of Thrones - s01e01 - Winter Is Coming.mp4" note the smb:// at the beginning and the lack of that in your log. And if I call player.play("smb://VIVESWHS/Videos/TV/Game of Thrones/Season 1/Game of Thrones - s01e01 - Winter Is Coming.mp4") that plays just fine. If I remove the 'smb:/' the file fails to play.
Reply
#3
Sorry make you confuse, the 'url' is a local fullpath '/share/Video/lastvegas-tlr3_h1080p.mov', so I change property name as 'filepath'
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot play recently imported added video file0