Forum

Save multiple rtmp live streams to mp4 with ffmpeg with task control

Joël 2015-04-21 12:29:39 UTC in Nimble Streamer

A very nice option is to save a live stream with ffmpeg in "server side task control". The main purpose of direct recording on the origin Nimble-server is: Remux and Uploading of the video files are not needed anymore. second: when you have a live event, you have a local copy of your live event and a second on the server.
What I discover by recording a livestream with multible bitrate streams by starting 3 seperate ffmpeg task in the Wmspanel, it takes about 10sec before the "playback" will start in the webplayer(jwplayer). playing the files on a ipad
providing a smil playlist by nimble.
Can you give me a direction of what is the best way the record a stream with ffmpeg, without remuxing the files again.

current tasks in the wmspanel
ffmpeg -re -i rtmp://localhost/rtmp/video_1 -c copy "/mnt/archive/vod/video_360p-1.mp4"

ffmpeg -re -i rtmp://localhost/rtmp/video_2 -c copy "/mnt/archive/vod/video_480p-2.mp4"

ffmpeg -re -i rtmp://localhost/rtmp/video_3 -c copy "/mnt/archive/vod/video_1080p-3.mp4"

Alex Pokotilo 2015-04-21 14:16:32 UTC 

I cannot get what you see in ipad comparing to web players

Joël 2015-04-21 17:51:15 UTC 

Hi
I use the same jwplayer for both, desktop and mobile devices as webplayer.
But i think maybe its the timestamps or the duration time that is not the same of each mp4 file, because of the seperate ffmpeg tasks. Maybe option -copyts will copy the original timestamps of the live encoder (fmle).
Or can I record the 3 streams in one task?

Alex Pokotilo 2015-04-21 22:06:18 UTC 

save only one bitrate and call transcoding after event. you can create script that call several ffmpeg commands. One to save original mp4 file and the rest for transcoding. I think calling several commands to transcode on the fly bad idea.

Joël 2015-04-22 07:14:17 UTC 

