From owner-freebsd-questions@freebsd.org Sat Jan 6 08:33:22 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4C5FE8542A for ; Sat, 6 Jan 2018 08:33:22 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-yb0-x22c.google.com (mail-yb0-x22c.google.com [IPv6:2607:f8b0:4002:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79A167C934 for ; Sat, 6 Jan 2018 08:33:22 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-yb0-x22c.google.com with SMTP id 129so2738866ybe.5 for ; Sat, 06 Jan 2018 00:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jqH0q5zQMQoOz0j9XMWlO4KSV4DIDcJc+rEA6MG5dWg=; b=CXzqitkUjidnwj2IDmbjLiLoLpjoA1Qo4gRIBd07oHv6NkeJLHG7368Er/Tz28Q5X+ F8A+8OYsaXkHjXqD/Aaet15d/GkwYpdIipTVgGaUu9aKULE5zCJE+v9HEonbS1cOHVJQ avAjAF2mJVXnE4O1mjJjmawiC6vyZeNYrAa7FX9YZ58x6oMjodWraMudfBGiFPp2EOzk 6EQw3fO6IJw23yJnXxs+8kNhPo6lFgZfmxqK7KrRBnP4q/Dz56geJGgqbCEhO36j7xC0 /bOwARZmfpJWOmRzNKuUVNeOUB+SdYJswemuSNW8N7DNVZSPuxRMdiWNOvYpU/L0zUfy lubg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jqH0q5zQMQoOz0j9XMWlO4KSV4DIDcJc+rEA6MG5dWg=; b=YVrDP8DheY+ksV1bLVBrrXFLU0HASg5y+CwrdWmbVLREu8Ivw0e1TwMaoLwX0FcDf9 vVduacg9PwQ7XaFq4YN9DSK0AM0UaOo8Iz53XzkGzUT6ae8uXhUXrwSHDeXEGhkVJqsL A2C4A0edyEoG/PZYPklmTjh8KmE/HqlgntbjNYyArrFH/V5DfE+0NUYW6wcgYkpOg5dT NblEZ9hawV+XHE5E65shCOx4vKE2GMJw4zHrf4pGdZr5S6P8mgbKpOkv4G2NCSkLni8+ QpyfEMX2x0fGYrz6BPbyd1WW0kbkFrlZVq7sFn+4N8uGLl9aq+Iqs4bawwMCGB8evnS/ 2qYQ== X-Gm-Message-State: AKGB3mK8bWv0QGFnDwhjkh7ekLtqTmmiv7UP2HpGApgQuLrsogDhBr0M Y8ZBMGnbI9yegNwkpTSnLGhERkoUKl6UO36w05A= X-Google-Smtp-Source: ACJfBotlgiTsBPh9Cd9U/NfJkHBQfUBvdhyADRBhEFJA5yydWrCCaewQJ7lQKPCpQ3NdnIJf6a0t1rJPj5eNMp5i8NU= X-Received: by 10.37.129.204 with SMTP id n12mr5235693ybm.217.1515227601347; Sat, 06 Jan 2018 00:33:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.174.3 with HTTP; Sat, 6 Jan 2018 00:33:20 -0800 (PST) In-Reply-To: <20180106063934.GA32231@admin.sibptus.transneft.ru> References: <20180104163421.GA15692@admin.sibptus.transneft.ru> <20180104175156.440fa0c2.freebsd@edvax.de> <20180106063934.GA32231@admin.sibptus.transneft.ru> From: Ultima Date: Sat, 6 Jan 2018 00:33:20 -0800 Message-ID: Subject: Re: Convert .flac and .ape to mp3 To: Victor Sudakov Cc: Polytropon , FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jan 2018 08:33:22 -0000 do_something "$i" On Fri, Jan 5, 2018 at 10:39 PM, Victor Sudakov wrote: > Polytropon wrote: > > > What do you convert ape and flac audio files to mp3 with? > > > > > > multimedia/ffmpeg does not seem to support encoding to mp3 (only > > > decoding), what else could I try? > > > > Huh? I'm using ffmpeg regularly to convert from mp4 or flv _to_ mp3, > > this works quite well. Maybe you need to install an additional encoder, > > plugin, or library if you're lacking mp3 support? > > > > % ffmpeg -i example.flv example.mp3 > > > > It does what it says on the can. Works for years. :-) > > > > With ffmpeg's mp3 support, you should be able to convert from flac > > or ape in a similar manner. > > I'm somewhat disappointed because ffmpeg does not seem to be able to > split flac/ape files according to cue file, or extract track names > therefrom and insert them into the mp3 file. > > So eventually I will need to write a script to process all the *.ape > files, probably with bchunk. Which brings the following question. If > the file and directory names have spaces in them, a simple loop like > this: > > #!/bin/sh > for i in `find . -iname '*.ape'` > do > do_something $i > done > > breaks on spaces. > > What is the sh magic to handle such filenames? > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > AS43859 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >