xbmc / xbmc/inputstream.ffmpegdirect

[HELP] video file "disguised" as image (png)

Open
#100 13 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
101
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Hello, I've seen some sites that streams videos but if you download the part of the hls file and check its content you can see "‰PNG" if u try to use kodi to play that file it will fail as it will deal as an image, if you erase that "‰PNG" and save it as ts it will play with no problem
I tried to use the impustream with setMimeType to try to force to open a video but no success

2021-04-15 16:15:50.662 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect: OpenStream() - Num Props: 1
2021-04-15 16:15:50.662 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect property: inputstream.ffmpegdirect.is_realtime_stream = false
2021-04-15 16:15:50.662 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: Stream mimetype: application/octet-stream
2021-04-15 16:15:50.758 T:14900 INFO : Python interpreter stopped
2021-04-15 16:15:51.771 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: ffmpegdirect::FFmpegStream::OpenWithCURL - IO handled by Kodi's cURL
2021-04-15 16:15:51.961 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: ffmpeg[62D43BD7]: Input #0, png_pipe, from 'https://lh3.googleusercontent.com/proxy/p2mr6yBl2Bn1S-yr0-eONst-nYtOUadBbNVO-t5Nh_GL5qZOYF9sVVZfWZO1UaMxjUGd5r3qwqSb3iLN9HNS6IH4WB9yp5vwD34034cBMIlKJq67oQ=s0':
2021-04-15 16:15:51.962 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: ffmpeg[62D43BD7]: Duration: N/A, bitrate: N/A
2021-04-15 16:15:51.962 T:15072 INFO : AddOnLog: inputstream.ffmpegdirect: ffmpeg[62D43BD7]: Stream #0:0: Video: png, rgb24(pc), 1x1 [SAR 3779:3779 DAR 1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc

Is there any settings im missing that could force to play it as video/ts?
Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the logged OpenStream and OpenWithCURL path with the supplied URL, then inspect how the inputstream handles the PNG signature, application/octet-stream MIME type, and requested video/ts interpretation. Done would mean the disguised video stream opens and plays correctly without manual byte removal.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.