mirror of
				https://github.com/owntone/owntone-server.git
				synced 2025-10-30 00:05:05 -04:00 
			
		
		
		
	add shell-based transcode script
This commit is contained in:
		
							parent
							
								
									bdd5ba39da
								
							
						
					
					
						commit
						bc9577bbcc
					
				| @ -1,6 +1,6 @@ | ||||
| # $Id$
 | ||||
| #
 | ||||
| EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo | ||||
| EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc-script | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,17 @@ | ||||
| # $Id$ | ||||
| 
 | ||||
| In here goes stuff that anyone wants to send... add-ons, unsupported patches, etc. | ||||
| 
 | ||||
| mt-daapd.conf.........: an example config | ||||
| mt-daapd.playlist.....: an example playlist | ||||
| 
 | ||||
| mt-daapd..............: an init.d script, suitable for redhat | ||||
| mt-daapd-gentoo.......: an init.d script, suitable for gentoo | ||||
| 
 | ||||
| mt-daapd-ssc-script...: a transcoding script, using perl | ||||
| mt-daapd-ssc.sh.......: a transcoding script, using shell | ||||
| 
 | ||||
| mt-daapd.spec.........: a specfile, without ogg-vorbis or howl | ||||
| mt-daapd.fc2.spec.....: a specfile (ostensibly for fc2), with ogg-vorbis, but not howl | ||||
| mt-daapd.fc3.spec.....: a specfile (ostensibly for fc3), with both ogg-vorbis and howl | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										29
									
								
								contrib/mt-daapd-ssc.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										29
									
								
								contrib/mt-daapd-ssc.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,29 @@ | ||||
| #!/bin/sh | ||||
| # | ||||
| # script to facilitate server-side transcoding of ogg files | ||||
| # Ron Pedde (ron@pedde.com) | ||||
| # | ||||
| # Usage: mt-daapd-ssc.sh <filename> <offset> | ||||
| # | ||||
| # This is not as flexible as Timo's transcoding script, but it works | ||||
| # without perl, making it more suitable for the NSLU2. | ||||
| # | ||||
| 
 | ||||
| ogg_file() { | ||||
|     oggdec --quiet -o - $1 | dd bs=1 ibs=1024 obs=1024 skip=$OFFSET 2>/dev/null | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| OFFSET=0 | ||||
| 
 | ||||
| if [ "$2" == "" ]; then | ||||
|     OFFSET=0 | ||||
| else | ||||
|     OFFSET=$2 | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| if ( echo $1 | grep -i "\.ogg$" > /dev/null 2>&1 ); then | ||||
|     ogg_file $1 $OFFSET | ||||
| fi | ||||
| 
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user