public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to record a dvb-t stream for a specific time ?
@ 2010-10-30 11:55 meino.cramer
  2010-10-30 13:33 ` Fatih Tümen
  2010-10-31 11:38 ` pk
  0 siblings, 2 replies; 7+ messages in thread
From: meino.cramer @ 2010-10-30 11:55 UTC (permalink / raw
  To: Gentoo

Hi,


 I am looking for a way to record from a dvb-t card a stream of a
 certain channel fpr a specific time.

 Is there any tool of application to do this from the commandline
 so that there is no additional mousclick is needed?

 Best regards,
 mcc





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-10-30 11:55 [gentoo-user] How to record a dvb-t stream for a specific time ? meino.cramer
@ 2010-10-30 13:33 ` Fatih Tümen
  2010-10-30 13:54   ` meino.cramer
  2010-10-31 11:38 ` pk
  1 sibling, 1 reply; 7+ messages in thread
From: Fatih Tümen @ 2010-10-30 13:33 UTC (permalink / raw
  To: gentoo-user

On Sat, Oct 30, 2010 at 14:55, <meino.cramer@gmx.de> wrote:
>
> Hi,
>
>
>  I am looking for a way to record from a dvb-t card a stream of a
>  certain channel fpr a specific time.
>
>  Is there any tool of application to do this from the commandline
>  so that there is no additional mousclick is needed?
>
>  Best regards,
>  mcc
>
>
>

I know that mplayer can do it but I did not try it myself.
mplayer record dvb gives these

[MPlayer-dvb] Record dvb-t on Ubuntu linux
I want to record my favorite dvb-t channels and I found in docs the > > way ...
http://lists.mplayerhq.hu/pipermail/mplayer-dvb/2007-March/001911.html

Record dvb-t at night - Ubuntu Forums
I want to record my favorite dvb-t channels and I found in docs the
way to do it : mplayer -dumpfile r1.ts -dumpstream dvb://CHANNEL ...
http://ubuntuforums.org/showthread.php?t=394308

--
   Fatih



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-10-30 13:33 ` Fatih Tümen
@ 2010-10-30 13:54   ` meino.cramer
  0 siblings, 0 replies; 7+ messages in thread
From: meino.cramer @ 2010-10-30 13:54 UTC (permalink / raw
  To: gentoo-user

Fatih T??men <fthtmn+gentoo@gmail.com> [10-10-30 15:36]:
> On Sat, Oct 30, 2010 at 14:55, <meino.cramer@gmx.de> wrote:
> >
> > Hi,
> >
> >
> >  I am looking for a way to record from a dvb-t card a stream of a
> >  certain channel fpr a specific time.
> >
> >  Is there any tool of application to do this from the commandline
> >  so that there is no additional mousclick is needed?
> >
> >  Best regards,
> >  mcc
> >
> >
> >
> 
> I know that mplayer can do it but I did not try it myself.
> mplayer record dvb gives these
> 
> [MPlayer-dvb] Record dvb-t on Ubuntu linux
> I want to record my favorite dvb-t channels and I found in docs the > > way ...
> http://lists.mplayerhq.hu/pipermail/mplayer-dvb/2007-March/001911.html
> 
> Record dvb-t at night - Ubuntu Forums
> I want to record my favorite dvb-t channels and I found in docs the
> way to do it : mplayer -dumpfile r1.ts -dumpstream dvb://CHANNEL ...
> http://ubuntuforums.org/showthread.php?t=394308
> 
> --
>    Fatih
> 

Hi Fatih,

oh thanks a LOT! Great! "mplayer" was the keyword I missed while
googling. I did a more general search and may overlooked those!

Thats helps me a lot!

Have a nice weekend!
Best regards,
mcc




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-10-30 11:55 [gentoo-user] How to record a dvb-t stream for a specific time ? meino.cramer
  2010-10-30 13:33 ` Fatih Tümen
@ 2010-10-31 11:38 ` pk
  2010-10-31 12:30   ` meino.cramer
  1 sibling, 1 reply; 7+ messages in thread
From: pk @ 2010-10-31 11:38 UTC (permalink / raw
  To: gentoo-user

On 2010-10-30 13:55, meino.cramer@gmx.de wrote:

>  I am looking for a way to record from a dvb-t card a stream of a
>  certain channel fpr a specific time.
> 
>  Is there any tool of application to do this from the commandline
>  so that there is no additional mousclick is needed?

I assume you have a video device (dev/video0)? If so, you should be able
to capture it by doing 'cat > video_filename.(mpg or whatever format is
used)' . It's what I do for my recordings (v4l2, analog video)...

MfG

Peter K



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-10-31 11:38 ` pk
@ 2010-10-31 12:30   ` meino.cramer
  2010-11-01 18:19     ` pk
  0 siblings, 1 reply; 7+ messages in thread
From: meino.cramer @ 2010-10-31 12:30 UTC (permalink / raw
  To: gentoo-user

pk <peterk2@coolmail.se> [10-10-31 12:40]:
> On 2010-10-30 13:55, meino.cramer@gmx.de wrote:
> 
> >  I am looking for a way to record from a dvb-t card a stream of a
> >  certain channel fpr a specific time.
> > 
> >  Is there any tool of application to do this from the commandline
> >  so that there is no additional mousclick is needed?
> 
> I assume you have a video device (dev/video0)? If so, you should be able
> to capture it by doing 'cat > video_filename.(mpg or whatever format is
> used)' . It's what I do for my recordings (v4l2, analog video)...
> 
> MfG
> 
> Peter K
> 

...cat has no timing parameter (see mail)...

Best regards,
mcc




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-10-31 12:30   ` meino.cramer
@ 2010-11-01 18:19     ` pk
  2010-11-01 23:36       ` meino.cramer
  0 siblings, 1 reply; 7+ messages in thread
From: pk @ 2010-11-01 18:19 UTC (permalink / raw
  To: gentoo-user

On 2010-10-31 13:30, meino.cramer@gmx.de wrote:

> ...cat has no timing parameter (see mail)...

Yes, but I put it in a sub shell (cat ... &) and then kill it (using a
very rough script that loops date). Basically what I do is:

1. set channel for a certain video adapter (I have two).
2. Use a script that loops date (with a 5 second interval) and when it
hits the threshold starts a sub shell with 'cat /dev/video0 >
filmname.mpg' and saves the PID in a filename with the same name but
with a .pid ending instead.
3. Use a script that loops date and when it hits the threshold reads the
PID of the cat process from the .pid file and kills it.

Perhaps not the ideal way to solve a problem but it works for me without
having to mess with something that can sing & dance while (hopefully)
doing whatever I want it to do... and needing the kitchen sink for a
minimal install.

MfG

Peter K



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How to record a dvb-t stream for a specific time ?
  2010-11-01 18:19     ` pk
@ 2010-11-01 23:36       ` meino.cramer
  0 siblings, 0 replies; 7+ messages in thread
From: meino.cramer @ 2010-11-01 23:36 UTC (permalink / raw
  To: gentoo-user

pk <peterk2@coolmail.se> [10-11-02 00:24]:
> On 2010-10-31 13:30, meino.cramer@gmx.de wrote:
> 
> > ...cat has no timing parameter (see mail)...
> 
> Yes, but I put it in a sub shell (cat ... &) and then kill it (using a
> very rough script that loops date). Basically what I do is:
> 
> 1. set channel for a certain video adapter (I have two).
> 2. Use a script that loops date (with a 5 second interval) and when it
> hits the threshold starts a sub shell with 'cat /dev/video0 >
> filmname.mpg' and saves the PID in a filename with the same name but
> with a .pid ending instead.
> 3. Use a script that loops date and when it hits the threshold reads the
> PID of the cat process from the .pid file and kills it.
> 
> Perhaps not the ideal way to solve a problem but it works for me without
> having to mess with something that can sing & dance while (hopefully)
> doing whatever I want it to do... and needing the kitchen sink for a
> minimal install.
> 
> MfG
> 
> Peter K
> 

Hi Peter,

yes, the "killing thing" was my first idea also. But since it is
not that gentleman like, I asked here for another solution.
In the meanwhile I found this:

    tzap -r -H -t <duration in seconds> -o - <channelname from ~/.tzap/channels.conf > "filename" 

records the stream into "filename". The redirection is necassary,
since tzap gets problems when trying to write more than 2Gigs of
streamed data.

I start this via fcron.

MfG
mcc




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-01 23:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-30 11:55 [gentoo-user] How to record a dvb-t stream for a specific time ? meino.cramer
2010-10-30 13:33 ` Fatih Tümen
2010-10-30 13:54   ` meino.cramer
2010-10-31 11:38 ` pk
2010-10-31 12:30   ` meino.cramer
2010-11-01 18:19     ` pk
2010-11-01 23:36       ` meino.cramer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox