Re: [Freevo-users] dvb questions

2004-06-21 Thread Matt McLeod
On Mon, 21 Jun 2004 10:25:20 -0300, Rob Shortt <[EMAIL PROTECTED]> wrote:
> Mplayer or mencoder will work, as will running s/c/tzap with the -r flag
> to open the dvr0 device for reading, you can then write its contents to
> a file.  I don't like mpeg-ts very much and would prefer a PS.

I use tzap from CVS, which has a "-o" option which dumps the TS to the
named file.  That along with its "-t" option to set the recording time
does the trick.

I send the TS to "-" (standard output) and pipe that through ts2ps,
finally piping the output from that to disk.  That gives me a nice
clean PS with the required streams.

> Whatever you do make sure you keep an eye on the a/v sync.  Some of the
> mplex programs have PTS options (keep or drop) and some programs take
> care of looking for the PCR PID for the channel you are interested.

mplayer seems quite happy with the programme streams I'm creating as
above.  mencoder is also *usually* happy to transcode from those,
though you can't sanely automate that step in Australia thanks to the
geniuses who decided that 4:3 content should be broadcast as 16:9 with
black bars rather than simply as 4:3.

I've taken to pushing everything I want to keep through ProjectX on a
Windows box (though it's Java, so may work on Linux too -- but the
Windows game machine has rather more grunt than my Freevo box, so...).
 That demuxes and fixes timing/sync very nicely, the results are good
for burning to DVD if that's what you want to do.  Otherwise, no
transcoding -- it's easier to just stick a nice big disk in the Freevo
machine than to worry about transcoding temporary recordings.

Matt


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] dvb questions

2004-06-21 Thread Manuel Borchers
Hi Dischi, hi List!

Am Mo, den 21.06.2004 schrieb Dirk Meyer um 9:26:
> I bought a dvb-t card and now I wonder how you use a card like this in
> Freevo. I use mplayer and dumpstream for recording which works well
> with latest cvs. Only problem is that mmpython can't scan a mpeg ts. 

May I ask, which card - available in Germany - you bought?

I'm planning on getting one, too. Don't know when, but would like to
know what you guys out there are using.

Cheers,
Manuel

-- 
[EMAIL PROTECTED]
http://www.matronix.de - http://www.elektronik-kompendium.de/public/borchers

 17:36:44 up 2 days, 17:57,  1 user,  load average: 0.20, 0.19, 0.19



---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] dvb questions

2004-06-21 Thread Rob Shortt
Dirk Meyer wrote:
o what do you use to record without re-encoding?
Mplayer or mencoder will work, as will running s/c/tzap with the -r flag 
to open the dvr0 device for reading, you can then write its contents to 
a file.  I don't like mpeg-ts very much and would prefer a PS.  There 
are programs out there (mplex, dvbmplex, replex) that convert them.  It 
is also worth looking at the VDR code, it records DVB streams saving 
them to PES.  Either way, you only have to "repackage" the mpeg stream, 
not transcode (which takes way more CPU of course.

Whatever you do make sure you keep an eye on the a/v sync.  Some of the 
mplex programs have PTS options (keep or drop) and some programs take 
care of looking for the PCR PID for the channel you are interested.

o does someone has a link to a ts spec? I would like to include
  support for it into mmpython:
http://www.etsi.org  There are lots of docs there, probably everything 
you need.  I've been doing some muching around with DVB programming 
myself, channel scanning, SI table scanning (EPG) for dumping XMLTV 
files from the stream info, etc.

Have fun! :)
-Rob

---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] dvb questions

2004-06-21 Thread Matthieu Weber
On Mon 21.06.2004 at 11:38:34AM +0300, Matthieu Weber wrote:
> On Mon 21.06.2004 at 09:26:38AM +0200, Dirk Meyer wrote:
> > o does someone has a link to a ts spec? I would like to include
> 
> I don't, but if you're not afraid of reading code, take a look at
> libdvbmpeg.

Or here:
http://erg.abdn.ac.uk/research/future-net/digital-video/mpeg2-trans.html

I just thought about one useful feature that would be needed in Freevo's
DVB support : scanning the transport stream to detect changes in channel
parameters. In Jyväskylä, where I live, the frequency of the transponder
transmitting Nelonen (on TV channel) changed some time ago. I was
wondering why this channel was not working anymore, until I noticed the
frequency change. I don't know how often this happens, but if it does,
it would be good if the change could be transparent to the user.

Matthieu
-- 
 (~._.~)Matthieu Weber - Université de Jyväskylä (~._.~)
  ( ? )email : [EMAIL PROTECTED]  ( ? ) 
 ()- -()   public key id : 452AE0AD  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] dvb questions

2004-06-21 Thread Matthieu Weber
On Mon 21.06.2004 at 09:26:38AM +0200, Dirk Meyer wrote:
> Hi,
> 
> I bought a dvb-t card and now I wonder how you use a card like this in
> Freevo. I use mplayer and dumpstream for recording which works well
> with latest cvs. Only problem is that mmpython can't scan a mpeg ts. 
> 
> So my questions are:
> 
> o what do you use to record without re-encoding?

I modified the tzap program (in the apps section of the drivers, version
1.1.0) to read from /dev/dvb/adapter0/dvr0 and save straight to disk.
The stream format is then MPEG TS. The files are huge (5 GB for 2h30 of
movie) so recoding with XviD will be needed before burning.
Besides, it could be easily converted on the fly to MPEG PS, which
freevo knows about. I have been working on it yesterday, using
libdvbmpeg's ts2ps program. It's not integrated yet, since I tried to
include the DVB subtitles in the resulting PS, but it should work.

> o does someone has a link to a ts spec? I would like to include

I don't, but if you're not afraid of reading code, take a look at
libdvbmpeg.

>   support for it into mmpython:
>   - get length of the file

Probably by calculating a difference between the first and last PTS in
one of the streams? But the PTS can be reset to 0 at some point in the
stream, so scanning of the whole file might be needed in this case (and
scanning 5 GB takes time...). You cannot rely on the bitrate announced
in the stream to calculate the length based on the file's size(in
Finland, it is always set to 10 Mbps, but the actual bitrate of the
video stream is different).

Btw, my (old, from last December) Freevo always shows wrong durations
for MPEG (either DVD, rips from DVDs, or PS converted from DVB's TS).
What's the reason for that? Is it fixed in the current version?

>   - maybe find signals in the stream about program start

That would actually solve my problem of editing the MPEG (either TS or
PS) before watching/converting to XviD. If you find how, I'm interested
:) I use a home-made mplayer filter to write and EDL and skip the ads
while watching, but it doesn't work with MPEG, because mplayer is not
able to jump to a precise enough location in MPEG (it works well with
AVIs, though).

>   - maybe find information if the stream is interlaced or not
It's TV, and it's probably always interlaced. However, a TS is just
another multiplexing type of various streams, so once you are able to
find the video stream inside the TS, you can analyze like any other MPEG
stream (well, that's what I have understood from the code I've read, at
least).

Matthieu
-- 
 (~._.~)Matthieu Weber - Université de Jyväskylä (~._.~)
  ( ? )email : [EMAIL PROTECTED]  ( ? ) 
 ()- -()   public key id : 452AE0AD  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users