回復 50# ksng

咦, squeeze default kernel 2.6.32 都 support 得到?
我仲以為要上 wheezy ~

TOP

回復 51# keaniny
I have to compile the v4l-dvb drivers from source.

TOP

亦搵到另一條有趣的 thread! 好似兮香港人問的....

Can I record two programs in the same freq into two files?
http://forum.videolan.org/viewtopic.php?f=4&t=102828

Can I record two programs in the same freq into two ...
toylet 發表於 2012-11-25 17:41


Even if it can, it's not quite practical since the recordings of the 2 programs need to start and end at the same time. For example we cannot start recording Jade at 10:00 and then Pearl at 10:30.

My recording scripts can also record multiple programs simultaneously and they can start at same or different times. For this purpose, I wrote 2 small C programs: relay.c and tscat.c. 'relay' simply read TS data from stdin, and store into temporarily buffers (total buffer size is limited so new data would overwrite old ones) and is ready for piping to multiple receivers via fifos. 'tscat' is a problem, which when runs, sends a signal to 'relay', asking it to pipe TS data to it. 'tscat' then simply rewrite the TS data to stdout.

Let's say we need to record 2 programs: ATV Home starting at 10:00, and TVB Jade starting at 10:30. Then at 10:00, my script would perform the followings:
1. run 'tzap -c /etc/dvb/channels.conf "jade"' to get the tuner tuned.
2. run 'dvbsnoop -adapter 0 -s ts -tsraw -b | /tmp/relay 0'. TS data are then sent to 'relay' continuously.
3. tscat 0 /tmp/fifo0_16713 | cvlc fd://0 --programs=11 --sout file/ts:/common/tv/file1.ts 1>/dev/null 2>&1

tscat sends a signal to relay requesting it to pipe the TS data into fifo /tmp/fifo0_16713. tscat then pipe the data to vlc via stdout.

At 10:30, recording of TVB Jade starts as follows simply by another instance of tscat + vlc:
tscat 0 /tmp/fifo0_23456 | cvlc fd://0 --programs=1 --sout file/ts:/common/tv/file2.ts 1>/dev/null 2>&1

This tscat instance sends a signal to relay, request it to send the TS data also to it via /tmp/fifo0_23456. Hence relay will then be sending data to 2 clients.

My script takes care of the time duration of each recording. When one of the programs finishes recording, it kills its corresponding tscat + vlc. If all recordings of an adapter has finished, it kills tzap + dvbsnoop as well.

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

回復 54# toylet
absolutely no problem in recording all the audio and subtitle tracks. I also have no issue in watching or recording all the channels, including Jade/Home/Pearl/World, etc, except CCTV & SZTV which have h264 compatibility issue.

My channels.conf is as follows:


jade:482000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_
32:HIERARCHY_NONE:811:0:1
pearl:482000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1
_32:HIERARCHY_NONE:841:0:2
home:482000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_
32:HIERARCHY_NONE:111:0:11
world:482000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1
_32:HIERARCHY_NONE:161:0:16
j2:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:H
IERARCHY_NONE:0:0:82
inews:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_3
2:HIERARCHY_NONE:0:0:83
jadehd:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_
32:HIERARCHY_NONE:0:0:85
hdtv:602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:
HIERARCHY_NONE:0:0:12
cctv:602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:
HIERARCHY_NONE:0:0:15
sztv:602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_1_2:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_8:
HIERARCHY_NONE:0:0:17

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

回復 56# toylet
Don't have DVBSNOOP has much update. You may download a source tarball from http://sourceforge.net/projects/dvbsnoop, then untar it, run ./autogen.sh, make, make.

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP