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 StreamerFAQHLSDVRRTMPnimble streamerhlsABRcachewmsauthNimbleAPItranscoderffmpegdvrapiVODfailoverrtmpstreamingDASHwmspanelvodudprtsppaywallsubtitlesDispersaRTSPyoutubelivelivestreamingmp4MPEG-DASHWMSAuthpay-per-viewgeosldpdashstreamervideoedgeSRTabrWindowsencryptionhttpsUDPwhite labelconfiguser agentsmilFFMPEGmulticastsslaudioMPEG-TSre-streamingmpeg-dashCORSchunksraspberry piandroidsrtbandwidthadvertizercorsvlcWMSPanelS3DRMrules.confadvertisingipv6MPEGTSFastSpringRAMwms panelthumbnailFMLEVATcrossdomainupdateRecordingmpegtsplaylistSMILakamaiwowzaaespushserversm3u8TranscodeSSLerrorbalanceplaylist_dvrWowzachromecastconfigurationIDreportingbugdomainnimblestreamerperformanceIPloopHttpsVidillionchunkmobilerepublishingawsAWSdownloadorigincloudfrontpublish controlcodecmpeg-tsCDNraspiannimble webcam html5UIroutesbitrateRegistration Issuedirect link32-bit Windowstwitchanalysecache_controlitworkmelive abr support mpeg-dashwmspanelapirtmp abrbeirutWWDCdubaideep statshls to multicast udplogcloudIIS Smooth StreamingmediaHot-linking protectionHTTPSAbrHDSvaddioalertsAuthentication in HLSjwplayer websiteCentOS v6.4baselinewhmcspricelimitOld logsnginx rtmp nimblescreencastAV BridgeVaddioPI3 Ubuntuattaching domainsview timeWMSCONFIG_HOMEmessageinterfacesrestreamcostDVRRecordingloadbalancingmod_rewritemetadataprofileID3 tagsgbpsAxishls restreamingwmsauthsignhighVLChds streamresumeniblerlocalciscodecodertransocding republishingVideo Player.net hotlinkAliaslost trafficgentoo install server nimblePublic Iptranscoding using NvidiaPaywall AuthlocationlebanonmanifestofflinedocumentationipMP4 not playedspaceTrancoderconcurrent-connectionsfileicecast urlruleseekinghot linkingchangeamfServer-sidetasks-controlplayoutPlayReadyamazon web servicelimuxstoppeddvr stream twicemainhot-linkAXVVGonconnectivitydvr streamunique visitordata slicesaliasblocknvencHLS vodpay per viewpaywalapplicationanalytics7brandingtrialdvr_archivesmpeg dashMP4microsoft streamobsTCOerrorsopenssllog traffic statsrocksoftdebianExpression Encoderprogressive downloadABR DASHlive video on demandFFmpegmultiple originsnimblesessionidbandwithHLS PlayerDASH Playerheaderserverlog nimble analysertmp playbackvideojssourceSnapshotsadaptiveAV1 codecscreen freezecan't registerNGINX-RTMPJWPLAYERprivate networkLarge DVR filesPullvideo stopno WMSPanelcrossdomain more then 1 domain4Klive videoattachmentmac osx installwotermarkvod no soundconcurrent connectionhelp errorvimeoAWS 3buttload balanceFairplayfallbackamazonControl APIvsomcdnRemote StorageWowza AgentLive streamingTranscoderlive streamnot foundsecuritypullWidevineAS3mpeg2tsServer-Side-Task-Controldisk migrationtwitch larix broadcaster androidDVRSettingsinstall players setup ready to goDelete recordsAppleicecastscreen capturestereo to monodrmresourceaes encryptionvideo loopsubscriptionstarttime duration seekpointrebootABR HLS Bitrateslive pull settingsmonitordvr streamsrtmp for YouTubenimble.confrtmp republishing transcodeIIS Media Servicsautomationnimble streamer web server php script pageNimble Streamer APIlivestreamapi accessDeep statsinterleavingweb playerABR DVR problemNimble CapacityoutrateLive Switchercontent-dispositionnimble streamer vod hls transmuxingloggingactionscript 3Live Broadcastnot to steallearnerCross Domaininsert logoNimble ServerRTMP republishAVCaptureMovieFileOutputblock downloadPIDbroadcasterOSXPost processingadd_chunk failedfake extensionMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHstatus:errortranscodingFFMPEG;RTMP;I/O errorHotlinking ProtectionStreaming routenimble on cloudprerolllarix broadcasterMPEG-Dashpremium featureThumbnailsserver incorrect timeLiveLIVEpaymentHow to do live stream with multiple audio trackProgressivenimble aliasesstatsreloadrmtpno internetdemandSecurereportsraspberryavoid refreshAndroiduser_agentdvr on wmspanelVideo cant be playedS3 AWSprogressiveBroadcastLarixHLS Streaminglivestream bitratecredentialsthumbnail dvr-thumbnailLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignlatencyPORTDVR Settingvbv-maxratetranscodeRepublishingadjustdelaympeg4transcoder nimblebuildPacketizingABR bitratesVR-360Failoverubuntu 18Teradek DecoderSLDPabr fallbackNimble connections.movalias routestoragedistributionspeedup my videoiOScloudflareUsers limitoutputVOD HLS streaming on public IPdomain lockcontentRTMP Republishgoogle cloud storagepricingissuecpuanalisysscteCSSrtsp push androidartifactscache expiryvideo streamingQuickTimepublish streamtraffichd25AArch64incoming streamno soundInvalid frame headervideo.jsitworkscdnqatartransocderlivestreaminstorage space availabledisk3.6.1-1mp2 audiofastspringwebhookdvr to livedissapointmentpay-per-minuteSO_RCVBUFbuffering videoadvp9av1 codecNimbleStreamergpuViewer StatsNDIPaywallvideo and audio not matchDVRStreamsaws amazonrulesError when installingFallbackhelprestartIOSnimble dvrdurationBandwidthsoundHLS Meta Tag editing.streamsDVR Setting limitssaibufferGopHTML5 playerMPEG2 Videologo in streamUDP MulticastMax connectiona recordwirecasthttp serverSSL requestserver ip21

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.