Forum

Play VOD file if RTMP not live

Shane 2019-10-26 22:05:12 UTC in Nimble Streamer

Is it possible to somehow have FFMPEG play a static MP4 file (looped) for a stream if that stream is not live?

For instance, I'd like a stream to play a looped file. However, if we start publishing via RTMP the stream will be live from that. Once there is no live RTMP, would go back to playing the file looped from ffmpeg.

Possible?

Shane 2019-10-26 22:28:07 UTC 

Forgot to add stream shouldn't be interrupted across live/playback events.

Essentially, trying to do this (Wowza example): [url]https//www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive[/url]

Thanks!

Shane 2019-10-27 02:35:45 UTC 

To follow up, I learned about hot swapping source streams. I think I can do it with that.

I've been experimenting, and have a couple of questions about that:

1) I attempted to use Transcoder to make a new version of the incoming source stream, so that I could make sure the resolution and audio sample rate remain constant (in case something on the source encoder is changed). For instance, i transcoded "live" to "live1". Then I attempted to use "live1" as the source for another transcoding scenario that creates ABR versions for my final output. However, it seems that doesn't work. I can view live1 just fine, but transcoder doesn't seem to like to use it as a source for the ABR. In theory this should work, right?

2) I'm using an MP4 video for the source of the Fallback stream. It works fine...BUT, when it gets to the end of the video, it interrupts the stream on end players. If I reload the player, it starts playing fine. So something about when it gets to the end of the video causes an issue. I have tried putting a PNG overlay on to sort of "stabilize" it, but that didn't work. Any other way to get this to loop seamlessly?

3) Would there be any way to swap out that mp4 file (overwrite or something) to make the Fallback encoder start playing a new MP4 instead? Without interrupting end user stream player of course.

