Playing cda files

Post Reply
dgat
Posts: 30
Joined: Sat May 29, 2010 3:34 pm

Playing cda files

Post by dgat »

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
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: Playing cda files

Post by Eugene »

Hi,
dgat 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?
Transcoding profile for VLC Media Player
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.
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"
dgat
Posts: 30
Joined: Sat May 29, 2010 3:34 pm

Re: Playing cda files

Post by dgat »

Brilliant

Once i worked out I needed to tell it that its pascalscript works a treat

Thanks
Post Reply