Forcing to play a video "disguised" as image
#1
Lightbulb 
Hello guys, first post here, ive looked everywhere for an answer but nothing till now, maybe any good sould here can help me, here my question:

https://lh4.googleusercontent.com/zHFt1H...9tsp9U=s61
if you open this url in any browser this will show up as png, but actually its an slice of a video, if you save it open in any text editor and erase the png in the first line or add any character and save it as .mp4 it will run with no problems. Is there any way kodi could do that, add any character with the data loaded or force it to run as a mp4 file, the only workaround that i found was using a server to open and change but it would spend some bandwidth.

Thanks in advance and sorry for my bad english
Reply
#2
I collected the headers from the file when playing in the player and when opened alone in the browser, maybe that could add some help
https://paste.kodi.tv/abasonuyep
Reply
#3
perhaps you can trick kodi by adding .png as a video extension:
https://kodi.wiki/view/Advancedsettings....extensions
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#4
(2019-11-20, 02:18)ronie Wrote: perhaps you can trick kodi by adding .png as a video extension:
https://kodi.wiki/view/Advancedsettings....extensions
Ill try that, thanks for replying
Reply
#5
Still treating like a png
Quote:2019-11-19 21:48:15.938 T:36084  NOTICE: Opening stream: 0 source: 256
2019-11-19 21:48:15.938 T:36084  NOTICE: Creating video codec with codec id: 61
2019-11-19 21:48:15.938 T:36084  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: PNG (Portable Network Graphics) image
2019-11-19 21:48:15.938 T:36084  NOTICE: Creating video thread
probably it should be addon side, some command to force it to run as below, or "edit" the content of the url before play idk, ill keep looking 
Quote:2019-11-19 21:51:08.271 T:44680  NOTICE: Creating video codec with codec id: 27
2019-11-19 21:51:08.271 T:44680  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2019-11-19 21:51:08.271 T:44680  NOTICE: Creating video thread
2019-11-19 21:51:08.272 T:43672  NOTICE: running thread: video_thread
2019-11-19 21:51:08.278 T:44680  NOTICE: Opening stream: 1 source: 256
2019-11-19 21:51:08.278 T:44680  NOTICE: Finding audio codec for: 86018
Reply
#6
use a inputstream plugin to demux it properly.
Reply
#7
(2019-11-23, 21:11)V8MEM Wrote: use a inputstream plugin to demux it properly.

how do i do that?
Reply
#8
AFAIK, unless FFMPEG do something about this (breaking standards) Kodi can do nothing about it
Kodi 21RC2 Windows 10 and 11 | 21RC2 Xbox One X | 21RC2 Linux Mint Virginia XFCE | CoreELEC NO 21 nightly S905X4 aarch64
Reply
#9
I don't know if this new option in Matrix could be of any help for your case...

https://forum.kodi.tv/showthread.php?tid...pid2855877

...after removing the current extension you should add the .mp4
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply
#10
(2019-11-26, 09:56)manfeed Wrote: I don't know if this new option in Matrix could be of any help for your case...

https://forum.kodi.tv/showthread.php?tid...pid2855877

...after removing the current extension you should add the .mp4

I can try that, dunno if its gonna work, but i apreciate your help anyway Smile
Reply
#11
(2019-11-26, 09:27)gujal Wrote: AFAIK, unless FFMPEG do something about this (breaking standards) Kodi can do nothing about it

JW player can manage to play that, I could do a routine to download it before playing, but It will require some internal space that I dont have much, I could download it in the ram while playing, but it would be beyond my knowledge. Thanks anyway for replying my thread
Reply
#12
(2019-11-19, 14:55)Rick987 Wrote: Hello guys, first post here, ive looked everywhere for an answer but nothing till now, maybe any good sould here can help me, here my question:

https://lh4.googleusercontent.com/zHFt1H...9tsp9U=s61
if you open this url in any browser this will show up as png, but actually its an slice of a video, if you save it open in any text editor and erase the png in the first line or add any character and save it as .mp4 it will run with no problems. Is there any way kodi could do that, add any character with the data loaded or force it to run as a mp4 file, the only workaround that i found was using a server to open and change but it would spend some bandwidth.

Thanks in advance and sorry for my bad english

Thank you the find
Reply

Logout Mark Read Team Forum Stats Members Help
Forcing to play a video "disguised" as image0