LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2004, 07:06 AM   #1
salmjuh
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Need to capture 24h program and make HTTP link to it different times


Hi gurus


So I need to capture NON STOP program and "split" it to different parts.

Lets say my recording starts at 00:00 am and stop 11.59 pm every day. OK, now I have one big video file which is fine.

But lets say I need to play the part of the video directly from the file starting at the point of 10:15 am. And next I need to start it playing from point of 4:12 pm.

How I can do this? Which video format (mpeg2? /divX / dvd) I need to use and how I can make a link (HTTP if possible) to middle of the video file ? Real time code is good for me.

Thanks advance
Jussi
 
Old 08-31-2004, 07:46 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I don't know if this is the best way of dealing with this problem, but I would do this:

— Use any reasonable format to encode the video (MPEG or Ogg Vorbis or whatever)
— Write a CGI script wrapper for mencoder, a part of the mplayer package (http://www.mplayerhq.hu). Mencoder is a video conversion tool, driven from the command-line. You can specify any portion of the file to encode, and choose the output encoder using “-ovc copy -oac copy”. This will cause it to copy the raw video data rather than actually converting it.
— Point the HTML link to the mencoder CGI, and have the CGI return the generated video stream, preceded by “content-type: video/mpeg\n\n” (or whatever the MIME type should be). Pass the start times to the CGI as parameters.

Look at the Perl module CGI.pm for an easy way to write CGI scripts using Perl.

Hope that helps,

— Robert J. Lee
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
email http tag link -X- Linux - General 2 08-18-2005 01:48 PM
program loading times kibitzer99 Linux - Software 1 01-24-2005 11:03 AM
capture http requests at squid ssharma_02 Linux - Networking 1 09-26-2004 09:04 AM
Program to capture all Http requests in a Network leninkoduru Linux - Security 4 02-02-2004 02:00 AM
Video Capture at specific times from TV Tuner Card MasterC Linux - Software 1 03-19-2003 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 AM.

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