ogg player with pause, rewind, fast forward?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anybody know of a command line ogg player that has features like pause, 
fast forward, and rewind?

I have been recording radio program s and TV shows (just the audio of 
course) in ogg format. But when the program is a half hour  or longer, you 
need to be able to pause and rewind.

PS: Below is the script I use to record audio. A typical cron entry would 
be like this:

45 3 * * 1-5 /usr/local/bin/rec2ogg /home/john/public_html/bbc/%a.ogg 900  30

The first parameter to rec2ogg is a file spec. you can use date command 
format symbols. For example, in the line above, %a returns Sun, Mon, ... 
Sat. The second parameter is seconds to record.  900 seconds equals 15 
minutes. The third parameter is an optional number of seconds to wait 
before beginning to record. That's so you don't have to put up with 30 
seconds of dreck at the beginning of a recording since cron's granularity 
is 1 minute.

So the above example runs rec2ogg at 3:45 AM, Monday through Friday. Each 
day, rec2ogg sleeps for 30 seconds, then records for 15 minutes saving the 
output in Mon.ogg on Monday, Tue.ogg on Tuesday, etc.


rec2ogg:

!/bin/bash
if test -z $2; then
  echo "Use: rec2wav <file_spec> <record_seconds> [<wait_seconds>]"
  exit
fi

if test -d $1; then
         SPEC=%Y-%m-%d
else
         SPEC=$1
fi
if test ! -z $3; then
         sleep $3
fi

FILE=`date +"$SPEC"`
sox -V -r 44100 -c 2 -t ossdsp -w -s /dev/dsp -t wav - filter 0-16000 
2>/dev/nul
l | oggenc -Q - -o $FILE -b 128&
REC_PID=$!
sleep $2
kill -9 $REC_PID






[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux