The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX domain sockets vs FIFOs mgessner UNIX for Advanced & Expert Users 2 03-27-2008 06:03 PM
tar and fifos Corona688 UNIX for Advanced & Expert Users 8 08-23-2006 04:21 PM
forks, ipc, fifos, update issues... Funktar High Level Programming 6 10-01-2005 11:00 PM
Praying for help: FIFOs, IPC Funktar High Level Programming 5 05-18-2005 04:25 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-01-2005
deckard's Avatar
Registered User
 

Join Date: Jul 2002
Location: Ohio
Posts: 110
A little help understanding FIFOs?

This isn't strictly a Linux question, but... I've been working on a project to archive some streaming media for time shifting using 'mplayer' and have been using FIFOs to archive in Ogg Vorbis format:


Code:
mkfifo program_name.wav

(mplayer -ao pcm -aofile program_name.wav &)
MPLAYER_PID="`/sbin/pidof mplayer`"

(oggenc program_name.wav &)
OGGENC_PID="`/sbin/pidof oggenc`"

sleep 30m && kill -9 "$MPLAYER_PID" "$OGGENC_PID"
rm program_name.wav
That works OK. But some of the streams I archive are long (3-4 hours) and are difficult to "fast forward" through on my car player. So I'd like to break the recordings up into 5 minute segments WHILE I am encoding the stream. The problem is that when oggenc stops reading from the program_name.wav FIFO, mplayer stops streaming and won't start up again. Any ideas how I would do this without just grabbing the whole show in WAV format and then splitting it after the fact?
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0