[mythtv] LiveTV creates empty file

Angela angela.schmid at wolke7.net
Sat Jul 5 09:03:42 UTC 2014

> On 5 July 2014 10:36, Angela <angela.schmid at wolke7.net> wrote:
> > I have always seen empty files created since 0.26 (0.27.1/2) with
> > LiveTV is still functioning OK.
> > I noticed on my latest test on master that it happens when changing
> > I changed capturecard.signal_timeout and channel_timeout to 20000msec,
> > but didn't have a positive effect.
> >
> > Which debuglevel should I use to create a logfile?
> there's always an empty file created in liveTV, it's the dummy recording.
> nothing to worry about. It will be deleted the next time the auto-expire
> run (it wasn't always deleted due to an issue Ive resolved in
> 6e5d8cff72fb116d707d9cb165aec023c7fd3b27)
> what playback issue are you having?
> -v file --loglevel=debug on the backend would show which file are created
> and when written to.
> I recommend commenting in libs/libmythbase/threadedfilewriter.cpp
> uint ThreadedFileWriter::Write(const void *data, uint count)
> line #302:
>     LOG(VB_FILE, LOG_DEBUG, LOC + QString("Write(*, %1) total %2 cnt %3")
>             .arg(count,4).arg(totalBufferUse).arg(writeBuffers.size()));
> that's very verbose with mpegts streams as it shows every 188 bytes
> and ultimately adds very little useful information

ls -ltr
-rw-r--r-- 1 mythtv mythtv                 0 Jul  5 01:17
10038_20140704231759.mpg (first time tuning)
-rw-r--r-- 1 mythtv mythtv 32334120 Jul  5 01:18 10038_20140704231800.mpg
(within a second later a correct file is created)
-rw-r--r-- 1 mythtv mythtv 45848534 Jul  5 01:20 10039_20140704232010.mpg
(same mplex, no empty file)
-rw-r--r-- 1 mythtv mythtv               0 Jul  5 01:23
10020_20140704232313.mpg (other mplex, empty file)
-rw-r--r-- 1 mythtv mythtv  54483643  Jul  5 01:23 10020_20140704232393.mpg
(within a second later a correct file is created)

So you are saying this is normal?

Viewing LiveTV works fine, although I have very small audio/video hickups at
1/1.5 second, which I thought could be caused by the time used to create the
extra file.
I use LiveTV rarely, just thought as you are so deep in the code right now,
that you might have an idea.

> -v file --loglevel=debug
Only file?


More information about the mythtv-dev mailing list