Forum

Merge two rtmp live streams into one rtmp live stream with ffmpeg and Nimble

Joël 2015-08-04 21:37:50 UTC in Nimble Streamer

I try to merge one rtmp video live stream with a second audio rtmp live stream. To get translation on a existing live stream

But I get 2 errors:
rtmp server sent error
RTMP_ReadPacket, failed to read RTMP packet header.

I already added the rtmp enable flag to the nimble config file.

My code is:
ffmpeg -loglevel verbose -i rtmp://ip-nimble/rtmp/mainvideo -i rtmp://ip-nimble/rtmp/translation –acodec copy –vcodec copy -f flv -map 0:0 –map 0:1 –map 1:0 "rtmp://ip-nimble/live?rtmpauth=user:password/videowithtranslation“

My final purpose is to have one video live stream with 3 or more extra audio translations.

but first I try to merge for each translation two live streams into one stream.

have you any idea why I get a rtmp sent error?
Most of the people say, it is an autentication problem with the rtmp server.

Andrey Goncharov 2015-08-05 00:49:38 UTC 

Hello Joël,

Nimble Streamer supports the in-URL authentication you use, so authentication is not the reason.

I don't understand, how does you FFMPEG command work, because FLV container does not allow multiple audio tracks.

Your task is usually solved by generating different stream for each translation. Just remove "-map 0:1" from your FFMPEG command and it should work.

Please, start new support thread by sending email to help@wmspanel.com so we could deal with specific streams, if you need more info on that.

Joël 2015-08-05 06:49:01 UTC 

Hello Andrey
I thought -map 0:0 is video of stream one, and -map 0:1 audio of stream one. and -map 1:0 audio of stream two.

