pierre-emmanuelJ / iptv-proxy

Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
GNU General Public License v3.0
538 stars 155 forks source link

Proxyfied movies not being played #70

Closed stedevo closed 3 years ago

stedevo commented 3 years ago
ffplay -i "http://192.168.0.5:8080/movie/test/passwordtest/movie.mp4"                                                                                                               
ffplay version n4.3.1 Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fec18000bc0] moov atom not found0/0   
http://192.168.0.5:8080/movie/test/passwordtest/movie.mp4: Invalid data found when processing input

When using the original, non proxyfied link it works without any problems so I guess there could be a problem at xtreamStreamMovie or c.stream ?

stedevo commented 3 years ago

Maybe kodi.log is more helpful:

2021-03-08 12:06:31.254 T:139756919593664  NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/All channels/pvr.iptvsimple_700257778.pvr
2021-03-08 12:06:31.255 T:139756347950656  NOTICE: Creating InputStream
2021-03-08 12:06:31.869 T:139756347950656  NOTICE: Creating Demuxer
2021-03-08 12:06:32.200 T:139755989988928   ERROR: CCurlFile::FillBuffer - Failed: Requested range was not delivered by the server(33)
2021-03-08 12:06:32.407 T:139756347950656   ERROR: Previous line repeats 1 times.
2021-03-08 12:06:32.407 T:139756347950656 WARNING: Seek - failed to get remaining data
2021-03-08 12:06:32.408 T:139756347950656 WARNING: Previous line repeats 1 times.
2021-03-08 12:06:32.408 T:139756347950656   ERROR: Open - Error, could not open file http://192.168.0.5:8080/movie/test/passwordtest/movie.mp4
2021-03-08 12:06:32.408 T:139756347950656   ERROR: OpenDemuxStream - Error creating demuxer
2021-03-08 12:06:32.408 T:139756347950656  NOTICE: CVideoPlayer::OnExit()
2021-03-08 12:06:32.437 T:139756919593664  NOTICE: CVideoPlayer::CloseFile()
2021-03-08 12:06:32.442 T:139756919593664  NOTICE: VideoPlayer: waiting for threads to exit
2021-03-08 12:06:32.442 T:139756919593664  NOTICE: VideoPlayer: finished waiting
pierre-emmanuelJ commented 3 years ago

It's weird, never experienced this issue in the past, I'm using also the movie part with no issue. I'll try to reproduce the issue on my side.

Also, can you provide a sample on how you started the proxy please?

stedevo commented 3 years ago

Hi, it's indeed strange since it is working without proxy. I start the proxy like this:

iptv-proxy --m3u-url "http://provider/get.php?username=provideruser&password=providerpw&type=m3u_plus&output=m3u8" \
--port 8080 \
--hostname 192.168.0.5 \
--user test \
--password passwordtest
pierre-emmanuelJ commented 3 years ago

It should work like that, the issue can come from your provider API. Please, can you show the iptv-proxy logs details when you play a movie, thanks. Logs message helps to see potential error.

pierre-emmanuelJ commented 3 years ago

@stedevo can you try the latest release please: https://github.com/pierre-emmanuelJ/iptv-proxy/releases/tag/v3.1.1 It should fix your issue

stedevo commented 3 years ago

Hey @pierre-emmanuelJ , i tested with release 3.1.1 and 3.1.2 and it works perfectly (both releases) now. Thanks a lot and keep up the good work. :)