[mythtv] ffmpeg and mythtranscode

Peter Bennett pb.mythtv at gmail.com
Wed Dec 6 00:50:33 UTC 2017



On 12/05/2017 02:33 PM, Paul Harrison wrote:
> On 05/12/17 19:01, Stuart Auchterlonie wrote:
>
>> On 05/12/17 18:50, Paul Harrison wrote:
>>> On 05/12/17 17:15, Stuart Auchterlonie wrote:
>>>
>>>> On 05/12/17 00:55, John P Poet wrote:
>>>>> I thought we /had/ agreed to drop support for non-hardware recorders
>>>>> after 29?
>>>>>
>>>> With the current v4l2 devices available, do they do encoding on the
>>>> device, or do they still spit out raw frames?
>>>>
>>>> Regards
>>>> Stuart
>>>>
>>> I have one that accepts HDMI in and outputs raw video frames and audio
>>> and is seen as a standard v4l2 device. Doesn't currently work in Myth
>>> but it would be nice if it did.
>>>
>>> Paul H.
>> If you have it connected, i'd love to see the output from
>> `v4l2-ctl --all`
>>
>> Not that i'll be able to do anything about it any time soon,
>> I'm just curious at the moment.
>>
>>
>> Regards
>> Stuart
>>
>
> Back on the list :) I can't get used to Thunderbird replying to the 
> sender not the list by default it catches me out every time :(
>
> This is the output after playing a stream at 1280x720 which is about 
> the limit I can get with my aging dev system with USB2. It will 
> support a large range of output resolutions from 640x360 up to 
> 1920x1200 regardless of the input resolution though.
>
> $ v4l2-ctl --all
> Driver Info (not using libv4l2):
>         Driver name   : uvcvideo
>         Card type     : XI100DUSB-HDMI: XI100DUSB-HDMI
>         Bus info      : usb-0000:00:13.5-6
>         Driver version: 4.13.8
>         Capabilities  : 0x84200001
>                 Video Capture
>                 Streaming
>                 Extended Pix Format
>                 Device Capabilities
>         Device Caps   : 0x04200001
>                 Video Capture
>                 Streaming
>                 Extended Pix Format
> Priority: 2
> Video input : 0 (Camera 1: ok)
> Format Video Capture:
>         Width/Height      : 1280/720
>         Pixel Format      : 'YUYV'
>         Field             : None
>         Bytes per Line    : 2560
>         Size Image        : 1843200
>         Colorspace        : sRGB
>         Transfer Function : Default
>         YCbCr/HSV Encoding: Default
>         Quantization      : Default
>         Flags             :
> Crop Capability Video Capture:
>         Bounds      : Left 0, Top 0, Width 1280, Height 720
>         Default     : Left 0, Top 0, Width 1280, Height 720
>         Pixel Aspect: 1/1
> Selection: crop_default, Left 0, Top 0, Width 1280, Height 720
> Selection: crop_bounds, Left 0, Top 0, Width 1280, Height 720
> Streaming Parameters Video Capture:
>         Capabilities     : timeperframe
>         Frames per second: 50.000 (50/1)
>         Read buffers     : 0
>                      brightness (int)    : min=-100 max=100 step=1 
> default=0 value=0
>                        contrast (int)    : min=50 max=200 step=1 
> default=100 value=100
>                      saturation (int)    : min=0 max=200 step=1 
> default=100 value=100
>                             hue (int)    : min=-90 max=90 step=1 
> default=0 value=0
>
> Paul H.
> _______________________________________________

If there is a program that captures from the device and writes to std 
output or to a file, you can use the import recorder. I recently 
committed some contributed changes. I was able to successfully use a DVB 
card with standard utilities, ffmpeg and the MythTV Import recorder to 
schedule and make recordings on mythtv. It was just a proof of concept 
because MythTV supports the DVB card anyway, but using the same method 
you should be able to do something similar with other devices. See 
https://www.mythtv.org/wiki/Import_recorder

Peter


More information about the mythtv-dev mailing list