bbsan2k/plugin.video.f1tv

Demuxer error

tomcontr opened this issue · 11 comments

It was wokring fine a week ago. Now I cant watch any race.....

Logs:

2020-04-04 22:10:49.286 T:1937514016   ERROR: Previous line repeats 2 times.
2020-04-04 22:10:49.286 T:1937514016  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.f1tv/?action=playContent&content_url=%2Fapi%2Fchannels%2Fchan_d77f90b2775f4db4855d32605f2c65da%2F
2020-04-04 22:10:49.781 T:1391453040  NOTICE: Creating InputStream
2020-04-04 22:10:50.206 T:1391453040  NOTICE: Creating Demuxer
2020-04-04 22:11:20.433 T:1391453040   ERROR: OpenDemuxStream - Error creating demuxer
2020-04-04 22:11:20.433 T:1391453040  NOTICE: CVideoPlayer::OnExit()
2020-04-04 22:11:20.512 T:1937514016  NOTICE: CVideoPlayer::CloseFile()
2020-04-04 22:11:20.512 T:1937514016  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-04 22:11:20.512 T:1937514016  NOTICE: VideoPlayer: finished waiting
2020-04-04 22:12:14.608 T:1361490800   ERROR: en



2020-04-04 22:26:21.943 T:1937514016   ERROR: Previous line repeats 4 times.
2020-04-04 22:26:21.943 T:1937514016  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.f1tv/?action=playContent&content_url=%2Fapi%2Fchannels%2Fchan_d4bcd3b82133461caca69db7e33cb4f2%2F
2020-04-04 22:26:23.137 T:1383060336  NOTICE: Creating InputStream
2020-04-04 22:26:24.048 T:1383060336  NOTICE: Creating Demuxer
2020-04-04 22:26:54.101 T:1383060336   ERROR: OpenDemuxStream - Error creating demuxer
2020-04-04 22:26:54.101 T:1383060336  NOTICE: CVideoPlayer::OnExit()
2020-04-04 22:26:54.146 T:1937514016  NOTICE: CVideoPlayer::CloseFile()
2020-04-04 22:26:54.146 T:1937514016  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-04 22:26:54.146 T:1937514016  NOTICE: VideoPlayer: finished waiting
2020-04-04 22:31:32.713 T:1937514016   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
2020-04-04 22:31:37.335 T:1399845744   ERROR: en
2020-04-04 22:33:02.305 T:1937514016   ERROR: Previous line repeats 4 times.
2020-04-04 22:33:02.306 T:1937514016  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.f1tv/?action=playContent&content_url=%2Fapi%2Fchannels%2Fchan_d4bcd3b82133461caca69db7e33cb4f2%2F
2020-04-04 22:33:03.322 T:1374667632  NOTICE: Creating InputStream
2020-04-04 22:33:04.559 T:1374667632  NOTICE: Creating Demuxer
2020-04-04 22:33:34.621 T:1374667632   ERROR: OpenDemuxStream - Error creating demuxer
2020-04-04 22:33:34.621 T:1374667632  NOTICE: CVideoPlayer::OnExit()
2020-04-04 22:33:34.771 T:1937514016  NOTICE: CVideoPlayer::CloseFile()
2020-04-04 22:33:34.771 T:1937514016  NOTICE: VideoPlayer: waiting for threads to exit
2020-04-04 22:33:34.771 T:1937514016  NOTICE: VideoPlayer: finished waiting
^[[C2020-04-04 22:40:27.947 T:1803834224   ERROR: en
2020-04-04 22:40:29.710 T:1937514016  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.f1tv/?action=playContent&content_url=%2Fapi%2Fchannels%2Fchan_d4bcd3b82133461caca69db7e33cb4f2%2F
2020-04-04 22:40:30.878 T:1803834224  NOTICE: Creating InputStream
2020-04-04 22:40:31.776 T:1803834224  NOTICE: Creating Demuxer

What kind of device are you on? I am assuming you were trying to watch the 2018 Bahrain Race (but i cannot be sure of this) however that race works fine on windows.

Im using Kodi on a Raspberry PI and Also Kodi on a Amazon Fire Stick.
On both platforms I have the same problem. Cant Watch any race.
Im trying to watch races from the 2018 season.

im also getting the demuxer error, on an Rpi MOdel 3 B+ running the latest LibreElec 9.2.3, oddly i have older Pi3's that work fine... really not sure whats causing the issues although the docu's work fine, just not the races....

ok after my last message to this i believe this problem is related to the cache settings on kodi on the Rpi, would apply to the firestick too, you need to add the following lines to advancedsettings.xml which is found under /storage/.kodi/userdata (if it does not exist create it)

the contents should be:

<advancedsettings>
	<cache>
    	<buffermode>1</buffermode>
		<memorysize>107286400</memorysize>
		<readfactor>5</readfactor>
  	</cache>
</advancedsettings>

try that and see if the videos work, i had this setting already on my other Pi's had forgotten to add it to me new one.

unfortunatly my fix did not work, still have this issue have attached some deeper logs, does mention a tls error?

2020-07-11 20:03:19.670 T:1707008896 INFO: ffmpeg[65BEE380]: [hls,applehttp] Opening 'https://f1tv-cdn-cent-live.formula1.com/ondemand/7833/_C_/3/2/wif0711064738/1/VIDEO_12_300000/1594475290_set_0/OTT_F1_WIF2_VIDEO_12_300000_969.ts' for reading
2020-07-11 20:03:19.863 T:1707008896 ERROR: ffmpeg[65BEE380]: [tls] error:00000000:lib(0):func(0):reason(0)
2020-07-11 20:03:19.864 T:1707008896 ERROR: ffmpeg[65BEE380]: [hls,applehttp] Error when loading first segment 'https://f1tv-cdn-cent-live.formula1.com/ondemand/7833/_C_/3/2/wif0711064738/1/VIDEO_12_300000/1594475290_set_0/OTT_F1_WIF2_VIDEO_12_300000_968.ts'
2020-07-11 20:03:19.918 T:1707008896 DEBUG: Error, could not open file (2) https://f1tv-cdn-cent-live.formula1.com/ondemand/7833/_C_/3/2/wif0711064738/1/clip_2_master.m3u8?nva=1594497887&ttl=86400&cc=US&token=09ad17d0977ced556f811
2020-07-11 20:03:19.918 T:1707008896 ERROR: OpenDemuxStream - Error creating demuxer
2020-07-11 20:03:19.918 T:1707008896 NOTICE: CVideoPlayer::OnExit()
2020-07-11 20:03:19.919 T:1799328640 DEBUG: Thread JobWorker start, auto delete: true
2020-07-11 20:03:19.919 T:1707008896 DEBUG: Thread VideoPlayer 1707008896 terminating
2020-07-11 20:03:19.940 T:1707008896 DEBUG: Thread JobWorker start, auto delete: true
2020-07-11 20:03:19.940 T:1799328640 DEBUG: OnPlayBackStopped: CApplication::OnPlayBackStopped
2020-07-11 20:03:20.032 T:1937080336 NOTICE: CVideoPlayer::CloseFile()
2020-07-11 20:03:20.032 T:1937080336 DEBUG: DeleteRenderer - deleting renderer
2020-07-11 20:03:20.032 T:1937080336 DEBUG: CMMALRenderer::~CMMALRenderer
2020-07-11 20:03:20.032 T:1937080336 DEBUG: CMMALRenderer::UnInitMMAL
2020-07-11 20:03:20.033 T:1432703872 DEBUG: CMMALRenderer::Run - stopping
2020-07-11 20:03:20.033 T:1432703872 DEBUG: Thread MMALProcess 1432703872 terminating
2020-07-11 20:03:20.033 T:1937080336 NOTICE: VideoPlayer: waiting for threads to exit
2020-07-11 20:03:20.033 T:1937080336 NOTICE: VideoPlayer: finished waiting
2020-07-11 20:03:20.036 T:1937080336 DEBUG: Radio UECP (RDS) Processor - delete ~CDVDRadioRDSData

ok more info to add, i can sucessfully play the 2018 Austrialian GP, cannot play the 2019, i wonder if they changed codec after 2018?

ok after some extenisve testing i have figured out the problem, its the hardware MPEC decoding on the pi, I had the mpeg license installed on my older Pi3's and not on the newer one. without the mpeg license i could not play any content newer than 2018. now i have installed the MPEG license all issues seem to have gone and im no longer getting the demux error, all content including todats is playing. hope this helps!

https://codecs.raspberrypi.org/

not sure what you would need to do about the firestick but this sorted my issue on an RPI3

Are you sure it was the mpeg codec, not the vc9?
Strange...
For the future I‘m still thinking of running these streams through InputStream, as it is making the authentification a lot easier...
Unfortunately I currently have really limited time, so if anyone wants to contribute feel free to PR!

Mmm don't think I have the vc9 license, might give it a go though all replays are working now but live streams won't start, will do some more logging later. Willing to assist with development, at the moment I code in c# dont really know python but always a good time to learn 😁

ok so turning on the hardware OMXPlayer seems to be hacing a good effect, need another live session to test it now....

I've got the same issue on Kodi 19 on Android TV.

Log:

2021-07-18 19:29:05.546 T:15258 INFO : initializing python engine.
2021-07-18 19:29:07.681 T:15258 WARNING <CAddonSettings[plugin.video.f1tv]>: cannot reference setting (relative index: -1; absolute index: -1) in another category in old setting condition "!eq(-1,)" for "username"
2021-07-18 19:29:07.682 T:15258 WARNING <CAddonSettings[plugin.video.f1tv]>: failed to parse enable condition "!eq(-1,)" of old setting definition for "username"
2021-07-18 19:29:08.757 T:15258 INFO : PYF1TV Log: Using existing auth
2021-07-18 19:29:08.765 T:15258 INFO : PYF1TV Log: Requested: {"uri": "CONTENT/PLAY?contentId=1000001783", "id": "1000001783", "target": "PLAY", "name": "INSIDE TRACKS - Shorts: Silverstone 2020"}
2021-07-18 19:29:10.034 T:15258 INFO : uri=CONTENT%2FPLAY%3FcontentId%3D1000001783&id=1000001783&target=PLAY&name=INSIDE+TRACKS+-+Shorts%3A+Silverstone+2020
2021-07-18 19:29:10.035 T:15258 INFO : CPythonInvoker(25, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.f1tv/main.py): script successfully run
2021-07-18 19:29:10.054 T:12196 INFO : VideoPlayer::OpenFile: plugin://plugin.video.f1tv/?uri=CONTENT%2FPLAY%3FcontentId%3D1000001783&id=1000001783&target=PLAY&name=INSIDE+TRACKS+-+Shorts%3A+Silverstone+2020
2021-07-18 19:29:10.413 T:15258 INFO : Python interpreter stopped
2021-07-18 19:29:11.513 T:15268 INFO : Creating InputStream
2021-07-18 19:29:11.805 T:15268 INFO : Creating Demuxer
2021-07-18 19:29:42.115 T:15268 ERROR : OpenDemuxStream - Error creating demuxer
2021-07-18 19:29:42.116 T:15268 INFO : CVideoPlayer::OnExit()
2021-07-18 19:29:42.147 T:12196 INFO : CVideoPlayer::CloseFile()
2021-07-18 19:29:42.170 T:12196 INFO : VideoPlayer: waiting for threads to exit
2021-07-18 19:29:42.170 T:12196 INFO : VideoPlayer: finished waiting