I will setup two live streams for testing.
and send you the specific info by email

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPhlsnimble streamerABRcachewmsauthNimbleAPIdvrapiSRTtranscoderffmpegrtmpVODfailoversrtsldpstreamingDASHwmspanelvodrtspudppaywallsubtitlesDispersaRTSPSLDPvideoyoutubeabrlivelivestreamingmp4WMSAuthMPEG-DASHpay-per-viewgeobandwidthdashstreameredgeWMSPanelWindowsencryptionUDPhttpswhite labelconfigsmilmulticastsslFFMPEGMPEG-TSaudioCORSchunksraspberry pire-streamingmpeg-dashandroidperformanceadvertizercorsvlccloudfrontDRMS3user agentrules.confplaylistadvertisingipv6MPEGTSFastSpringRAMthumbnailFMLEVATcrossdomainipupdatempegtsSMILRecordingaespushakamaiwowzaserversPullmobilecodecerrorSSLbalanceTranscodem3u8chromecastplaylist_dvrWowzaIDreportingconfigurationbugdownloadnimblestreamerdomainLarixrepublishingLarix BroadcasterRepublishingmpeg-tsraspianVidillionHttpsloopchunkawsAWSNDIoriginCDNrouteswms panelpublish controlamazonIPnimble webcam html5UIbitrateRegistration Issuedirect link32-bit Windowstwitchcache_controlitworkmelive abr support mpeg-dashwmspanelapiresumertmp abrbeirutWWDCdubaideep statsCentOS v6.4hls to multicast udpnooblogWowza AgentRemote StorageIIS Smooth StreamingcloudmediaAbrHTTPSHot-linking protectionHDSvaddioalertsjwplayer websitebaselinewhmcsAuthentication in HLSnginx rtmp nimblePi4AV BridgepriceVaddiolimitOld logsPI3 Ubuntuscte-35screencastview timeattaching domainsinterfacescontainerDVRRecordingloadbalancingmod_rewritemetadataprofileID3 tagsgbpsAxisdatmessageWMSCONFIG_HOMErestreamcostwmsauthsignhighhds streamlocalcisco.net hotlinkhls restreamingVLCgentoo install server nimbleniblerPublic Iptranscoding using NvidiaPaywall AuthofflinedocumentationNimble streamer upgradedecodertransocding republishingVideo PlayerTrancoderconcurrent-connectionsfileAliaslost trafficServer-sidestoppedNimble Streamer versionmainicecast urlrulehot linkinglebanonlocationmanifestchangeMP4 not playedspacepay per viewLarix Groveamfseekingdvr_archivesmpeg dashobsTCORaspian BusteropensslonSteam stopped workingnginxPlayReadyamazon web servicelimuxdvr stream twiceHLS vodsdphot-linkAXVVGanalyticspaywalapplicationExpression Encoderblocknvenc7brandingHLS PlayertrialDASH PlayerMP4microsoft streamdebianerrorsrocksoftlog traffic statslive video on demandbandwithserverscreen freezecan't registerprogressive downloadABR DASHFFmpegmultiple originsnimblesessionidprivate networkLarge DVR filesheaderno WMSPanelsourcelive videointerleavingSnapshotslog nimble analysertmp playbackmac osx installvideojswotermarkvideo stopvimeohelp erroradaptiveAV1 codecNGINX-RTMPJWPLAYERload balancestreamscache expiryattachmentcdnvsomlive streamvod no soundconcurrent connection4Kcrossdomain more then 1 domainViewer Statsdvr streamconnectivityUbuntu 20 ARM - AWSunique visitorcpumpeg2tsDelayServer-Side-Task-ControlWidevinedisk migrationAWS 3buttscreen capturestereo to mononot foundCPU Loaddrmpullresourceaes encryptionAS3subscriptionTranscoderLive streamingsecurityABR HLS Bitrateslive pull settingsWMSPanel settingstwitch larix broadcaster androidDVRSettingsinstall players setup ready to goDelete recordsApplertmp for YouTubeudp streamingoutratevideo loopicecaststarttime duration seekpointrebootnimble streamer vod hls transmuxingloggingmonitorlearnernimble.confrtmp republishing transcodeIIS Media Servicsinsert logoapi accessDeep statsloadbalancerweb playerdvr streamsautomationnimble streamer web server php script pageNimble Streamer APIlivestreamAVCaptureMovieFileOutputblock downloadcontent-dispositionNimble CapacityABR DVR problemPost processingadd_chunk failedfake extensionMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHLive SwitcherNimble Servernot to stealLive Broadcaststatus:errorFFMPEG;RTMP;I/O errortranscodingHotlinking ProtectionStreaming routeRTMP republishPIDMPEG-Dashlarix broadcasterbroadcasterOSXpaymentstatsreloadpremium featureserver incorrect timeThumbnailsLiveLIVEadvp9contentRTMP RepublishdemandHow to do live stream with multiple audio trackProgressivenimble aliasesHLS Streamingthumbnail dvr-thumbnailLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignsoundHLS Meta Tag editing.rmtpno internetdelaympeg4transcoder nimbleSecureJetson Nanodvr on wmspanelVideo cant be playedS3 AWSuser_agentautomateAndroidreportsavoid refreshraspberryBroadcastdockerlivestream bitratepublish streamStream Delaytraffichd25AArch64transcodevbv-maxrateVR-360Failoverdomain lockVOD HLS streaming on public IPoutputUsers limitcloudflareanalisysscteABR bitratesPacketizingbuildincoming streamno soundInvalid frame headerHTML5 playerGopwirecasta recordhttp server.movalias routestorageNimbleStreamerav1 codecspeedup my videoiOSfastspringmp2 audioNimble streamerdata slicesaliasplayer sldpdistributionlatencyqataritworkscdnvideo.jssoftware versionadjustPaywallvideo and audio not matchissuepricinggoogle cloud storagediskstorage space available3.6.1-1dissapointmentpay-per-minutecompatibility protocolsRAM Loadtransocderlivestreaminhow-tomanage_dvrError when installingrulesDVRStreamsaws amazonSO_RCVBUFbuffering videoUDP MulticastMax connectionMPEG2 Videologo in streamnimble on cloudprerollIOSrestarthelpFallbackdynamic linksTLSV 1.2 CertificateSSL requestserver ip21credentialsFairplayincomingmulti-viewerVP9sha265durationBandwidthnimble dvrrtpscte35ubuntu 18Teradek Decodervideo audioCross DomainSRT protocolabr fallbackNimble connectionsmd5DVR Setting limitssaibufferRIST BondingplayoutControl APIfallbackPORTDVR SettinganalyseStreamIDhotlink protectionultra low latencyRaspberryPi4gpuRaspberrytasks-controlbroadcast videoprogressivewebhookdvr to liveRTMP to SRTvideo streamingQuickTimeartifactsrtsp push androidtuningactionscript 3server ssl errorCSSRist

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.