* writing DVB recorder, questions
@ 2009-02-26 12:28 Juhana Sadeharju
2009-02-26 12:40 ` [linux-dvb] " Zaheer Merali
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Juhana Sadeharju @ 2009-02-26 12:28 UTC (permalink / raw)
To: linux-dvb, linux-media
Hello. I started writing a simple DVB recorder, dvbrec. Perhaps
it later evolves to program such as Klear, which indeed is
clearest thing I have seen among DVB programs (but misses subtitles).
The complete stream has too much of data: 10 GB per hour.
As solution, existing recorders seems to pick only parts of the
whole stream (audio and video of one channel), missing many
features, including subtitles. The idea seems to be to drop
the parts that are unwanted and unknown (to author).
Perfect recording requires more. My idea is to pick all what comes
and drop the known parts: audio and video of the unwanted channels.
This leaves subtitles, alternative languages, robovoice, epg,
text-tv, etc. intact.
Xine plays poorly the output of "dvbstream -o 8192". I yet don't
know why. Xine people may take this early hint and think about
playing the complete DVB stream with a configurable way to play it.
Questions:
(1) In dvbstream, what happens when 8192 is only PID? I have stared
at the code but cannot figure out how the device is configured. I want
all data from the DVB device like "dvbstream -o 8192" does.
Then I may parse the stream on my own.
(2) Do I need to use demux? PES? Filters? I don't understand them.
Quick intro would be nice as well.
(3) What PID to use for subtitles? channels.conf lists numbers
512:650:17 as a last thing. They seem to be video PID (512) and
audio PID (650). Where is the subtitle PID (DMX_SUBTITLE)?
(4) I have followed Xine's way, but my program ends to
"Unable to read PAT filter". The polled and read FD is a demux FD.
How the demux should be used?
I will ask more questions later. Recording video and audio has
been easy, but subtitles, EPG, etc. are quite a different story.
PS. I'm now trying to read PAT/PTM but I get nothing from
demux FD. I'm following xine-lib, but apparently not enough well.
Juhana
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] writing DVB recorder, questions
2009-02-26 12:28 writing DVB recorder, questions Juhana Sadeharju
@ 2009-02-26 12:40 ` Zaheer Merali
2009-02-26 13:00 ` Patrick Boettcher
2009-02-26 13:04 ` Brice Dubost
2 siblings, 0 replies; 4+ messages in thread
From: Zaheer Merali @ 2009-02-26 12:40 UTC (permalink / raw)
To: linux-media; +Cc: linux-dvb
On Thu, Feb 26, 2009 at 12:28 PM, Juhana Sadeharju <kouhia@nic.funet.fi> wrote:
>
> Hello. I started writing a simple DVB recorder, dvbrec. Perhaps
> it later evolves to program such as Klear, which indeed is
> clearest thing I have seen among DVB programs (but misses subtitles).
>
> The complete stream has too much of data: 10 GB per hour.
> As solution, existing recorders seems to pick only parts of the
> whole stream (audio and video of one channel), missing many
> features, including subtitles. The idea seems to be to drop
> the parts that are unwanted and unknown (to author).
>
> Perfect recording requires more. My idea is to pick all what comes
> and drop the known parts: audio and video of the unwanted channels.
> This leaves subtitles, alternative languages, robovoice, epg,
> text-tv, etc. intact.
>
> Xine plays poorly the output of "dvbstream -o 8192". I yet don't
> know why. Xine people may take this early hint and think about
> playing the complete DVB stream with a configurable way to play it.
>
> Questions:
>
> (1) In dvbstream, what happens when 8192 is only PID? I have stared
> at the code but cannot figure out how the device is configured. I want
> all data from the DVB device like "dvbstream -o 8192" does.
> Then I may parse the stream on my own.
>
> (2) Do I need to use demux? PES? Filters? I don't understand them.
> Quick intro would be nice as well.
>
> (3) What PID to use for subtitles? channels.conf lists numbers
> 512:650:17 as a last thing. They seem to be video PID (512) and
> audio PID (650). Where is the subtitle PID (DMX_SUBTITLE)?
>
> (4) I have followed Xine's way, but my program ends to
> "Unable to read PAT filter". The polled and read FD is a demux FD.
> How the demux should be used?
>
> I will ask more questions later. Recording video and audio has
> been easy, but subtitles, EPG, etc. are quite a different story.
>
> PS. I'm now trying to read PAT/PTM but I get nothing from
> demux FD. I'm following xine-lib, but apparently not enough well.
>
> Juhana
>
> _______________________________________________
> linux-dvb users mailing list
> For V4L/DVB development, please use instead linux-media@vger.kernel.org
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>
Hi
In GStreamer this is easy:
If you have a zap style channels.conf file as
~/.gstreamer-0.10/dvb-channels.conf, you can do for example if you
have a channel called BBC ONE: gst-launch dvb://BBC\ ONE ! filesink
location=bbcone.ts
It follows the PAT, PMT and will output the PAT, PMT and all stream
pids including subtitle, teletext, private stream as well as all the
video and audio pids and the PCR PID (if not one of the stream pids).
Zaheer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] writing DVB recorder, questions
2009-02-26 12:28 writing DVB recorder, questions Juhana Sadeharju
2009-02-26 12:40 ` [linux-dvb] " Zaheer Merali
@ 2009-02-26 13:00 ` Patrick Boettcher
2009-02-26 13:04 ` Brice Dubost
2 siblings, 0 replies; 4+ messages in thread
From: Patrick Boettcher @ 2009-02-26 13:00 UTC (permalink / raw)
To: linux-media
Hi Juhana,
On Thu, 26 Feb 2009, Juhana Sadeharju wrote:
> Hello. I started writing a simple DVB recorder, dvbrec. Perhaps
> it later evolves to program such as Klear, which indeed is
> clearest thing I have seen among DVB programs (but misses subtitles).
>
> The complete stream has too much of data: 10 GB per hour.
> As solution, existing recorders seems to pick only parts of the
> whole stream (audio and video of one channel), missing many
> features, including subtitles. The idea seems to be to drop
> the parts that are unwanted and unknown (to author).
>
> Perfect recording requires more. My idea is to pick all what comes
> and drop the known parts: audio and video of the unwanted channels.
> This leaves subtitles, alternative languages, robovoice, epg,
> text-tv, etc. intact.
I'm not answering to your question and I don't know about Robovoice, but
for the rest VDR could do it for you. Either with plugins or (most of it)
native.
VDR in conjunction with vdr-xineliboutput can be nicely integrated in
Desktop or dedicated SetTopBox-replacement environments.
If I were you, I'd give it a try :)
Patrick.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-dvb] writing DVB recorder, questions
2009-02-26 12:28 writing DVB recorder, questions Juhana Sadeharju
2009-02-26 12:40 ` [linux-dvb] " Zaheer Merali
2009-02-26 13:00 ` Patrick Boettcher
@ 2009-02-26 13:04 ` Brice Dubost
2 siblings, 0 replies; 4+ messages in thread
From: Brice Dubost @ 2009-02-26 13:04 UTC (permalink / raw)
To: linux-media; +Cc: linux-dvb, kouhia
Juhana Sadeharju wrote:
> Hello. I started writing a simple DVB recorder, dvbrec. Perhaps
> it later evolves to program such as Klear, which indeed is
> clearest thing I have seen among DVB programs (but misses subtitles).
>
Hello
> The complete stream has too much of data: 10 GB per hour.
> As solution, existing recorders seems to pick only parts of the
> whole stream (audio and video of one channel), missing many
> features, including subtitles. The idea seems to be to drop
> the parts that are unwanted and unknown (to author).
>
> Perfect recording requires more. My idea is to pick all what comes
> and drop the known parts: audio and video of the unwanted channels.
> This leaves subtitles, alternative languages, robovoice, epg,
> text-tv, etc. intact.
>
> Xine plays poorly the output of "dvbstream -o 8192". I yet don't
> know why. Xine people may take this early hint and think about
> playing the complete DVB stream with a configurable way to play it.
>
> Questions:
>
> (1) In dvbstream, what happens when 8192 is only PID? I have stared
> at the code but cannot figure out how the device is configured. I want
> all data from the DVB device like "dvbstream -o 8192" does.
> Then I may parse the stream on my own.
>
If you put 8192 at being the only pid you get the whole MPEG2-TS stream
of the transponder
> (2) Do I need to use demux? PES? Filters? I don't understand them.
> Quick intro would be nice as well.
>
> (3) What PID to use for subtitles? channels.conf lists numbers
> 512:650:17 as a last thing. They seem to be video PID (512) and
> audio PID (650). Where is the subtitle PID (DMX_SUBTITLE)?
>
I think you have only the audio video and pmt in this ouput format
The pid subtitle change from channel to channel.
> (4) I have followed Xine's way, but my program ends to
> "Unable to read PAT filter". The polled and read FD is a demux FD.
> How the demux should be used?
>
> I will ask more questions later. Recording video and audio has
> been easy, but subtitles, EPG, etc. are quite a different story.
>
> PS. I'm now trying to read PAT/PTM but I get nothing from
> demux FD. I'm following xine-lib, but apparently not enough well.
>
What I can propose to you is to use mumudvb. (http://mumudvb.braice.net )
It has been made for streaming channels but you can use it indirectly
for saving (and I think it can be easily modified to fit you needs)
The good point for you is that mumudvb is able to find all the pids for
audio, video, PCR, ac3, dts, aac, subtitling, teletext and the mandatory
PAT, EIT (wich contains EPG), NIT, SDT, TDT, PMT and send them
automatically with the channel. You just have to give the tuning parameters.
So you don't have to care about demuxing and sorting data. The second
point is that it can stream all the channels of a transponder, so you
can record more than one channel at the same time.
for recording you can use mplayer in the following way
mplayer -dumpfile filename.mpg -dumpstream udp://ip:port
Hope this will helps you
Best regards
--
Brice
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-26 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 12:28 writing DVB recorder, questions Juhana Sadeharju
2009-02-26 12:40 ` [linux-dvb] " Zaheer Merali
2009-02-26 13:00 ` Patrick Boettcher
2009-02-26 13:04 ` Brice Dubost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox