[Libav-user] Using ffmpeg to cut audio clips?

Steve Boyer steveboyer85 at gmail.com
Thu Jun 19 19:02:41 CEST 2014


On Thu, Jun 19, 2014 at 11:37 AM, Ricky Huang <rhuang.work at gmail.com> wrote:

>
> On Jun 19, 2014, at 8:48 AM, Steve Boyer <steveboyer85 at gmail.com> wrote:
>
> On Thu, Jun 19, 2014 at 10:45 AM, Ricky Huang <rhuang.work at gmail.com>
> wrote:
>
>> Hello all,
>>
>> I am trying to use the following syntax to cut an mp3 audio clip starting
>> at 2 minute mark for 30 seconds:
>>
>> ./ffmpeg -ss 00:02:00 -i angel.mp3 -t 00:00:30 angel_ffmpeg.mp3
>>
>> ffmpeg complains about "Encoder (codec none) not found for output stream
>> #0:1".  It seems like it's trying to look for and output a video?  Are
>> there switches to enable audio-only processing?
>>
>>
> Give: "ffmpeg -ss 00:02:00 -i angel.mp3 -t 30 -vn -c:a copy angel_cut.mp3"
> a try. "-vn" disables video, and "-c:a copy" tells ffmpeg to copy the
> streams directly and not encode.
>
> Steve B.
>
>
> Thanks for the quick answer, Steve B.
>
> BTW, can MP3's be cut without re-encoding of any sort?
>
>
If the previous command works as I believe it should, the only encoding
that ffmpeg would do is in writing metadata (encoder used, album
information if given, etc). I say "encoding" because it is in the most
basic sense, encoding information to the MP3 file - in this same sense,
tagging your MP3 collection "encodes" information as well. The underlying
MP3 audio stream should be identical to the original (aside from portions
trimmed).

Steve B.


>
>
>> Thanks in advance!
>>
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140619/eb93bebf/attachment.html>


More information about the Libav-user mailing list