Thanks!

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPhlsnimble streamerABRwmsauthcacheNimbleffmpegdvrAPIapitranscoderVODstreamingfailoverDASHwmspanelrtmpvodudprtsppaywallsubtitlesRTSPDispersayoutubelivelivestreamingmp4MPEG-DASHWMSAuthpay-per-viewgeodashstreamervideoabrWindowsencryptionUDPhttpswhite labeluser agentconfigsmilFFMPEGmulticastsslaudioMPEG-TSedgeCORSchunksraspberry pire-streamingandroidsldpbandwidthmpeg-dashadvertizervlcDRMrules.confadvertisingipv6FastSpringRAMwms panelthumbnailFMLEVATcrossdomainupdatempegtsRecordingplaylistSMILakamaipushaesserversSRTwowzaSSLerrorm3u8Transcodebalanceplaylist_dvrWowzachromecastreportingconfigurationsrtbugdownloadIDS3nimblestreamerdomaincorsperformancechunkmpeg-tsraspianpublish controlcodecVidillionHttpsWMSPanelmobilerepublishingIPloopawsnimble webcam html5UIRegistration Issuedirect link32-bit Windowstwitchanalysecache_controlitworkmelive abr support mpeg-dashrtmp abrbeirutWWDCdubaideep statshls to multicast udplogIIS Smooth StreamingcloudmediaCDNHTTPSAbrHot-linking protectionHDSvaddioMPEGTSalertsNDIViewer Statsjwplayer websitewhmcsbaselineAuthentication in HLSCentOS v6.4pricenginx rtmp nimbledurationlimitAV BridgeOld logsscreencastVaddioPI3 Ubuntuview timeattaching domainswmspanelapiinterfacesWMSCONFIG_HOMEmessagerestreamcostDVRRecordingoriginloadbalancingmetadatamod_rewriteprofileanalisysAxisgbpsID3 tagshls restreamingwmsauthsignhighhds streamVLCciscolocalresumeniblerVideo Playertransocding republishingdecoder.net hotlinkAliasgentoo install server nimblelost traffictranscoding using NvidiaPublic IpPaywall Authdocumentationofflineconcurrent-connectionsTrancoderipfileicecast urlrulelebanonlocationmanifesthot linkingMP4 not playedspacechangeServer-sideamftasks-controlplayoutseekingstoppedmainonPlayReadylimuxamazon web servicedvr streamconnectivityunique visitoraliasdata slicesdvr stream twiceHLS vodpay per viewAXVVGhot-linkanalyticsapplicationpaywalblockmpeg dashTCO7opensslbrandingtrialMP4microsoft streamerrorsrocksoftlog traffic statsExpression Encoderdebianlive video on demandHLS PlayerbandwithABR DASHprogressive downloadDASH Playermultiple originsFFmpegnimblesessionidserverlog nimble analysertmp playbackvideojsSnapshotsbitrateprivate networkadaptiveAV1 codecPullJWPLAYERNGINX-RTMPno WMSPanellive videosoundHLS Meta Tag editing.streamsmac osx installattachmentsourcecrossdomain more then 1 domain4Kwotermarkconcurrent connectionvod no soundhelp errorvimeoload balanceFairplaybuttRemote StorageWowza Agentcdnvsomnot foundlive streampullfallbackamazonControl APIWidevineAS3TranscoderLive streamingsecuritympeg2tsServer-Side-Task-Controldisk migrationinstall players setup ready to goDVRSettingstwitch larix broadcaster androidAppleDelete recordsstereo to monoscreen capturedrmicecastresourceaes encryptionvideo loopsubscriptionstarttime duration seekpointrebootlive pull settingsABR HLS Bitratesmonitorrtmp for YouTubeIIS Media Servicsrtmp republishing transcodenimble.confDeep statsapi accessinterleavingweb playerdvr streamsoutratenimble streamer web server php script pageautomationNimble Streamer APIlivestreamscreen freezecan't registercontent-dispositionABR DVR problemNimble Capacitynimble streamer vod hls transmuxingloggingheaderactionscript 3learnerLive SwitcherCross Domaininsert logoNimble Servernot to stealLive Broadcastblock downloadAVCaptureMovieFileOutputUbuntu artful 17.10Transcoder MPEG DASHMPEG DASHadd_chunk failedPost processingfake extensionbroadcastertranscodingFFMPEG;RTMP;I/O errorstatus:errorHotlinking ProtectionStreaming routeThumbnailsserver incorrect timepremium featureMPEG-Dashlarix broadcasterLIVELivenimble on cloudroutesprerollHow to do live stream with multiple audio trackpaymentnimble aliasesProgressiveincoming streamno soundstatsreloadvp9adSecureRTMP republishrmtpno internetlivestreamintransocderdemandAndroiduser_agentdvr on wmspanelS3 AWSreportsraspberryavoid refreshIOSrestartPIDHLS StreamingDVR SettingPORTthumbnail dvr-thumbnailwmsAuthSignnimble streamer mpeg-ts multiple inputsLoad-BalancinglatencyissuepricingcredentialsadjusttranscodeRepublishingHTML5 playerdelaympeg4transcoder nimblehttp servera record21server ipNimble connectionsabr fallbackBroadcastLarixABR bitratesPacketizingbuildav1 codecTeradek Decoderubuntu 18SLDPssaiDVR Setting limitbufferspeedup my videoiOSbuffering videoSO_RCVBUFdissapointmentpay-per-minuteAWSnimble dvrlivestream bitrateUDP Multicastlogo in streamMPEG2 Videoartifactsrtsp push androidcache expiryQuickTimevideo streamingtraffichd25publish streamAArch64CSSfastspringmp2 audioprogressivewebhookdvr to livevideo and audio not matchcloudfrontDVRStreamsrulesError when installingdistributionstoragealias route.movoutputcloudflareVOD HLS streaming on public IPdomain lockRTMP RepublishcontentVR-360Failoverstorage space availabledisk3.6.1-1qataritworkscdnvideo.js

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.