Feature #4828
transcoding to FLAC für radio only clients
100%
Description
Hi,
I would like to use tvheadend to stream radio stations coming from DVB-C to my radio devices.
I already set up this scenario with tvh successfully using the AAC codec.
I wonder whether it would be better to have FLAC codec available. After all the incoming format mpeg2 is already a lossy codec, and transcoding to aac is again lossy. So in order to keep the max quality a lossless codec would do probably better.
(I ripped all my CDs to flac format and stream them quite well from my NAS.)
I do not know at all whether this makes sense or if transcoding to flac is to much load for the cpu, or the quality is not really better at all.
I just would like to here your opinions or whether this could be a feature request for one of the next versions.
History
Updated by Jaroslav Kysela almost 7 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset commit:tvheadend|a79e82921a8a714f5febc7c119080fd31c1142cf.
Updated by W S almost 7 years ago
I started testing the new version with FLAC codec, i.e., I created a Codec Profile "meinFLAC" in tvh selecting the flac codec.
When I start the service I get errors
2018-01-05 13:51:09.051 subscription: 0003: "HTTP" subscribing on channel "B5 plus", weight: 100, adapter: "DRXK DVB-C DVB-T #0 : DVB-C #0", network: "Unitymedia", mux: "314MHz", provider: "ARD BR", service: "B5 plus", profile="meinaudio", hostname="192.168.1.80", client="VLC/2.1.6 LibVLC/2.1.6" 2018-01-05 13:51:09.635 codec: unknown type for profile 'meinFLAC' 2018-01 05 13:51:09.635 transcode: 0002: 01:MPEG2AUDIO: ==> Filtered out
It seems that the flac codec itself is not available (line 2 of the snippet). I thought that the ffmpeg codecs are compiled into tvh, aren't they?
(I am using tvh on Libreelec and the ffmpeg version there does not provide the flac encoder.)
I'm kind of puzzled.
Updated by W S almost 7 years ago
I wonder whether I ask to much if you could provide an option field in the Codec Profile for the sample rate?
Currently the sample rate of mp2 streams is at 48kHz and so it is in the flac stream. But older/simplier DACs can only deal with sample rates up to 44,1kHz as for CDs.
Updated by W S almost 7 years ago
Interestingly the config file for the Flac codec in the codec folder contains a sample rate option with value 0.
I set it to 44100 and that did the job.
Updated by Jaroslav Kysela almost 7 years ago
Yes, the webui was disabled for this. It's fixed in v4.3-912-g5fe3ebd48 .