This particular mp4 file plays in browser, but not in Kodi
#1
Hi all,

I'm having an issue with playing an MP4 with my addon which comes from a specific source. I scrape other Mp4's with my plugin and they work perfectly, but anything from tunefiles fails?

This mp4 plays perfectly in a browser, but the exact same link fails in Kodi with:
Code:
08:12:25.014 T:5760   ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file

This is the link:
Code:
https://cw011.tunefiles.com/files/videos/2017/07/10/149963244429bf7-720.mp4

And my get_url code is below (which works for everything else... I have a ton of media that I scrape)
Code:
def get_url(url):
        req = urllib2.Request(url)
        req.add_header('User-agent', 'Mozilla/5.0 (X11; Linux x86_64; SmartTV) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'),('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'),('Accept-Encoding', 'none'),('Accept-Language', 'en-US,en;q=0.8'),('Connection', 'keep-alive')
        req.add_header('Referer', url)
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        return link

Any suggestions?
Reply
#2
I put the link in a .strm file and it played fine in Jarvis. Huh
Kodi Nexus on Dell Optiplex 980 Lubuntu 22.04 | Kodi Nexus on HTPC Lubuntu 20.04 | My Add-ons | Legacy Repo | Matrix Repo
>>>>> Newest MetalChris Addons: Redbox | NEWSnet | NHL Radio | Weather Unlocked
Reply
#3
Hmm, I'm running 17.3, tried on Apple TV4, Linux boxes, Android boxes, as well as PC, they all fail
Reply
#4
No debug log (wiki) no issue.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#5
Relevant bits -
Header issue maybe?

Code:
13:16:49.325 T:1168  NOTICE: Creating Demuxer
13:16:49.325 T:8948   DEBUG: Thread FileCache start, auto delete: false
13:16:49.326 T:1168   DEBUG: CDVDDemuxFFmpeg::Open - probing detected format [mov,mp4,m4a,3gp,3g2,mj2]
13:17:01.845 T:17572   DEBUG: Thread JobWorker 17572 terminating (autodelete)
13:17:01.845 T:13736   DEBUG: Thread JobWorker 13736 terminating (autodelete)
13:17:01.845 T:17808   DEBUG: Thread JobWorker 17808 terminating (autodelete)
13:17:11.210 T:17628   DEBUG: CWinEventsWin32::WndProcWindow is active
13:17:19.550 T:1168   ERROR: ffmpeg[490]: [mov,mp4,m4a,3gp,3g2,mj2] error reading header
13:17:19.550 T:1168   ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file https://cw011.tunefiles.com/files/videos/2017/07/10/149963244429bf7-720.mp4?h=_5EbwasZKDj3tM170qWHlQ&ttl=1499937950
13:17:19.550 T:1168   ERROR: CVideoPlayer::OpenDemuxStream - Error creating demuxer
13:17:19.550 T:1168  NOTICE: CVideoPlayer::OnExit()
13:17:20.817 T:8948   DEBUG: Thread FileCache 8948 terminating
13:17:20.818 T:1168   DEBUG: CApplication::OnPlayBackStopped: play state was 1, starting 1
13:17:20.818 T:1168   DEBUG: Thread VideoPlayer 1168 terminating
13:17:20.834 T:17628   DEBUG: CApplication::OnPlayBackStopped: play state was 3, starting 0
13:17:20.834 T:17628   ERROR: Playlist Player: skipping unplayable item: 0, path [https://cw011.tunefiles.com/files/videos/2017/07/10/149963244429bf7-720.mp4?h=_5EbwasZKDj3tM170qWHlQ&ttl=1499937950]
13:17:20.834 T:17628   DEBUG: Playlist Player: one or more items failed to play... aborting playback
13:17:20.834 T:17628   DEBUG: ------ Window Init (DialogConfirm.xml) ------
13:17:20.835 T:17628  NOTICE: CVideoPlayer::CloseFile()
13:17:20.835 T:17628  NOTICE: VideoPlayer: waiting for threads to exit
13:17:20.835 T:17628  NOTICE: VideoPlayer: finished waiting
13:17:20.835 T:17628   DEBUG: CRenderManager::DeleteRenderer - deleting renderer
13:17:20.835 T:17628  NOTICE: CVideoPlayer::CloseFile()
13:17:20.835 T:17628  NOTICE: VideoPlayer: waiting for threads to exit
13:17:20.835 T:17628  NOTICE: VideoPlayer: finished waiting
13:17:20.836 T:17628   DEBUG: Radio UECP (RDS) Processor - delete CDVDRadioRDSData::~CDVDRadioRDSData
13:17:20.846 T:13144   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
13:17:20.846 T:13144   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
13:17:21.070 T:17628   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
13:17:21.301 T:17516   DEBUG: Thread JobWorker start, auto delete: true
13:17:21.301 T:17516   DEBUG: CSaveFileStateJob::DoWork - Saving file state for video item https://cw011.tunefiles.com/files/videos/2017/07/10/149963244429bf7-720.mp4?h=_5EbwasZKDj3tM170qWHlQ&ttl=1499937950
13:17:21.751 T:17628   DEBUG: ------ Window Init (Pointer.xml) ------
13:17:22.351 T:17628   DEBUG: CInputManager::ProcessMouse: trying mouse action leftclick
13:17:22.585 T:17628   DEBUG: ------ Window Deinit (DialogConfirm.xml) ------
13:17:22.600 T:13144   DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
13:17:22.600 T:13144   DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
13:17:22.600 T:16340   DEBUG: Thread BackgroundLoader start, auto delete: false
13:17:22.615 T:16340   DEBUG: Thread BackgroundLoader 16340 terminating
13:17:22.615 T:16824   DEBUG: Thread JobWorker start, auto delete: true
13:17:23.386 T:17628   DEBUG: CWinEventsWin32::WndProcWindow is active
Reply
#6
Please post your full debug log to pastebin.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#7
if you download it, the file plays. if you download, then stick on another web server the file works. that's as far as i tracked it, it's something with the server/http(s) support in kodi that changed. i couldn't make it behave in ffplay/mplayer/vlc directly from the original server either btw.
Reply
#8
Hi,

Has anyone been able to solve this? tunefiles is the only host that does not work for my addon as well in Kodi 17. I tried putting the link in strm file as well, but it does not work.
Reply

Logout Mark Read Team Forum Stats Members Help
This particular mp4 file plays in browser, but not in Kodi0