Crop MP3 to first 30 seconds

后端 未结 8 2126
南方客
南方客 2020-11-28 18:39

Original Question

I want to be able to generate a new (fully valid) MP3 file from an existing MP3 file to be used as a preview -- try-before-you-buy

8条回答
  •  再見小時候
    2020-11-28 18:53

    I have got an error while doing the same

    Invalid audio stream. Exactly one MP3 audio stream is required.
    Could not write header for output file #0 (incorrect codec parameters     ?): Invalid argumentStream mapping:
    

    Fix for me was:

    ffmpeg -ss 00:02:43.00 -t 00:00:10 -i input.mp3 -codec:a libmp3lame out.mp3
    

提交回复
热议问题