Jump to content


Photo

HTTP error 403 Forbidden when recording


  • Please log in to reply
12 replies to this topic

#1 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted 07 December 2018 - 01:16 AM

I am new to Emby, have been using it for about 2-3 weeks and would appreciate if someone can help me with this issue.

 

I have been trying to record on different channels. Sometimes it records for 30 seconds and sometimes it records nothing.

Any ideas of how I could solve this?

 

The emby server is running on Ubuntu.

Autoloop option is enabled.

I am pasting the log here:

{"Protocol":"Http","Id":"795f1ff2400af03870b48a9c07f717fd","Path":"http://tv.latintvweb.com:25461/live/eduardosanches03/Btimn2Povo/11605.m3u8","Type":"Default","Container":"hls,applehttp","Size":2974,"IsRemote":true,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_795f1ff2400af03870b48a9c07f717fd","RequiresLooping":true,"SupportsProbing":true,"MediaStreams":[{"Codec":"h264","TimeBase":"1/90000","CodecTimeBase":"1001/120000","VideoRange":"SDR","DisplayTitle":"720P H264","NalLengthSize":"0","IsInterlaced":false,"BitRate":8000000,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":59.94006,"RealFrameRate":59.94006,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":32,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/90000","CodecTimeBase":"1/44100","DisplayTitle":"AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":44100,"IsDefault":false,"IsForced":false,"Profile":"LC","Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"Formats":[],"Bitrate":8192000,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36"},"AnalyzeDurationMs":3000}

/opt/emby-server/bin/ffmpeg -async 1 -vsync -1 -fflags +igndts -stream_loop -1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 -analyzeduration 5000000 -i "http://tv.latintvweb.com:25461/live/eduardosanches03/Btimn2Povo/11605.m3u8" -codec:v:0 copy -fflags +genpts -map_metadata -1 -threads 0 -codec:a:0 copy -sn -y "/media/dvr/La ▒~Zltima Palabra/La ▒~Zltima Palabra 2018_12_07_00_00_00.ts"


