LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-02-2006, 01:09 PM   #1
muskiediver
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Rep: Reputation: 15
ftp video files - cron job extracts video info & posts to web page?


Hello.

I am trying to make a redundant job more efficient. I was wondering if you know if anything like this (or close to it) to this exist?

I would like to send via ftp video files are to a directory. A cron job would run at a certain time of the day (or I can ssh and enter the command to run it). The cron job triggers a script to extract video data from a Real Video file (title, author etc.) then post the videos on a web page with the video title, author etc as the link.

Does anyone know if something like this exist?
 
Old 11-23-2006, 02:01 AM   #2
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
should not be too hard to implement using ftp (client), some commandline program to parse realmedia metadata and crontab. /joe
 
Old 11-23-2006, 06:03 AM   #3
muskiediver
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks Joe

Joe/Zefo - Any ideas as to which program could do this? I am completely new to writing cron jobs.

Your help is kindly appreciated.
 
Old 11-23-2006, 06:35 AM   #4
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
Quote:
Originally Posted by muskiediver
Joe/Zefo - Any ideas as to which program could do this? I am completely new to writing cron jobs.
then i would really suggest reading some documentation and do some googling. ok, now i am not sure if i understood correctly but to me it seems you want the following:

1. cron configuration part

let cron daemon initiate the prepared script at given time (for this you need to have crond service running and appropriate line in /etc/crontab -> man crontab will tell you more)

2. script writing part

as for the artist/song info extraction maybe mplayer/ffplay could do that - i dont have any file to test with. once this is done the rest should be quite simple.

theoretically the script could look like this:

mplayer -identify movie.rm | awk/sed construction + storing appropriate values into variables (say artist and song)
ftp video_on_local_machine.rm remote_machine:/var/www/whatever/$artist-$song with corresponding .ftprc file in your home directory
 
Old 11-23-2006, 07:02 AM   #5
muskiediver
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks

What would be a good book or web site to read to learn about creating my own cron jobs?

Last edited by muskiediver; 11-23-2006 at 08:38 AM.
 
Old 11-23-2006, 07:20 AM   #6
zefo
Member
 
Registered: Mar 2003
Posts: 71

Rep: Reputation: 15
once you stop mixing two different problems and start a separate thread yes, i will assist. bye for now, joe
 
Old 11-23-2006, 08:41 AM   #7
muskiediver
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 15
sorry

My apologies. I have seperated the thread and posted a new topic under Linux general questions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI & nVIDIA Video Driver HOWTO on the front page t3gah LQ Suggestions & Feedback 1 03-21-2005 06:28 AM
Video files corrupt over ftp ixus_123 Linux - General 5 01-19-2005 05:14 PM
playing a video on web page matt_w_lambert Programming 1 11-19-2004 05:02 PM
How to implement 2-way teleconferencing with video and audio using web page Linh Programming 0 06-24-2004 06:12 PM
howto delete files via ftp from cron job ? cccc Linux - Networking 2 01-31-2004 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration