Forum

Reverse proxy/CDN for LL-HLS stream

Nikita 2021-04-30 11:19:14 UTC in Nimble Streamer

Hello,

We're using Nimble Streamer for transmuxing of RTMP stream into LL-HLS. And playback of LL-HLS stream works great when we play it directly from Nimble. But now we trying to setup CDN in front of it, and having playback issues when play it through CDN (404 for part files from time to time).

So i setup a simple reverse proxy using nginx in front of Nimble to debug this and noticed few problems. When i preload part files from EXT-X-PRELOAD-HINT tag using proxy i'm getting 404 error and when i do that directly from Nimble it works normally (block request until this part is ready and then send it). And the same happens with CAN-BLOCK-RELOAD feature, when i request playlist with _HLS_msn and _HLS_part queries through the proxy Nimble seems to return just the current version of the playlist and when i do that directly Nimble seems to block request and return playlist only when this part was encoded and added to playlist.

So it feels like Nimble behaves differently depending on some parameters of request. Do you have some specific requirements to apply LL-HLS behaviour? And do you have any proxy/CDN recommendations for LL-HLS streams?

Sergei 2021-05-03 02:05:20 UTC 

Hello, Nikita.
I suggest posting a ticket at wmspanel.com/help with more details so our developers could take a look. (Additionally, we also need details on your proxy configuration and actual stream URLs.)
At the moment we do not have any special recommendations for using LL-HLS with reverse proxy.
Thank you.

Alex Pokotilo 2021-05-03 07:34:59 UTC 

LL-HLS is a new beast and there are no much experience and information about it’s support in proxies. Akamai and Amazon are working on LL-HLS pricing support right now. I’m sure you will not be able to setup regular nginx proxy to deal with LL. Nimble works the same way in both cases. But your CDN/proxy should support LL. It works differently than legacy hls. It’s not Nimble problem. Ask your cdn when they add support for hls ll.

Nikita 2021-05-04 11:17:56 UTC 

I think i found the cause of different behavior for proxies requests and direct requests to Nimble server. Most of the proxies and CDNs (we are testing Fastly and Akamai, both claim to support LL-HLS) send edge to origin requests over HTTP/1.1 and LL-HLS players send it over HTTP/2. And it looks like if Nimble server receives HTTP/1.1 request for new part file from EXT-X-PRELOAD-HINT tag, it just returns 404 error. While if i send the same request over HTTP/2 Nimble would block request until part is ready and then send it. So it looks like Nimble applies LL-HLS features only for HTTP/2 requests. I setup HTTP/2 proxy in front of Nimble and now CDNs seem to work fine, but anyway it would good if Nimble can serve LL-HLS over HTTP/1.1 as well, cause current LL-HLS spec doesn't use any HTTP/2 specific features like PUSH as it was before and LL-HLS can be easily served using HTTP/1.1.

Alex Pokotilo 2021-05-05 04:21:26 UTC 

Hi,
you are right. Nimble doesn't support LL-HLS delivery over HTTP/1.1 since LL-HLS requires Http2 for delivery and initially Apple was very strict and starts playback only if server serves content via http2. Latest IOS versions now support LL-HLS via HTTP/1.1 too. We will combine clients feedback and probably add LL-HLS support into Http/1.1.
For now, If you can ask you CDN to use http2 as CDN->Origin transport this will work as expected.

Nikita 2021-05-05 06:51:22 UTC 