ffmpeg version 4.0.2-emby_2018_09_13 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
  configuration: --cc=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-vdpau --disable-xlib --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libx264 --enable-libzvbi --enable-version3 --disable-decoders --disable-encoders --enable-decoder=aac --enable-decoder=aac_fixed --enable-decoder=aac_latm --enable-decoder=ac3 --enable-decoder=ac3_fixed --enable-decoder=alac --enable-decoder=apng --enable-decoder=ass --enable-decoder=ayuv --enable-decoder=bmp --enable-decoder=dca --enable-decoder=dirac --enable-decoder=dvbsub --enable-decoder=dvdsub --enable-decoder=eac3 --enable-decoder=flac --enable-decoder=gif --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=huffyuv --enable-decoder=mjpeg --enable-decoder=mlp --enable-decoder=mov_text --enable-decoder=mp3 --enable-decoder=mp3float --enable-decoder=mpeg4 --enable-decoder=opus --enable-decoder=pcm_alaw --enable-decoder=pcm_bluray --enable-decoder=pcm_dvd --enable-decoder=pcm_f16le --enable-decoder=pcm_f24le --enable-decoder=pcm_f32be --enable-decoder=pcm_f32le --enable-decoder=pcm_f64be --enable-decoder=pcm_f64le --enable-decoder=pcm_lxf --enable-decoder=pcm_mulaw --enable-decoder=pcm_s16be --enable-decoder=pcm_s16be_planar --enable-decoder=pcm_s16le --enable-decoder=pcm_s16le_planar --enable-decoder=pcm_s24be --enable-decoder=pcm_s24daud --enable-decoder=pcm_s24le --enable-decoder=pcm_s24le_planar --enable-decoder=pcm_s32be --enable-decoder=pcm_s32le --enable-decoder=pcm_s32le_planar --enable-decoder=pcm_s64be --enable-decoder=pcm_s64le --enable-decoder=pcm_s8 --enable-decoder=pcm_s8_planar --enable-decoder=pcm_u16be --enable-decoder=pcm_u16le --enable-decoder=pcm_u24be --enable-decoder=pcm_u24le --enable-decoder=pcm_u32be --enable-decoder=pcm_u32le --enable-decoder=pcm_u8 --enable-decoder=pcm_zork --enable-decoder=pgssub --enable-decoder=png --enable-decoder=r210 --enable-decoder=rawvideo --enable-decoder=ssa --enable-decoder=subrip --enable-decoder=srt --enable-decoder=text --enable-decoder=theora --enable-decoder=truehd --enable-decoder=v210 --enable-decoder=v210x --enable-decoder=v308 --enable-decoder=v408 --enable-decoder=v410 --enable-decoder=vorbis --enable-decoder=vp8 --enable-decoder=vp9 --enable-decoder=webp --enable-decoder=webvtt --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-decoder=wmavoice --enable-decoder=wmv1 --enable-decoder=wmv2 --enable-decoder=wmv3 --enable-decoder=wmv3image --enable-decoder=y41p --enable-decoder=yuv4 --enable-decoder=zero12v --enable-encoder=aac --enable-encoder=ac3 --enable-encoder=ac3_fixed --enable-encoder=ass --enable-encoder=dvbsub --enable-encoder=dvdsub --enable-encoder=flac --enable-encoder=libmp3lame --enable-encoder=libopus --enable-encoder=libtheora --enable-encoder=libvorbis --enable-encoder=libwebp --enable-encoder=libx264 --enable-encoder=mjpeg --enable-encoder=mov_text --enable-encoder=png --enable-encoder=srt --enable-encoder=ssa --enable-encoder=subrip --enable-encoder=text --enable-encoder=webvtt --enable-libsmbclient --enable-decoder=mp1 --enable-decoder=mp2 --enable-decoder=mpegvideo --enable-decoder=mpeg1video --enable-decoder=mpeg2video --enable-decoder=vc1 --enable-cuda --enable-cuvid --enable-nvenc --enable-vaapi --enable-decoder=h264_cuvid --enable-decoder=hevc_cuvid --enable-decoder=mjpeg_cuvid --enable-decoder=mpeg1_cuvid --enable-decoder=mpeg2_cuvid --enable-decoder=mpeg4_cuvid --enable-decoder=vc1_cuvid --enable-decoder=vp8_cuvid --enable-decoder=vp9_cuvid --enable-encoder=h264_nvenc --enable-encoder=h264_vaapi --enable-encoder=hevc_nvenc --enable-encoder=hevc_vaapi --enable-encoder=mjpeg_vaapi --enable-cross-compile --cross-prefix=x86_64-pc-linux-gnu- --extra-libs='-ldl -lexpat -lfreetype -lfribidi -lfontconfig -liconv -lpng -luuid -lz -lvorbis -logg -lnettle -lhogweed -lgmp -laddns-samba4 -lasn1util-samba4 -lauthkrb5-samba4 -lCHARSET3-samba4 -lcliauth-samba4 -lcli-cldap-samba4 -lcli-ldap-common-samba4 -lcli-nbt-samba4 -lcli-smb-common-samba4 -lcom_err -lcommon-auth-samba4 -ldbwrap-samba4 -ldcerpc-binding -ldcerpc-samba-samba4 -lflag-mapping-samba4 -lgenrand-samba4 -lgensec-samba4 -lgse-samba4 -lgssapi_krb5 -llibcli-lsa3-samba4 -llibsmb-samba4 -linterfaces-samba4 -liov-buf-samba4 -lk5crypto -lkrb5 -lkrb5samba-samba4 -lkrb5support -lldb -lldbsamba-samba4 -lmessages-dgm-samba4 -lmessages-util-samba4 -lmsghdr-samba4 -lmsrpc3-samba4 -lndr -lndr-krb5pac -lndr-nbt -lndr-samba-samba4 -lndr-standard -lreplace-samba4 -lsamba-cluster-support-samba4 -lsamba-credentials -lsamba-debug-samba4 -lsamba-errors -lsamba-hostconfig -lsamba-modules-samba4 -lsamba-security-samba4 -lsamba-sockets-samba4 -lsamba-util -lsamba3-util-samba4 -lsamdb -lsamdb-common-samba4 -lsecrets3-samba4 -lserver-id-db-samba4 -lserver-role-samba4 -lsmbconf -lsmbd-shim-samba4 -lsmb-transport-samba4 -lsocket-blocking-samba4 -lsys-rw-samba4 -ltalloc -ltalloc-report-samba4 -ltdb -ltdb-wrap-samba4 -ltevent -ltevent-util -ltime-basic-samba4 -lutil-cmdline-samba4 -lutil-reg-samba4 -lutil-setid-samba4 -lutil-tdb-samba4 -lwbclient -lwinbind-client-samba4 -ldrm' --target-os=linux --enable-shared --disable-static
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[http @ 0x1444140] Will reconnect at 2974 in 0 second(s), error=End of file.
    Last message repeated 192 times
[http @ 0x1444140] HTTP error 403 Forbidden
[http @ 0x1444140] Will reconnect at 2974 in 1 second(s), error=End of file.
[http @ 0x1444140] HTTP error 403 Forbidden
[http @ 0x1444140] Will reconnect at 2974 in 0 second(s), error=End of file.
[http @ 0x1444140] HTTP error 403 Forbidden
[http @ 0x1444140] Will reconnect at 2974 in 1 second(s), error=End of file.
[http @ 0x1444140] HTTP error 403 Forbidden
[http @ 0x1444140] HTTP error 403 Forbidden


Edited by xiltepin, 07 December 2018 - 01:28 AM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted 07 December 2018 - 01:49 AM

HI, only your iptv provider can tell you why they are sending back 403 forbidden, but this most likely means you are probably exceeding their simultaneous connection limits. have you looked into that?



#3 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted 07 December 2018 - 01:59 AM

That was my guess but I confirmed that I was streaming only one.

I have noticed that sometimes my android phone keeps running my emby app on the background. Probably it was that. I will confirm.

Is there anyway that my provider could block emby from recording?



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted 07 December 2018 - 02:00 AM

Were you watching and recording at the same time?



#5 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted 07 December 2018 - 02:10 AM

Yes I was.

Now I get it. I didn't know that would add one more streaming client if I watch and record at the same time.

Now that I try to only record I guet this. Would this mean that the channel is unstable?

Thank you for the help. Much appreciated! :)


