Node-fluent-ffmpeg: How to transcode input stream to wav audio by use fluent-ffmpeg

Created on 16 May 2019  路  2Comments  路  Source: fluent-ffmpeg/node-fluent-ffmpeg

the real order of the below is: "ffmpeg -i rtsp://172.26.3.67:8554/dawang_crop_aac.mkv -vn -c:a pcm_s16le -ar 16000 -ac 1 -f segment -segment_time 10 audio-%d.wav",it works by cmd. if i want to do this by fluent-ffmpeg,how to do ?? thanks

Most helpful comment

You should be able to pass the same input string as file name to fluent ffmpeg:

ffmpeg('rtsp://172.26.3.67:8554/dawang_crop_aac.mkv')
  .noVideo()
  .audioCodec('pcm_s16le')
  .audioFrequency(16000)
  .audioChannels(1)
  .format('segment')
  .outputOptions('-segment_time 10')
  .saveToFile('audio-%d.wav')

All 2 comments

You should be able to pass the same input string as file name to fluent ffmpeg:

ffmpeg('rtsp://172.26.3.67:8554/dawang_crop_aac.mkv')
  .noVideo()
  .audioCodec('pcm_s16le')
  .audioFrequency(16000)
  .audioChannels(1)
  .format('segment')
  .outputOptions('-segment_time 10')
  .saveToFile('audio-%d.wav')

@niklaskorz thank you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsamos picture jsamos  路  6Comments

xyk2 picture xyk2  路  3Comments

elartix picture elartix  路  5Comments

danielbanfield picture danielbanfield  路  5Comments

geraldoramos picture geraldoramos  路  3Comments