1 |
On Sun, 2008-02-24 at 11:29 +0000, Stroller wrote: |
2 |
> On 24 Feb 2008, at 11:01, Florian Philipp wrote: |
3 |
> > ... |
4 |
> > I noticed a very annoying behavior. I've got a headless server (Athlon |
5 |
> > 64 X2) which primarily acts as a personal video recorder using |
6 |
> > mencoder |
7 |
> > and at-daemon. ... |
8 |
> > |
9 |
> > ... My problem is: Neither of them can handle |
10 |
> > recording/playing video while there is any background activity. That |
11 |
> > means I have to stop the dnet-daemon and suspend any emerges on my |
12 |
> > laptop. If I don't, both mencoder and mplayer loose sync of audio and |
13 |
> > video and drops frames. |
14 |
> > ... |
15 |
> |
16 |
> Hi there, |
17 |
> |
18 |
> What capture card are you using to record TV? |
19 |
> |
20 |
> |
21 |
> I would expect most people these days to be receiving some kind of |
22 |
> digital signal - DVB-T using an aerial, DVB-S using a dish or DVB-C |
23 |
> via cable. Here in the UK, for example, it would be most common to |
24 |
> receive DVB-T "Freeview". |
25 |
> |
26 |
> Receiving a digital signal requires no encoding, practically no |
27 |
> processor resources, as the DVB signal is just mpeg, and the card is |
28 |
> simply dumping the stream to hard-disk. |
29 |
> |
30 |
> Are you playing back the video across the network? |
31 |
> What processor / RAM configurations do your PCs have? |
32 |
> What hard-drives? |
33 |
> What size are the videos (pixels) and what format (encoding, bitrate) |
34 |
> are they stored in on your hard-drive? |
35 |
> |
36 |
> I think you have to demonstrate that the problem is processor-bound. |
37 |
> My immediate thought upon reports of stuttering is to question disk |
38 |
> or network throughput. |
39 |
> |
40 |
> Stroller. |
41 |
|
42 |
It's a PCI-card for analog TV (ordinary cable with about 20 channels). |
43 |
It doesn't output mpeg but raw video/audio so I have to encode it. I use |
44 |
h.264 (1 pass, 2 threads) and lame. The settings are tweaked to allow |
45 |
25fps and a good overall quality. I could give you the settings but I |
46 |
don't think they're really important. |
47 |
|
48 |
The load is somewhere around 1.3 to 1.8. |
49 |
|
50 |
Of course I could tweak it to achieve 25fps even with dnet-client in the |
51 |
background but that would cost me quality and wouldn't fix my problem on |
52 |
the notebook. |
53 |
|
54 |
On my notebook, CPU-utilization is just around 50%. |
55 |
|
56 |
There is no apparent bottleneck on my setup. The 100MBit network is fast |
57 |
enough to transfer the files while playback is running even without |
58 |
caching. I'm decoding them on my notebook. |
59 |
|
60 |
If there were a bottleneck other than CPU-scheduling, it would hit me |
61 |
every time, not just when another process demands CPU-time. |