Yes, Transcoding several resolutions on the fly, is a bad idea. Too CPU intensive. Transcode one by one after event is beter. But actually, you don't want to transcode at all, because its already done. yes we can make script who can call more than one ffmpeg command. So the frames will start almost on the same time.
Again, I will do some several tests with copy the original timestamps during recording of the livestreams, or cutting the beginning and the end of the files afterwards, so the start and duration wil be the same.

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPhlsnimble streamerABRcachewmsauthNimbledvrAPISRTtranscoderffmpegapiVODfailoverrtmpstreamingDASHwmspanelvodudprtsppaywallsubtitlessrtsldpDispersaRTSPyoutubeabrlivelivestreamingmp4WMSAuthMPEG-DASHpay-per-viewgeodashWMSPaneledgevideostreamerWindowsencryptionhttpsUDPuser agentwhite labelconfigsmilFFMPEGsslmulticastMPEG-TSaudioCORSre-streamingmpeg-dashchunksraspberry piandroidbandwidthadvertizercorsvlcS3DRMrules.confplaylistadvertisingipv6MPEGTSFastSpringRAMthumbnailFMLEVATcrossdomainupdateRecordingSMILmpegtsaespushakamaiwowzaserverserrorm3u8TranscodebalanceSSLchromecastplaylist_dvrWowzaconfigurationIDreportingbugperformancedomainnimblestreamerLarixIPrepublishingmpeg-tspublish controlcodecmobileloopHttpsVidillionawsAWSdownloadorigincloudfrontCDNraspianwms panelroutesSLDPchunknimble webcam html5UIbitrateRegistration Issuedirect link32-bit Windowstwitchcache_controlitworkmelive abr support mpeg-dashwmspanelapiresumertmp abrbeirutWWDCdubaideep statsCentOS v6.4hls to multicast udplogcloudIIS Smooth StreamingmediaHot-linking protectionHTTPSAbrHDSvaddioalertsjwplayer websitebaselinewhmcsnginx rtmp nimbleAV BridgeAuthentication in HLSVaddioPI3 Ubuntupriceview timelimitOld logsscte-35screencastinterfacesattaching domainsDVRRecordingloadbalancingmod_rewritemetadataprofileID3 tagsgbpsAxiswmsauthsignhighmessageWMSCONFIG_HOMEhds streamrestreamcostlocalcisco.net hotlinkhls restreaminggentoo install server nimbleVLCPublic Iptranscoding using NvidiaPaywall AuthniblerofflinedocumentationNimble streamer upgradeTrancoderconcurrent-connectionsdecodertransocding republishingVideo PlayerfileAliaslost trafficServer-sidetasks-controllebanonlocationmanifeststoppedNimble Streamer versionmainipMP4 not playedspaceicecast urlruledvr streamconnectivityunique visitorseekinghot linkingchangepay per viewamfplayoutPlayReadyamazon web servicelimuxdvr stream twicedvr_archivesmpeg dashobsTCOhot-linkAXVVGopensslSteam stopped workingonblocknvencHLS vodExpression Encoder7analyticspaywalapplicationbrandingtrialMP4microsoft streamerrorsHLS Playerrocksoftlog traffic statsDASH Playerdebianprogressive downloadABR DASHFFmpegmultiple originsnimblesessionidlive video on demandbandwithscreen freezecan't registerserverheaderprivate networkLarge DVR fileslog nimble analysertmp playbackvideojsno WMSPanellive videointerleavingsourcemac osx installadaptiveAV1 codecSnapshotsNGINX-RTMPJWPLAYERwotermarkvimeohelp errorPullvideo stopload balance4Kcrossdomain more then 1 domainvsomcdnattachmentlive streamvod no soundconcurrent connectionAWS 3buttmpeg2tsDelayServer-Side-Task-Controldisk migrationWidevineFairplayfallbackamazonControl APIscreen capturestereo to monoLive streamingTranscoderRemote StorageWowza Agentsecuritydrmnot foundCPU Loadresourceaes encryptionpullsubscriptionAS3ABR HLS Bitrateslive pull settingsWMSPanel settingsrtmp for YouTubetwitch larix broadcaster androidDVRSettingsinstall players setup ready to goDelete recordsAppleicecastudp streamingoutratevideo loopnimble streamer vod hls transmuxingloggingstarttime duration seekpointrebootdvr streamslearnermonitorautomationnimble streamer web server php script pageNimble Streamer APIlivestreamnimble.confrtmp republishing transcodeIIS Media Servicsinsert logoapi accessDeep statsNimble CapacityABR DVR problemweb playerLive SwitcherAVCaptureMovieFileOutputblock downloadcontent-dispositionnot to stealLive BroadcastPost processingadd_chunk failedfake extensionMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHNimble Serverstatus:errorFFMPEG;RTMP;I/O errortranscodingHotlinking ProtectionStreaming routeRTMP republishlarix broadcasterMPEG-DashPIDbroadcasterOSXpaymentstatsreloadpremium featureThumbnailsserver incorrect timeLiveLIVEdemandHow to do live stream with multiple audio trackProgressivenimble aliasesprogressivermtpno internetHLS Streamingthumbnail dvr-thumbnailLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignsoundHLS Meta Tag editing.streamsdelaympeg4Secureraspberryavoid refreshreportstranscoder nimbleAndroiduser_agentdvr on wmspanelVideo cant be playedS3 AWSBroadcastcredentialslivestream bitratevbv-maxratetranscodeRepublishingVR-360Failoverpublish streamStream Delaytraffichd25Larix BroadcasterAArch64PacketizingABR bitratesbuildcontentRTMP Republishdomain lockoutputUsers limitcloudflareVOD HLS streaming on public IPincoming streamno soundInvalid frame headerHTML5 playerGopNimbleStreamerav1 codecDVR Setting limitssaibufferrtsp push androidartifactscache expiryvideo streamingQuickTime.movalias routestoragedistributionfastspringmp2 audiodata slicesaliasplayer sldpspeedup my videoiOSqataritworkscdnvideo.jstransocderlivestreaminRAM Loaddiskstorage space available3.6.1-1webhookdvr to livedissapointmentpay-per-minuteSO_RCVBUFbuffering videoadvp9adjustsoftware versionnimble dvrdurationBandwidthgpuPaywallvideo and audio not matchmanage_dvrhow-toError when installingrulesDVRStreamsaws amazonIOSrestartFallbackhelpUDP MulticastMax connectionMPEG2 Videologo in streama recordwirecasthttp serverSSL requestserver ip21compatibility protocolssha265VP9CSSactionscript 3server ssl errordynamic linksTLSV 1.2 Certificateanalisyssctenimble on cloudprerolllatencyscte35ubuntu 18Teradek DecoderViewer StatsNDICross DomainSRT protocolabr fallbackNimble connectionsmd5pricingissuecpugoogle cloud storagePORTDVR SettinganalyseStreamID

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.