{"Protocol":"Http","Id":"35dec85acf053d3b5ab4f8dc9f2824c5","Path":"http://tv.latintvweb.com:25461/live/eduardosanches03/Btimn2Povo/15072.m3u8","Type":"Default","Container":"hls,applehttp","Size":2972,"IsRemote":true,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,$

/opt/emby-server/bin/ffmpeg -async 1 -vsync -1 -fflags +igndts -stream_loop -1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2 -analyzeduration 5000000 -i "http://tv.latintvweb.com:25461/live/eduardosanches03/Btimn2Povo/15072.m3u8" -codec:v:0 copy -fflags +genpts -map_metadata -1 -thre$


ffmpeg version 4.0.2-emby_2018_09_13 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (crosstool-NG crosstool-ng-1.23.0)
  configuration: --cc=x86_64-pc-linux-gnu-gcc --arch=x86_64 --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --pkg-config=pkg-config --disable-doc --disable-ffplay --disable-vdpau --disable-xlib --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libass --enable-libfreety$
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[http @ 0xbcb140] Will reconnect at 2973 in 0 second(s), error=End of file.
    Last message repeated 49 times
[http @ 0xbcb140] Will reconnect at 2974 in 0 second(s), error=End of file.
    Last message repeated 67 times
[http @ 0xbcb140] Will reconnect at 2973 in 0 second(s), error=End of file.
    Last message repeated 56 times
[http @ 0xbcb140] Will reconnect at 2972 in 0 second(s), error=End of file.
    Last message repeated 61 times
[http @ 0xbcb140] Will reconnect at 2971 in 0 second(s), error=End of file.
    Last message repeated 64 times
[http @ 0xbcb140] Will reconnect at 2972 in 0 second(s), error=End of file.


#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted 07 December 2018 - 02:12 AM

That makes it look like there's no more data to read. To play and record at the same time while only using a single connection to your iptv provider, make sure to play the recording rather than playing the channel.



#7 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted 07 December 2018 - 02:23 AM

Were you watching and recording at the same time?

 

This is answering a lot of my questions and issues. I just found that my provider only allows 2 connections at the same time from the same city.

Now my emby server is in vps in the US and I am in Japan. In the past I also tried to record and watch a different channel with vlc. This makes sense.

 

 

Thank you!

I think I have to learn how to read the log files.

 

Sometimes I record long sport matches and the server sports recording after 40-90 mins. I might have questions at that time. Thank you for your prompt response! :)



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted 07 December 2018 - 11:58 AM

Thanks for the feedback.

#9 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted Yesterday, 05:11 AM

I am getting the error below only with one streaming

[http @ 0xbcb140] Will reconnect at 2973 in 0 second(s), error=End of file.
    Last message repeated 49 times

With VLC and the web app provided by my iptv provider I don't have any issues when streaming. Only with Emby.

What could be the reason of this issue?



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted Yesterday, 02:46 PM

That's nothing to worry about. That's why you enable stream looping, to auto-reconnect when that happens.



#11 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted Today, 08:23 PM

I contacted my provider, let them now I am using Emby and that I am having this issue. They asked me to add this parameters to my list url: [type=m3u_plus&output=ts]

That fixed the issue but I constantly see this message in my log:
 
 
frame= 2688 fps=112 q=-1.0 size=N/A time=00:00:44.82 bitrate=N/A speed=1.87x
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d4.m3u8.tmp' for writing
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d415.ts' for writing
frame= 2752 fps=110 q=-1.0 size=N/A time=00:00:45.89 bitrate=N/A speed=1.83x
frame= 2832 fps=109 q=-1.0 size=N/A time=00:00:47.22 bitrate=N/A speed=1.82x
frame= 2986 fps=107 q=-1.0 size=N/A time=00:00:49.79 bitrate=N/A speed=1.78x
frame= 2999 fps=103 q=-1.0 size=N/A time=00:00:50.02 bitrate=N/A speed=1.72x
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d4.m3u8.tmp' for writing
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d416.ts' for writing
frame= 3075 fps=102 q=-1.0 size=N/A time=00:00:51.28 bitrate=N/A speed=1.71x
frame= 3128 fps=101 q=-1.0 size=N/A time=00:00:52.16 bitrate=N/A speed=1.68x
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d4.m3u8.tmp' for writing
[segment @ 0x1e1cfc0] Opening '/var/lib/emby/transcoding-temp/aa2150f3d7e0d2f9786e669ff354c4d417.ts' for writing

 



Searching on this forum I found this:

Which means it is something I can ignore and just wait for the next release, correct?


#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 08:59 PM

Posted Today, 09:00 PM

Are you have a problem or are you just observing the log?

#13 xiltepin ONLINE  

xiltepin

    Newbie

  • Members
  • 7 posts
  • Local time: 10:59 AM

Posted Today, 09:56 PM

When I tested (for about 5 mins) there were no issues. Now the channels won't play. Perhaps because not the list is refreshing? Let me provide an update once the list finished refreshing.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users