Hi
How can I get cda files to play - I have added it as a fiel type and given it a mime type of audio/x-cda but when I try to play it then it just skips the track - test transcode just gives up with Invalid Data.
Am i doing something wrong - this is an audio CD - should I set it up differently to enable playing of that cd over DLNA?
Thanks in advance
Dave
Playing cda files
Re: Playing cda files
Hi,
Settings-Transcoder-Profiles-Music-Add
Name: Music - Audio CD - VLC
Language: PascalScript
Transcoder: VLC
Transcoding parameters:
Settings - File types - cda - Edit - Transcoding profile - "Music - Audio CD - VLC"
or
Settings - Server - choose a device - Edit - Settings - File Types - cda - Edit - Transcoding profile - "Music - Audio CD - VLC"
Transcoding profile for VLC Media Playerdgat wrote:
How can I get cda files to play - I have added it as a fiel type and given it a mime type of audio/x-cda but when I try to play it then it just skips the track - test transcode just gives up with Invalid Data.
Am i doing something wrong - this is an audio CD - should I set it up differently to enable playing of that cd over DLNA?
Settings-Transcoder-Profiles-Music-Add
Name: Music - Audio CD - VLC
Language: PascalScript
Transcoder: VLC
Transcoding parameters:
Code: Select all
const
csVideoLanParams =
'-Idummy --language en --sout=#transcode{acodec=%s,ab=%d,channels=2,' +
'samplerate=44100}:duplicate{dst=std{access=file,mux=%s,dst="<OUTPUT FILE>"}}' +
' cdda://%s --cdda-track=%s vlc://quit';
function GetAudioCodec: string;
begin
if SameText(cfgTranscodingRadioMimeType, 'audio/L16') then
Result := 's16be'
else if SameText(cfgTranscodingRadioMimeType, 'audio/x-ms-wma') then
Result := 'wma2'
else
Result := 'mp3'
end;
function GetFileFormat: string;
begin
if SameText(cfgTranscodingRadioMimeType, 'audio/x-ms-wma') then
Result := 'asf'
else
Result := 'raw'
end;
begin
TranscodingParams := Format(csVideoLanParams, [GetAudioCodec,
Min(cfgTranscodingAudioBitrate div 1000, 192), GetFileFormat, Copy(mpFilePath, 1, 2), Copy(ExtractFileName(mpFilePath), 6, 2)])
end.
or
Settings - Server - choose a device - Edit - Settings - File Types - cda - Edit - Transcoding profile - "Music - Audio CD - VLC"
Re: Playing cda files
Brilliant
Once i worked out I needed to tell it that its pascalscript works a treat
Thanks
Once i worked out I needed to tell it that its pascalscript works a treat
Thanks