Wowza Community

Extracting audio as a separate mp3 file from live stream

Hi,

I have a live stream coming from FMLE and wowza is capturing the stream in stream.flv file. Now i need to get the audio extracted in a separate file (other than stream.flv) so that i can process the audio to get the transcript of the audio.

I have googled this issue but haven’t succeeded to get it done. I have tried the solutions provided in this post but as well as the AudioRepeater but no success.

I am new to Wowza, Please provide guidance or instructions on how this resolve this.

Ovais Ashraf

Ovais,

You can use FFmpeg in post-process

ffmpeg -i your.flv -acodec libmp3lame -vn temp.mp3

Take a look at this article for links to FFmpeg builds

https://www.wowza.com/docs/how-to-encode-video-on-demand-content

Richard

Hi

Looking through the example Application.xml file in the PDF from Audio Repeater

You only need to add the following to your Application.xml file :

AudioRepeater

AudioRepeater

uk.org.shamrock.global.AudioRepeater

RemoteType

rtmp

RTMPStreamName

audiostream

This should strip and reuse the audio in this application.

Jason

Thanks Richard for a quick reply.

Actually, we would be having HD videos of 1.5gb size approx, and FFMPEG would required some time to extract audio from it. I have tested FFMPEG with 1.4gb file, it has taken about 2 hrs to process. The time that FFMPEG would take would be an overhead for my app and it also depends on the machine (CPU, RAM) FFMPEG would used to process.

So, should i conclude that this cannot be done in Wowza ?

Thanks.

Ovais Ashraf

Hi Jason,

Thanks for your reply. I have made all the necessary changes to my application.xml but its not working (as i have mentioned in my first post). Here is my application.xml

true

live-record

${com.wowza.wms.context.VHostConfigHome}/content

${com.wowza.wms.context.VHostConfigHome}/keys

mp4WriterRecordData

true

Boolean

mp4WriterRecordOnMetaData

false

Boolean

transcoder

transrate1.xml

${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles

${com.wowza.wms.context.VHostConfigHome}/transcoder/templates

0

${com.wowza.wms.context.VHostConfigHome}/dvr

append

cupertinostreaming,smoothstreaming,sanjosestreaming

-1

*

*

*

*

digest

none

senderreport

12000

75

90000

0

0.0.0.0

127.0.0.1

*

interleave

base

Base

com.wowza.wms.module.ModuleCore

properties

Properties

com.wowza.wms.module.ModuleProperties

logging

Client Logging

com.wowza.wms.module.ModuleClientLogging

flvplayback

FLVPlayback

com.wowza.wms.module.ModuleFLVPlayback

AudioRepeater

AudioRepeater

uk.org.shamrock.global.AudioRepeater

debugEnabled

On

RemoteType

rtmp

RTMPStreamName

audiostream