]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add test for RTMP stream without audio
authorChocobozzz <me@florianbigard.com>
Wed, 28 Sep 2022 09:19:08 +0000 (11:19 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 28 Sep 2022 09:19:08 +0000 (11:19 +0200)
server/tests/api/live/live.ts

index 885751285de0aceffff7ee58846f1bdbe706b126..c436f0f01546d05fefac4fdaa0439ddb7d2fcb60 100644 (file)
@@ -454,6 +454,18 @@ describe('Test live', function () {
       await stopFfmpeg(ffmpegCommand)
     })
 
+    it('Should transcode audio only RTMP stream', async function () {
+      this.timeout(120000)
+
+      liveVideoId = await createLiveWrapper(false)
+
+      const ffmpegCommand = await commands[0].sendRTMPStreamInVideo({ videoId: liveVideoId, fixtureName: 'video_short_no_audio.mp4' })
+      await waitUntilLivePublishedOnAllServers(servers, liveVideoId)
+      await waitJobs(servers)
+
+      await stopFfmpeg(ffmpegCommand)
+    })
+
     it('Should enable transcoding with some resolutions', async function () {
       this.timeout(120000)