You are not logged in.

#1 2024-09-04 11:52:52

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 312

ffmpeg cant open iptv (access denied)

hello, ffmpeg and ffplay cant open this iptv (italy):

$ ffplay "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746990&output=16"
ffplay version n7.0.2 Copyright (c) 2003-2024 the FFmpeg developers
  built with gcc 14.2.1 (GCC) 20240805
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
[https @ 0x74d788001380] HTTP error 403 Forbidden sq=    0B 
https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746990&output=16: Server returned 403 Forbidden (access denied)

why? on mpv it works:

$ mpv "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746990&output=16"
Resuming playback. This behavior can be disabled with --no-resume-playback.
 (+) Video --vid=1 (h264 1280x720 25.000fps) (2537 kbps)
     Video --vid=2 (h264 1024x576 25.000fps) (1988 kbps)
     Video --vid=3 (h264 768x432 25.000fps) (1336 kbps)
 (+) Audio --aid=1 (aac 2ch 44100Hz) (2537 kbps)
     Audio --aid=2 (aac 2ch 44100Hz) (1988 kbps)
     Audio --aid=3 (aac 2ch 44100Hz) (1336 kbps)
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu] 1280x720 yuv420p
Saving state.
Not seekable, or time unknown - not saving position.
AV: 00:00:01 / 00:00:03 (45%) A-V: -0.002 ct: -0.073 Dropped: 1 Cache: 1.3s/468KB
Exiting... (Quit)

EDIT:
I have solved it by using yt-dlp instead of ffmpeg:

yt-dlp "https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=746990&output=16" --downloader ffmpeg --downloader-args "-t 01:00:00.00"

Last edited by quellen (2024-09-04 16:17:44)


sorry for my bad english

Offline

Board footer

Powered by FluxBB