Reply To: DTS .ac3 files

#7246
fd0
Guest

@rpedde wrote:

Yes, but I don’t know if the soundbridge will do multichannel wav files, or how one would convert it to a multichannel wav file.

But generally, add ac3 to the transcode codecs, and edit your transcode script to convert the .ac3 file to a wav file.

— Ron

Thanks Ron

Testing with mt-daapd/svn-1417 now

I added .shn and .ac3 :

extensions = .mp3,.m4a,.m4p,.flac,.ogg,.shn,.aac,.ac3
and
ssc_codectypes = ogg,flac,alac,shn,ac3

but this does not seem to work for .ac3 and .shn; it does work for .flac.

When a .ac3 file is added to the db i see the following in the log:

    2006-11-14 10:21:30 (b73096b0): Found /music/home/fd0/cd/25. Chronology 6.ac3
    2006-11-14 10:21:30 (b73096b0): Executing: select * from songs where path=’/music/home/fd0/cd/25. Chronology 6.ac3′ and idx=0
    2006-11-14 10:21:30 (b73096b0): Executing: INSERT INTO updated VALUES (3326)
    2006-11-14 10:21:30 (b73096b0): Rows: 1
    2006-11-14 10:21:30 (b73096b0): Found music file: 25. Chronology 6.ac3
    2006-11-14 10:21:30 (b73096b0): Date Added: 1163494269
    2006-11-14 10:21:30 (b73096b0): Codec: unkn
    2006-11-14 10:21:30 (b73096b0): Executing: select count(*) from songs where path=’/music/home/fd0/cd/25. Chronology 6.ac3′ and idx=0
    2006-11-14 10:21:30 (b73096b0): Executing: UPDATE songs SET title=’25. Chronology 6.ac3′,artist=”,album=”,genre=”,comment=”,type=’ac3′,composer=”,orchestra=”,
    conductor=”,grouping=”,url=”,bitrate=0,samplerate=0,song_length=600000,file_size=20821248,year=0,track=0,total_tracks=0,disc=0,total_discs=0,time_modified=116349
    4269,db_timestamp=1163496090,bpm=0,disabled=0,compilation=0,rating=0,sample_count=0,codectype=’unkn’ WHERE path=’/music/home/fd0/cd/25. Chronology 6.ac3′ and idx=0
    2006-11-14 10:21:30 (b73096b0): Rows: 1
    2006-11-14 10:21:30 (b73096b0): Executing: insert into updated (id) select id from songs where path=’/music/home/fd0/cd/25. Chronology 6.ac3′ and idx=0
    2006-11-14 10:21:30 (b73096b0): Rows: 1

And for a .shn the following is in the log

    2006-11-14 10:21:30 (b73096b0): Found /music/home/fd0/cd/01_AlchemyoftheHeart.shn
    2006-11-14 10:21:30 (b73096b0): Executing: select * from songs where path=’/music/home/fd0/cd/01_AlchemyoftheHeart.shn’ and idx=0
    2006-11-14 10:21:30 (b73096b0): Executing: INSERT INTO updated VALUES (3304)
    2006-11-14 10:21:30 (b73096b0): Rows: 1
    2006-11-14 10:21:30 (b73096b0): Found music file: 01_AlchemyoftheHeart.shn
    2006-11-14 10:21:30 (b73096b0): Date Added: 1163366523
    2006-11-14 10:21:30 (b73096b0): Codec: unkn
    2006-11-14 10:21:30 (b73096b0): Executing: select count(*) from songs where path=’/music/home/fd0/cd/01_AlchemyoftheHeart.shn’ and idx=0
    2006-11-14 10:21:30 (b73096b0): Executing: UPDATE songs SET title=’01_AlchemyoftheHeart.shn’,artist=”,album=”,genre=”,comment=”,type=’shn’,composer=”,orchestra=”,conductor=”,grouping=”,url=”,bitrate=0,samplerate=0,song_length=600000,file_size=40972629,year=0,track=0,total_tracks=0,disc=0,total_discs=0,time_modified=1163366523,db_timestamp=1163496090,bpm=0,disabled=0,compilation=0,rating=0,sample_count=0,codectype=’unkn’ WHERE path=’/music/home/fd0/cd/01_AlchemyoftheHeart.shn’ and idx=0
    2006-11-14 10:21:31 (b73096b0): Rows: 1
    2006-11-14 10:21:31 (b73096b0): Executing: insert into updated (id) select id from songs where path=’/music/home/fd0/cd/01_AlchemyoftheHeart.shn’ and idx=0
    2006-11-14 10:21:31 (b73096b0): Rows: 1

The following shows when selecting a .shn file in iTunes

    2006-11-14 10:23:11 (b5ababa0): Executing: select * from songs where id=3304
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Length of file (remaining) is 40972629
    2006-11-14 10:23:11 (b5ababa0): Updating Content-Type from application/x-dmap-tagged to audio/shn
    2006-11-14 10:23:11 (b5ababa0): Added *Content-Length=40972629*
    2006-11-14 10:23:11 (b5ababa0): Updating Connection from close to Close
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Content-Length: 40972629
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Expires: -1
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Cache-Control: no-cache
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header DAAP-Server: firefly/svn-1417
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Accept-Ranges: bytes
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Content-Language: en_us
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Content-Type: audio/shn
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Server: mt-daapd/svn-1417
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Connection: Close
    2006-11-14 10:23:11 (b5ababa0): Emitting reponse header Date: Tue, 14 Nov 2006 09:23:11 GMT
    2006-11-14 10:23:11 (b5ababa0): Entering config_set_status
    2006-11-14 10:23:11 (b5ababa0): Exiting config_set_status
    2006-11-14 10:23:11 (b5ababa0): Session 0: Streaming file ’01_AlchemyoftheHeart.shn’ to 172.16.16.20 (offset 0)
    2006-11-14 10:23:11 (b5ababa0): Write error: Broken pipe
    2006-11-14 10:23:11 (b5ababa0): Finished streaming file to remote: 262144 bytes
    2006-11-14 10:23:11 (b5ababa0): Entering config_set_status
    2006-11-14 10:23:11 (b5ababa0): Exiting config_set_status
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Terminating
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Freeing request headers
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Freeing response headers
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Freeing request vars
    2006-11-14 10:23:11 (b5ababa0): Thread 310: Closing fd
    2006-11-14 10:23:11 (b5ababa0): With thread 310 exiting, 1 are still running

I hope this is of help

tnx
fred