Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-31-2004, 07:06 AM   #1
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
Old 08-31-2004, 07:46 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

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 ( 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 for an easy way to write CGI scripts using Perl.

Hope that helps,

— Robert J. Lee


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 PM.

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