[mythtv-users] silence detection blocks jobqueue [ mythcommflag; silence.py ]

Stefan Pappalardo stefan.pappalardo at gmx.de
Mon Oct 20 12:00:42 UTC 2014


Am 20.10.2014 um 13:28 schrieb Roger Siddons:
> On Mon, 20 Oct 2014 11:30:49 +0100, Stefan Pappalardo <stefan.pappalardo at gmx.de> wrote:
>
>> Am 18.10.2014 um 17:59 schrieb Roger Siddons:
>>> Even though it's not detecting anything, it may take a while (3-4 minutes) to process the recording if it's long - are you allowing it long enough to finish before killing it ?
>>
>> In most cases I got aware of the job-qeue-blocking a day or two later, quite enough time to finish.
>>
>> Stefan Pappalardo
>>
>
> That's interesting. Maybe the mythffmpeg is crashing, in which case the script may well hang.
>
> Another test is to try it in a terminal with a very low audio threshold, ie:
>
> silence.py 14065 --loglevel debug --preset -50
>
> That should produce lots of detections/logging, so we can see if it starts or how far it gets.
>
> Could you also post the result of "mythffmpeg -i" on the problem recording, probably:
>
> mythffmpeg -i <path>/1043_20141015125000.mpg
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>

Here you are...

$ silence.py --chanid 1043 --starttime 20141015145000 --loglevel debug --preset -50
2014-10-20 13:55:51.154416 D [9302] Python Database Connection Trying database credentials from: /home/sjuk/config.xml
2014-10-20 13:55:51.184662 I [9302]  mythcommflag:
2014-10-20 13:55:51.191888 I [9302]  mythcommflag: Seeking chanid 1043, starttime 2014-10-15 14:50:00+02:00
2014-10-20 13:55:51.213598 I [9302]  mythcommflag: Processing: Cinema24, 2014-10-15 14:50:00+02:00, "Keinohrhase und Zweiohrküken - Komödie"
2014-10-20 13:55:51.218261 D [9302]  mythcommflag: Parsing presets from "-50"
2014-10-20 13:55:51.232856 D [9302]  mythcommflag: Threshold=-50.0, MinQuiet=0.16, MinDetect=6.0, MinLength=120.0, MaxSep=120.0, Pad=0.48
2014-10-20 13:55:51.233584 D [9302]  mythcommflag: Frame rate is 25.00, Detecting silences below 6790940 that last for at least 4 frames
2014-10-20 13:55:51.234180 D [9302]  mythcommflag: Clusters are composed of a minimum of 6 silences closer than 3000 frames and must be
2014-10-20 13:55:51.234787 D [9302]  mythcommflag: longer than 3000 frames in total. Cuts will be padded by 12 frames
2014-10-20 13:55:51.235438 D [9302]  mythcommflag: < preroll, > postroll, - advert, ? too few silences, # too short, = comm flagged
2014-10-20 13:55:51.236101 I [9302]  mythcommflag:            Start - End    Start - End      Duration         Interval    Level/Count
2014-10-20 13:55:51.236738 I [9302]  mythcommflag:           frame - frame (mmm:ss-mmm:ss) frame (mm:ss.s)  frame (mmm:ss)
2014-10-20 13:55:51.296288 D [9302]  mythcommflag:   Silence      1-    12 (  0:00-  0:00),   12 ( 0:00.5),     0 (  0:00), [4120003]
2014-10-20 13:55:51.301237 D [9302]  mythcommflag:   Silence     28-    32 (  0:01-  0:01),    5 ( 0:00.2),    17 (  0:01), [5905987]
2014-10-20 13:55:51.306109 D [9302]  mythcommflag:   Silence     46-    51 (  0:02-  0:02),    6 ( 0:00.2),    15 (  0:01), [5851353]
2014-10-20 13:55:51.316041 D [9302]  mythcommflag:   Silence     85-    88 (  0:03-  0:04),    4 ( 0:00.2),    35 (  0:01), [6247750]
2014-10-20 13:55:51.332801 D [9302]  mythcommflag:   Silence     92-   149 (  0:04-  0:06),   58 ( 0:02.3),     5 (  0:00), [4170067]
2014-10-20 13:55:51.389306 D [9302]  mythcommflag:   Silence    225-   279 (  0:09-  0:11),   55 ( 0:02.2),    77 (  0:03), [3871374]
2014-10-20 13:55:51.392573 D [9302]  mythcommflag:   Silence    281-   285 (  0:11-  0:11),    5 ( 0:00.2),     3 (  0:00), [6057235]
2014-10-20 13:55:51.769554 D [9302]  mythcommflag:   Silence   1397-  1400 (  0:56-  0:56),    4 ( 0:00.2),  1113 (  0:45), [6645606]
2014-10-20 13:55:51.771487 D [9302]  mythcommflag:   Silence   1402-  1405 (  0:56-  0:56),    4 ( 0:00.2),     3 (  0:00), [5851287]
2014-10-20 13:55:51.934125 D [9302]  mythcommflag:   Silence   1832-  1835 (  1:13-  1:13),    4 ( 0:00.2),   428 (  0:17), [6458509]
2014-10-20 13:55:51.937958 D [9302]  mythcommflag:   Silence   1839-  1846 (  1:14-  1:14),    8 ( 0:00.3),     5 (  0:00), [4693672]
2014-10-20 13:55:52.615999 D [9302]  mythcommflag:   Silence   3948-  3973 (  2:38-  2:39),   26 ( 0:01.0),  2103 (  1:24), [3553854]

$ mythffmpeg -i 1043_20141015125000.mpg
ffmpeg version 1.2.7 Copyright (c) 2000-2014 the FFmpeg developers
   built on Oct 17 2014 06:18:59 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --compile-type=profile --prefix=/usr --runprefix=/usr --disable-mythlogserver --enable-crystalhd --enable-lirc --enable-audio-alsa --enable-audio-oss --enable-dvb --enable-ivtv --enable-firewire --enable-joystick-menu --with-bindings=perl --enable-ffmpeg-pthreads --enable-pic --perl-config-opts='INSTALLDIRS=vendor' --enable-libvpx --enable-sdl --enable-libmp3lame --enable-libx264 --enable-opengl-video --enable-vaapi --enable-vdpau
   libavutil      52. 18.100 / 52. 18.100
   libavcodec     54. 92.100 / 54. 92.100
   libavformat    54. 63.104 / 54. 63.104
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 42.103 /  3. 42.103
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
[mpegts @ 0x9caa20] max_analyze_duration 5000000 reached at 5000000 microseconds
[NULL @ 0x9cd920] start time is not set in estimate_timings_from_pts
[mpegts @ 0x9caa20] PES packet size mismatch
     Last message repeated 1 times
Input #0, mpegts, from '1043_20141015125000.mpg':
   Duration: 01:39:55.21, start: 89500.844867, bitrate: 4212 kb/s
     Stream #0:0[0x20](deu): Subtitle: dvb_teletext
     Stream #0:1[0x8ff]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x900](deu): Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
     Stream #0:3[0x901](eng): Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
     Stream #0:4[0x903](deu): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
At least one output file must be specified

-- 
Stefan Pappalardo


More information about the mythtv-users mailing list