All pastes #737487 Raw Edit

tamere

public text v1 · immutable
·published 2007-10-15 13:52 UTC
rendered paste body
#! /bin/sh                                                                                                           
#                                                                                                                    
OGGFILENAME=original.ogg
AUDIOFILENAME=normalizedaudio.wav                                                                                    
OUTPUTFILENAME=out.ogg                                                                                               
AQUAL=0.3                                                                                                            
FREQUENCY=22050                                                                                                      
CHANNELS=1                                                                                                           
#                                                                                                                    
gst-launch filesrc location="$AUDIOFILENAME" \                                                                       
           ! queue \                                                                                                 
           ! wavparse \                                                                                              
           ! audioconvert ! audio/x-raw-float \                                                                      
           ! audioresample ! audio/x-raw-float,rate=$FREQUENCY,channels=$CHANNELS \                                  
           ! vorbisenc name=AudioEncoder quality="$AQUAL" \                                                          
           ! queue \                                                                                                 
           ! OggMux. \                                                                                               
           filesrc location="$OGGFILENAME" \                                                                         
           ! queue \                                                                                                 
           ! oggdemux ! video/x-theora \                                                                             
           ! queue \                                                                                                 
           ! oggmux name=OggMux OggMux. \                                                                            
           ! queue \                                                                                                 
           ! filesink location="$OUTPUTFILENAME"