Sounds good, thanks.

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRnimble streamerRTMPhlsSRTABRcacheAPIwmsauthNimbletranscoderrtmpsrtapidvrffmpegVODudpRTSPsldpfailoverDASHstreamingrtspwmspanelSLDPliveyoutubevodUDPmp4paywallabrsubtitlesDispersavideoLarixmulticastandroidaudiolivestreamingWMSAuthMPEG-DASHpay-per-viewgeoMPEG-TSdashstreameredgebandwidthWMSPanelsslthumbnailWindowsencryptionhttpsplaylistwhite labelconfigsmilFFMPEGperformanceCORSchunksraspberry pire-streamingmpeg-dashpublish controlcorsadvertizercloudfrontDRMRepublishingrepublishingvlcS3user agentNDIristrules.confadvertisingipv6MPEGTSFastSpringRAMwms panelRecordingFMLEfileVATcrossdomainSMILmpegtsaespushakamaiPullserverswowzamobilecodecerrorSSLbalanceTranscodem3u8TranscoderchromecastWowzaIDreportingbugconfigurationdownloadsnapshotAndroidnimblestreamerdomainawsLarix BroadcasterraspianloopAWSoriginscte35CDNamazonupdateiproutesVidillionHttpslarix broadcasterplaylist_dvrsecuritychunkmpeg-tsIPUInimble webcam html5Registration Issuedirect link32-bit Windowstwitchcache_controlitworkmecudalive abr support mpeg-dashwmspanelapibeirutreloadWWDCdubaideep statsCentOS v6.4hls to multicast udpnooblogIIS Smooth StreamingcloudmediaAbrHTTPSHot-linking protectionHDSvaddioeventalertsjwplayer websitewhmcsbaselinetimelineVaddioAV BridgeAuthentication in HLSPI3 UbuntuPi4view timepriceresourceNimble Streamer APIlimitOld logsCloud Storagescte-35screencastinterfacesencrytpionloadbalancingmetadatamod_rewriteattaching domainsprofilelarix abrcontainergbpsAxisID3 tags*wmsauthsignsdpshoutcasthighhds streamciscolocalWMSCONFIG_HOMEdatmessagecost.net hotlinkrestreamrtmp abrgentoo install server nimblehls restreamingPublic Iptranscoding using NvidiaPaywall AuthVLCresumeniblerofflinedocumentationNimble streamer upgradeTrancoderconcurrent-connectionsVideo Playertransocding republishingdecoderServer-sideAliaslost trafficstoppedNimble Streamer versionicecast urlhot linkingpay per viewchangedvr_archivesmpeg dashamfLarix Grovenginx rtmp nimblelebanonlocationmanifestTCOobswildcardRaspian BusterMP4 not playedspaceexportopensslonSteam stopped workingseekingHLS vodExpression Encoderanalyticsapplicationpaywallimuxamazon web servicenginxPlayReadydvr stream twicerepublishHLS PlayerAXVVGhot-linkDASH Playerjpegblocknvencdebian7brandingtriallive video on demandbandwithmicrosoft streamMP4screen freezecan't registererrorsserverrocksoftlog traffic statsLarge DVR filesprivate networkTelegramno WMSPanellive videosourcenimblesessionidFFmpegmultiple originsinterleavingSLDP PLayerABR DASHprogressive downloadmac osx installLive Streamingwotermarkheadervimeohelp errorvideo stopstreamslog nimble analysertmp playbackload balancezabbixAdsvideojscache expiryattachmentHEVCcdnvsombitrate#restreamlive streamViewer Statsvod no soundconcurrent connectionadaptiveAV1 codecdvr streamconnectivityUbuntu 20 ARM - AWSunique visitorJWPLAYERNGINX-RTMPDelaympeg2tsServer-Side-Task-Controldisk migrationWidevinedvr on wmspanel4Kcrossdomain more then 1 domainscreen capturestereo to monoFairplaycpuaes encryptionnot foundCPU LoadsubscriptionpullAS3WMSPanel settingslive pull settingsABR HLS BitratesbuttAWS 3rtmp for YouTubeinstall players setup ready to goDVRSettingstwitch larix broadcaster androiddrmAppleDelete recordsControl APInimble streamer web server php script pageautomationLive streamingvideo loopstarttime duration seekpointadd_chunk failedPost processingfake extensionrebootloggingnimble streamer vod hls transmuxinglearnermonitormobile app live streamingCross Domainoutrateudp streaminginsert logoapi accessDeep statsicecastDVRStreamsloadbalancerweb playercontent-dispositionUbuntu artful 17.10Transcoder MPEG DASHinvalidMPEG DASHblock downloadAVCaptureMovieFileOutputdvr streamsNimble ServerlivestreamNimble CapacityABR DVR problemHotlinking ProtectionStreaming routefacebookSecurityRTMP republishLive Switchernot to stealLive Broadcastsecure streamingpaymentstatsadvp9premium featureThumbnailsserver incorrect timecontentRTMP RepublishLiveLIVEdemandIOSHow to do live stream with multiple audio trackssaiDVR Setting limitProgressivenimble aliasesLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignthumbnail dvr-thumbnailrmtpInterlaceno internetreportssoundHLS Meta Tag editing.Video cant be playedS3 AWStranscoder nimbleavoid refreshraspberrySecureJetson NanoPaywalllivestreamintransocdercredentialsautomateuser_agentstorage space availabledisktranscodevbv-maxrateFailoverVR-360publish streamStream Delayhd25trafficAArch64webhookdvr to livelivestream bitratedockerDVRRecordingAuthbuildrist set fecABR bitratesPacketizingdomain lockUsers limitoutputcloudflareVOD HLS streaming on public IPDVR SettingPORTlarixanalisyssctedelaympeg4storagealias route.movInvalid frame headerno soundincoming streamSubtitlesLL-HLS DVRav1 codecNimbleStreamerhttp servera recordwirecastfastspringNimble streamermp2 audioaliasdata slicesplayer sldpbuffering videoSO_RCVBUFdistributionVP9bufferqataritworkscdnvideo.jsQuickTimevideo streaminglatencyno audioCentos 8dissapointmentpay-per-minute3.6.1-1compatibility protocolsmultiplexMax connectionUDP MulticastCSSactionscript 3server ssl errorTeradek Decoderubuntu 18restarthelpFallbackrulesError when installinghow-tomanage_dvraws amazonserver ip21SSL requestMPEG2 Videologo in streamincomingmulti-viewersha265RIST Bondingplayoutmultiple audio udphotlink protectionRaspberryPi4ultra low latencyvideo audioSRT protocolanalyseStreamIDprogressivebroadcast videofallbackRaspberrytasks-control4GNimble_CrushwebrtcRTMP to SRTrtsp push androidartifactstuningWowza AgentRemote StorageSSAIprerollstreamrtmp sldp nimblenimble on cloudLinuxgpu{stream}OBSBroadcastvideo and audio not matchLarix broadcasterGoogle DriveHLS StreamingPIDurlSnapshotsspeedup my videoiOSMPEG-DashsubfolderTLSV 1.2 Certificatedynamic linksAmazonTVfirenimble.confrtmp republishing transcodeIIS Media ServicstrackfairplayNginxbroadcasterOSXmd5Nimble connectionsabr fallbackletsencryptmultipointrulethumbnailsEncoderdvbNetworkRAM Loadstatus:errortranscodingdownTonyFFMPEG;RTMP;I/O errorissuepricinggoogle cloud storageLL-HLSGopHTML5 playerAddendartpnimble dvrBandwidthdurationYadifportsRokumultiplemainmultistreamingRistmultiple audioadjustsoftware versionre-publishingSRT RTMP

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.