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 StreamerFAQHLSnimble streamerDVRRTMPhlsABRcacheNimbleSRTrtmpsrtwmsauthdvrAPIapitranscoderffmpegudpVODfailoverDASHRTSPsldpstreamingrtspwmspanellivevodUDPyoutubemp4paywallabrsubtitlesDispersaSLDPmulticastvideolivestreamingWMSAuthMPEG-DASHgeopay-per-viewaudiodashstreameredgeWMSPanelbandwidththumbnailWindowsencryptionhttpswhite labelconfigplaylistsmilsslFFMPEGperformanceMPEG-TSCORSre-streamingmpeg-dashchunksraspberry pipublish controlcorscloudfrontDRMRepublishingrepublishingvlcS3Larixuser agentandroidNDIadvertizerristrules.confadvertisingipv6MPEGTSFastSpringRAMfileFMLEVATcrossdomainSMILRecordingmpegtsaespushakamaiwowzamobileserversPullcodecbalanceTranscodem3u8errorSSLchromecastWowzaplaylist_dvrconfigurationbugIDreportingdownloadsnapshotmpeg-tsawsLarix BroadcasterAndroidnimblestreamerdomainloopchunkwms panelraspianAWSoriginVidillionHttpsipupdateCDNroutesscte35IPamazonsecurityUInimble webcam html5Registration Issuedirect link32-bit Windowstwitchcache_controlitworkmelive abr support mpeg-dashwmspanelapiresumertmp abrbeirutWWDCdubaideep statsCentOS v6.4hls to multicast udpnooblogRemote StorageWowza AgentIIS Smooth StreamingcloudmediaAbrHTTPSHot-linking protectionHDSvaddioalertsjwplayer websitewhmcsbaselinetimelinenginx rtmp nimbledurationAV BridgeVaddioPI3 UbuntuAuthentication in HLSview timePi4Nimble Streamer APIpriceresourcelimitOld logsinterfacesscte-35screencastencrytpionDVRRecordingloadbalancingmetadatamod_rewriteprofilelarix abrattaching domainsAxisgbpsID3 tagscontainerwmsauthsignhighhds streamlocalcisco.net hotlinkdatmessageWMSCONFIG_HOMErestreamcostgentoo install server nimblePublic Iptranscoding using NvidiaPaywall AuthofflinedocumentationNimble streamer upgradehls restreamingTrancoderconcurrent-connectionsVLCniblerServer-sideVideo Playertransocding republishingdecoderstoppedNimble Streamer versionmainAliaslost trafficlebanonlocationmanifestMP4 not playedspacepay per viewicecast urldvr_archivesmpeg dashrulewildcardobsTCORaspian Busterseekinghot linkingexportopensslchangeamfLarix Grovelimuxamazon web servicePlayReadynginxdvr stream twicesdpshoutcastrepublishExpression Encoderhot-linkAXVVGonSteam stopped workingblocknvencHLS vodHLS PlayerDASH Player7brandinganalyticspaywalapplicationtrialmicrosoft streamMP4errorsrocksoftlog traffic statsjpegscreen freezecan't registerdebianprivate networkLarge DVR filesnimblesessionidFFmpegmultiple originsABR DASHprogressive downloadno WMSPanellive video on demandlive videobandwithheaderinterleavingSLDP PLayerservermac osx installlog nimble analysertmp playbackwotermarkvideojsvimeohelp errorbitrate#restreamload balancesourceadaptiveAV1 codeccache expiryJWPLAYERNGINX-RTMPcdnvsomlive streamViewer Statsvideo stop4Kcrossdomain more then 1 domainstreamsDelaympeg2tsServer-Side-Task-Controlcpudisk migrationHEVCattachmentdvr on wmspanelscreen capturestereo to monovod no soundconcurrent connectiondvr streamconnectivityUbuntu 20 ARM - AWSunique visitorbuttAWS 3aes encryptiondrmsubscriptionControl APIWMSPanel settingslive pull settingsABR HLS BitratesWidevineTranscoderLive streamingrtmp for YouTubeFairplayadd_chunk failedPost processingfake extensionnot foundCPU LoadpullAS3udp streamingoutrateicecastnimble streamer vod hls transmuxinglogginglearnerinstall players setup ready to goDVRSettingstwitch larix broadcaster androidAppleDelete recordsinsert logoblock downloadAVCaptureMovieFileOutputvideo loopdvr streamsnimble streamer web server php script pageautomationlivestreamstarttime duration seekpointrebootinvalidMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHmonitorNimble CapacityABR DVR problemnimble.confrtmp republishing transcodeIIS Media ServicstrackLive Switcherapi accessDeep statsloadbalancerweb playernot to stealLive Broadcastcontent-dispositionpaymentNimble ServerstatsfacebookStreaming routeHotlinking ProtectionRTMP republishreloadadvp9ssaiDVR Setting limitcontentRTMP Republishdemandrmtpno internetIOSHLS StreamingLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignpremium featureserver incorrect timeThumbnailsavoid refreshraspberryLiveLIVEPaywallsoundHLS Meta Tag editing.credentialstranscoder nimbleHow to do live stream with multiple audio tracktranscodevbv-maxrateProgressivenimble aliasesHTML5 playerthumbnail dvr-thumbnailFailoverVR-360reportsstorage space availablediskS3 AWSVideo cant be playedbuildrist set fecABR bitratesPacketizingdelaympeg4publish streamStream Delaytraffichd25AArch64alias route.movstoragedomain lockVOD HLS streaming on public IPoutputUsers limitcloudflareautomateuser_agentlarixanalisysscteInvalid frame headerno soundincoming streamGoplivestream bitratedockerLL-HLS DVRav1 codecNimbleStreamerdistributionqataritworkscdnvideo.jsfastspringNimble streamermp2 audiodata slicesaliasplayer sldpissuepricinggoogle cloud storage*VP9wirecasta recordhttp serverCentos 8dissapointmentpay-per-minutelatencylivestreamintransocderabr fallbackNimble connectionswebhookdvr to livebuffering videoSO_RCVBUFcompatibility protocolsmultiplexbufferrestarthelpFallbackQuickTimevideo streamingserver ip21SSL requestspeedup my videoiOSsha265md5OSXbroadcastermulti-viewerincoming3.6.1-1DVR SettingPORTanalyseStreamIDMax connectionUDP MulticastRIST Bondingplayoutmultiple audio udphotlink protectionRaspberryPi4ultra low latencyBandwidthportsnimble dvrrtpprogressivebroadcast videorulesError when installinghow-tomanage_dvrDVRStreamsaws amazonartifactsrtsp push androidtuning4GwebrtcNimble_CrushMPEG2 Videologo in streamCross DomainSRT protocolvideo audioprerollnimble on cloudrtmp sldp nimbleTeradek Decoderubuntu 18BroadcastPIDurlSnapshotsLinuxdvbRTMP to SRTCSSactionscript 3server ssl errorRistmultipleTLSV 1.2 Certificatedynamic linksfallbackthumbnailsLarix broadcastervideo and audio not matchadjustsoftware versionre-publishingSRT RTMPmultiple audioMPEG-Dashlarix broadcasterRaspberrytasks-controlgpu{stream}LL-HLSOBSRAM Loadstatus:errortranscodingdownTonyFFMPEG;RTMP;I/O errorNetworkfairplayNginxSecureJetson Nano

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.