awy;358389 Wrote:
> Using lame for downsampling flac is clearly not ideal. I expect this to
> be changed as soon as someone can come up with a working transcoder
> pipeline that can do flac->flac with downsampling while retaining all
> the other functionality.
>
> I expect that we will use sox for this, but we need a more up-to-date
> build of sox, including with FLAC support (not there by default). This
> won't happen in time for 7.3. You could probably construct your own
> flac->wav pipeline today with the current sox functionality. I have not
> tested this but at a guess the following should work (although I can
> foresee a number of problems - it might be necessary to tie down all
> the output stream characteristics => 44100/16/2):
> >
Code:
--------------------
> >
> flc wav * *
> # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
> [flac] -dcs $START$ $END$ -- $FILE$ | [sox] $RESAMPLE$ -t wav - -t wav -
>
--------------------
> >
> You would probably need to disable the flc-flc-transcode line in the
> normal convert.conf file.
>
> If you have a flac-capable sox version around then you could try:
> >
Code:
--------------------
> >
> flc flc transcode *
> # FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
> [flac] -dcs $START$ $END$ -- $FILE$ | [flac-capable-sox] $RESAMPLE$ -t
wav - -t flc -
>
--------------------
> >
>
> Alan.
Alan, thanks for the pointer. I added sox with flac + bitrabit/resample
support (i love gentoo :-) and replaced the bundled one. I had to modify
your first guess a bit (this version played back at half speed). The
following lines work and resample 96->48 and 88.2->44.1
Code:
--------------------
flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=rate %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -t wav - -t flac -
$RESAMPLE$
--------------------
kudos for this absolutely fine piece of work! (new streaming not these
two lines ;-)
kind regards,
Markus
--
schiegl
------------------------------------------------------------------------
schiegl's Profile: http://forums.slimdevices.com/member.php?userid=6654
View this thread: http://forums.slimdevices.com/showthread.php?t=54862
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta