[mythtv-users] HDPVR, Sonoff and find-zero-byte.pl

Rajil Saraswat rajil.s at gmail.com
Fri Sep 7 04:27:25 UTC 2018


On 09/06/2018 10:50 PM, Greg Oliver wrote:
> On Thu, Sep 6, 2018 at 10:40 PM Rajil Saraswat <rajil.s at gmail.com
> <mailto:rajil.s at gmail.com>> wrote:
>
>     On 09/06/2018 10:12 PM, Greg Oliver wrote:
>>     The audio/video works fine for a few minutes before it dies, so
>>     this "Unable to set audio input" message seems to be a red herring.
>>
>>
>>     Just make sure it is less than 9'
>>
>     9 inch is quite short. I will try this 6 inch cable,
>     https://www.amazon.com/gp/product/B000067RMY
>
>
> That is 9 feet, not inches

Well spotted. I am using 3 feet cables at the moment
(https://www.amazon.com/gp/product/B00UNZ9HLU).

>  
>
>>
>>     for i in  /sys/module/hdpvr/parameters/* ; do echo -ne "$i --
>>     $(cat $i)\n"; done
>>
>>
>
>     /sys/module/hdpvr/parameters/boost_audio -- N
>     /sys/module/hdpvr/parameters/default_audio_input -- 3
>     /sys/module/hdpvr/parameters/default_video_input -- 3
>     /sys/module/hdpvr/parameters/hdpvr_debug -- 1
>
>
> Those are not valid values ::
>
> parm:           video_nr:video device number (-1=Auto) (array of int)
> parm:           hdpvr_debug:enable debugging output (int)
> parm:           default_video_input:default video input: 0=Component /
> 1=S-Video / 2=Composite (uint)
> parm:           default_audio_input:default audio input: 0=RCA back /
> 1=RCA front / 2=S/PDIF (uint)
> parm:           boost_audio:boost the audio signal (bool)
>
> set the parameters in a module file and use :
> default_video_input 0
> default_audio_input 0
>
>  
Yeah, not sure why the default values were wrong. Fixed that,

# for i in  /sys/module/hdpvr/parameters/* ; do echo -ne "$i -- $(cat
$i)\n"; done
/sys/module/hdpvr/parameters/boost_audio -- N
/sys/module/hdpvr/parameters/default_audio_input -- 0
/sys/module/hdpvr/parameters/default_video_input -- 0
/sys/module/hdpvr/parameters/hdpvr_debug -- 1


>     The video is being fed through component input and stereo audio
>     using rear input.
>
>>     Also, if you just `cat /dev/video1 > ~/test.ts` and ctrl-c after
>>     5 minutes, do you get a 5 minute video?
>>      
>     It played well for about 4 minutes and then locked up (ts file
>     file stopped increasing).
>
>
> Anything in dmesg @ that time?  Did the video resolution change or
> audio codec change?  I remember having issues with a
>
Unfortunately, there was nothing in dmesg when lockup happened. The only
way i can get an output is when i kill the 'cat' and then dmesg gives
out that -110 message.

>  
>
>
>     The video is being fed through component input and stereo audio
>     using rear input.
>
>>     Your big log also says you do not have a channel change script...
>     Right, I am testing this with a single channel before deploying.
>
>
> v4l2-utils  -d /dev/video1 -l
>
v4l2-ctl  -d /dev/video0 -l

User Controls

                     brightness (int)    : min=0 max=255 step=1
default=128 value=128 flags=slider
                       contrast (int)    : min=0 max=255 step=1
default=64 value=64 flags=slider
                     saturation (int)    : min=0 max=255 step=1
default=64 value=64 flags=slider
                            hue (int)    : min=0 max=30 step=1
default=15 value=14 flags=slider
                      sharpness (int)    : min=0 max=255 step=1
default=128 value=128 flags=slider

Codec Controls

                    stream_type (menu)   : min=0 max=1 default=1 value=1
flags=update
                 audio_encoding (menu)   : min=0 max=4 default=3 value=4
flags=update
                 video_encoding (menu)   : min=0 max=2 default=2 value=2
             video_bitrate_mode (menu)   : min=0 max=1 default=1 value=0
flags=update
                  video_bitrate (int)    : min=1000000 max=13500000
step=100000 default=6500000 value=9000000
             video_peak_bitrate (int)    : min=1100000 max=20200000
step=100000 default=9000000 value=13500000

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180906/df48230e/attachment.html>


More information about the mythtv-users mailing list