xbmc / xbmc/inputstream.ffmpegdirect
FFmpeg HTTP proxy port not applied correctly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 101
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
Branch: Omega
Target: WebOS
I've configured the proxy settings as follows:
host: 192.168.0.200
port: 1090
However, with this configuration, Kodi fails to apply the proxy correctly, and I encounter an error in the kodi.log:
2025-05-03 21:18:16.892 T:27111 info <general>: VideoPlayer::OpenFile: pvr://channels/tv/IRIB@453935575/1@pvr.iptvsimple_2073801549.pvr
2025-05-03 21:18:16.893 T:30487 info <general>: Creating InputStream
2025-05-03 21:18:16.898 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect: OpenStream() - Num Props: 2
2025-05-03 21:18:16.899 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect property: inputstream.ffmpegdirect.is_realtime_stream = true
2025-05-03 21:18:16.899 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect property: inputstream.ffmpegdirect.manifest_type = hls
2025-05-03 21:18:16.899 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: Stream mimetype: application/x-mpegURL
2025-05-03 21:18:16.900 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy host set: '192.168.0.200'
2025-05-03 21:18:16.900 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy port set: 1090
2025-05-03 21:18:16.900 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy user set: ''
2025-05-03 21:18:16.900 T:30487 info <general>: AddOnLog: inputstream.ffmpegdirect: OpenWithFFmpeg - IO handled by FFmpeg's AVFormat
2025-05-03 21:18:16.902 T:30487 error <general>: AddOnLog: inputstream.ffmpegdirect: ffmpeg[52899C32]: [tcp] Port missing in uri
2025-05-03 21:18:16.902 T:30487 error <general>: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/IRIB@453935575/1@pvr.iptvsimple_2073801549.pvr]
2025-05-03 21:18:16.902 T:30487 info <general>: CVideoPlayer::OnExit()
2025-05-03 21:18:16.903 T:30487 info <general>: ADDON: Dll Destroyed - Inputstream FFmpeg Direct
2025-05-03 21:18:17.099 T:27111 info <general>: CVideoPlayer::CloseFile()
2025-05-03 21:18:17.099 T:27111 info <general>: VideoPlayer: waiting for threads to exit
2025-05-03 21:18:17.099 T:27111 info <general>: VideoPlayer: finished waiting
If I instead include the port directly in the host value like this:
host: 192.168.0.200:1090
port: 1090
Kodi.log:
2025-05-03 22:46:58.076 T:4474 info <general>: VideoPlayer::OpenFile: pvr://channels/tv/All%20channels@-1/1@pvr.iptvsimple_507349789.pvr
2025-05-03 22:46:58.077 T:5484 info <general>: Creating InputStream
2025-05-03 22:46:58.088 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect: OpenStream() - Num Props: 2
2025-05-03 22:46:58.088 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect property: inputstream.ffmpegdirect.is_realtime_stream = true
2025-05-03 22:46:58.088 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: inputstream.ffmpegdirect property: inputstream.ffmpegdirect.manifest_type = hls
2025-05-03 22:46:58.088 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: Stream mimetype: application/x-mpegURL
2025-05-03 22:46:58.092 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy host set: '192.168.0.200:1090'
2025-05-03 22:46:58.092 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy port set: 1090
2025-05-03 22:46:58.092 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: HttpProxy user set: ''
2025-05-03 22:46:58.093 T:5484 info <general>: AddOnLog: inputstream.ffmpegdirect: OpenWithFFmpeg - IO handled by FFmpeg's AVFormat
then everything works as expected.
It seems the port value is not being passed properly to FFmpeg unless it's explicitly included in the host string.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the FFmpeg HTTP proxy configuration with the host and port provided separately, then trace how inputstream.ffmpegdirect passes those values to FFmpeg. Compare this with the working host string that includes :1090; the issue is done when a separately configured port is accepted without the “Port missing in uri” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100