Mailing List Archive

Version 4.4.1 of FFmpeg ready for testing
I have merged version 4.4.1 of FFmpeg into the latest MythTV source
master branch. The merged version is in branch devel/ffmpeg-resync. I
have not merged it into the main master as yet in case there are problems.

I have run a few basic tests of playback with NVDEC, VDPAU and Standard
(ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
All tests were successful.

Anybody who is interested, please build and test it to verify that all
is well before we merge it into the main master branch.

Peter

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: [mythtv] Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Sun, 31 Oct 2021 at 16:15, Peter Bennett <pb.mythtv@gmail.com> wrote:

> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
> master branch. The merged version is in branch devel/ffmpeg-resync. I
> have not merged it into the main master as yet in case there are problems.
>
> I have run a few basic tests of playback with NVDEC, VDPAU and Standard
> (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
> All tests were successful.
>
> Anybody who is interested, please build and test it to verify that all
> is well before we merge it into the main master branch.
>
>
> Done a few tests but I see no difference. Have put it on my living room
frontend and it works OK.
If anything comes up I will let you know.

Thanks,
Klaas.
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett <pb.mythtv@gmail.com> wrote:

> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
> master branch. The merged version is in branch devel/ffmpeg-resync. I
> have not merged it into the main master as yet in case there are problems.
>
> I have run a few basic tests of playback with NVDEC, VDPAU and Standard
> (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
> All tests were successful.
>
> Anybody who is interested, please build and test it to verify that all
> is well before we merge it into the main master branch.
>
> Peter
>

I have a test system with v31 on it via PPA. It's working fine. What else
do I need to do besides building the branch devel/ffmpeg-resync. I have
built from source before, but always starting with a working system.

Jim A
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On 10/31/21 2:21 PM, James Abernathy wrote:
>
>
> On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett <pb.mythtv@gmail.com
> <mailto:pb.mythtv@gmail.com>> wrote:
>
> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
> master branch. The merged version is in branch devel/ffmpeg-resync. I
> have not merged it into the main master as yet in case there are
> problems.
>
> I have run a few basic tests of playback with NVDEC, VDPAU and
> Standard
> (ffmpeg software) decoding. Also I tested recording/LiveTV with
> Ceton.
> All tests were successful.
>
> Anybody who is interested, please build and test it to verify that
> all
> is well before we merge it into the main master branch.
>
> Peter
>
>
> I have a test system with v31 on it via PPA.  It's working fine.  What
> else do I need to do besides building the branch devel/ffmpeg-resync. 
> I have built from source before, but always starting with a working
> system.
>
> Jim A

You will need a v32-pre version (master). If you run it on v31 it will
upgrade the database to v32 and then you will not be able to go back to v31.

Peter
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Sun, Oct 31, 2021 at 3:39 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> On 10/31/21 2:21 PM, James Abernathy wrote:
>
>
>
> On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett <pb.mythtv@gmail.com>
> wrote:
>
>> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
>> master branch. The merged version is in branch devel/ffmpeg-resync. I
>> have not merged it into the main master as yet in case there are problems.
>>
>> I have run a few basic tests of playback with NVDEC, VDPAU and Standard
>> (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
>> All tests were successful.
>>
>> Anybody who is interested, please build and test it to verify that all
>> is well before we merge it into the main master branch.
>>
>> Peter
>>
>
> I have a test system with v31 on it via PPA. It's working fine. What
> else do I need to do besides building the branch devel/ffmpeg-resync. I
> have built from source before, but always starting with a working system.
>
> Jim A
>
>
> You will need a v32-pre version (master). If you run it on v31 it will
> upgrade the database to v32 and then you will not be able to go back to v31.
>
> Peter
>

I figured it would need an upgraded database. I got the upgrade done, but
it turns out that I could not run mythbackend as a service because the
official .service file assumes /usr/bin/mythbackend. When I built from
source it put the executables in /usr/local/bin. Once that was fixed it
ran.

Now to the problems I'm seeing. I have a PBS channel that has an Audio
Disabled error on mythfrontend due to an initialization error. All the
other channels work fine. In Setup/audio the testing of the channels work
and I hear sound but the error popup says Invalid audio device.

If you can't duplicate, let me know and I'll see what logs I can dig up

jim A
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Sun, Oct 31, 2021 at 4:22 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Sun, Oct 31, 2021 at 3:39 PM Peter Bennett <pb.mythtv@gmail.com> wrote:
>
>>
>> On 10/31/21 2:21 PM, James Abernathy wrote:
>>
>>
>>
>> On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett <pb.mythtv@gmail.com>
>> wrote:
>>
>>> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
>>> master branch. The merged version is in branch devel/ffmpeg-resync. I
>>> have not merged it into the main master as yet in case there are
>>> problems.
>>>
>>> I have run a few basic tests of playback with NVDEC, VDPAU and Standard
>>> (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
>>> All tests were successful.
>>>
>>> Anybody who is interested, please build and test it to verify that all
>>> is well before we merge it into the main master branch.
>>>
>>> Peter
>>>
>>
>> I have a test system with v31 on it via PPA. It's working fine. What
>> else do I need to do besides building the branch devel/ffmpeg-resync. I
>> have built from source before, but always starting with a working system.
>>
>> Jim A
>>
>>
>> You will need a v32-pre version (master). If you run it on v31 it will
>> upgrade the database to v32 and then you will not be able to go back to v31.
>>
>> Peter
>>
>
> I figured it would need an upgraded database. I got the upgrade done, but
> it turns out that I could not run mythbackend as a service because the
> official .service file assumes /usr/bin/mythbackend. When I built from
> source it put the executables in /usr/local/bin. Once that was fixed it
> ran.
>
> Now to the problems I'm seeing. I have a PBS channel that has an Audio
> Disabled error on mythfrontend due to an initialization error. All the
> other channels work fine. In Setup/audio the testing of the channels work
> and I hear sound but the error popup says Invalid audio device.
>
> If you can't duplicate, let me know and I'll see what logs I can dig up
>
> jim A
>
>
Some of the log on that audio failure.
2021-10-31 16:28:01.380638 I Player(0): Opening
'/srv/mythtv/livetv/10401_20211031202800.ts'
2021-10-31 16:28:01.741521 I AFD: codec AC3 has 2 channels
2021-10-31 16:28:01.741668 I AFD: Opened codec 0x55786d540c40, id(AC3)
type(Audio)
2021-10-31 16:28:01.741922 I AFD: codec AC3 has 2 channels
2021-10-31 16:28:01.742036 I AFD: Opened codec 0x55786d64b240, id(AC3)
type(Audio)
2021-10-31 16:28:01.759902 I VideoOutput: SetDeinterlacing (Doublerate 0):
Single High|CPU|GLSL Double None
2021-10-31 16:28:01.759949 I AFD: Using ffmpeg for video decoding
2021-10-31 16:28:01.760169 I AFD: Opened codec 0x55786d837a40,
id(MPEG2VIDEO) type(Video)
2021-10-31 16:28:01.761207 E DEnc: Could not open codec, invalid bitrate
or samplerate
2021-10-31 16:28:01.761213 E AudioOutput Error: Ac-3 Encoder
Initialization Failed
2021-10-31 16:28:01.761225 I AOBase: Opening audio device
'hdmi:CARD=PCH,DEV=0' ch 6(2) sr 48000 sf signed 32 bit reenc 1
2021-10-31 16:28:01.836411 E ALSA: no playback control PCM found on mixer
device default
2021-10-31 16:28:01.836435 E ALSA: Unable to open audio mixer. Volume
control disabled
2021-10-31 16:28:01.836526 N AudioPlayer: Disabling Audio, reason is: Ac-3
Encoder Initialization Failed

Jim A
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Sun, Oct 31, 2021 at 4:30 PM James Abernathy <jfabernathy@gmail.com>
wrote:

>
>
> On Sun, Oct 31, 2021 at 4:22 PM James Abernathy <jfabernathy@gmail.com>
> wrote:
>
>>
>>
>> On Sun, Oct 31, 2021 at 3:39 PM Peter Bennett <pb.mythtv@gmail.com>
>> wrote:
>>
>>>
>>> On 10/31/21 2:21 PM, James Abernathy wrote:
>>>
>>>
>>>
>>> On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett <pb.mythtv@gmail.com>
>>> wrote:
>>>
>>>> I have merged version 4.4.1 of FFmpeg into the latest MythTV source
>>>> master branch. The merged version is in branch devel/ffmpeg-resync. I
>>>> have not merged it into the main master as yet in case there are
>>>> problems.
>>>>
>>>> I have run a few basic tests of playback with NVDEC, VDPAU and Standard
>>>> (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton.
>>>> All tests were successful.
>>>>
>>>> Anybody who is interested, please build and test it to verify that all
>>>> is well before we merge it into the main master branch.
>>>>
>>>> Peter
>>>>
>>>
>>> I have a test system with v31 on it via PPA. It's working fine. What
>>> else do I need to do besides building the branch devel/ffmpeg-resync. I
>>> have built from source before, but always starting with a working system.
>>>
>>> Jim A
>>>
>>>
>>> You will need a v32-pre version (master). If you run it on v31 it will
>>> upgrade the database to v32 and then you will not be able to go back to v31.
>>>
>>> Peter
>>>
>>
>> I figured it would need an upgraded database. I got the upgrade done, but
>> it turns out that I could not run mythbackend as a service because the
>> official .service file assumes /usr/bin/mythbackend. When I built from
>> source it put the executables in /usr/local/bin. Once that was fixed it
>> ran.
>>
>> Now to the problems I'm seeing. I have a PBS channel that has an Audio
>> Disabled error on mythfrontend due to an initialization error. All the
>> other channels work fine. In Setup/audio the testing of the channels work
>> and I hear sound but the error popup says Invalid audio device.
>>
>> If you can't duplicate, let me know and I'll see what logs I can dig up
>>
>> jim A
>>
>>
> Some of the log on that audio failure.
> 2021-10-31 16:28:01.380638 I Player(0): Opening
> '/srv/mythtv/livetv/10401_20211031202800.ts'
> 2021-10-31 16:28:01.741521 I AFD: codec AC3 has 2 channels
> 2021-10-31 16:28:01.741668 I AFD: Opened codec 0x55786d540c40, id(AC3)
> type(Audio)
> 2021-10-31 16:28:01.741922 I AFD: codec AC3 has 2 channels
> 2021-10-31 16:28:01.742036 I AFD: Opened codec 0x55786d64b240, id(AC3)
> type(Audio)
> 2021-10-31 16:28:01.759902 I VideoOutput: SetDeinterlacing (Doublerate
> 0): Single High|CPU|GLSL Double None
> 2021-10-31 16:28:01.759949 I AFD: Using ffmpeg for video decoding
> 2021-10-31 16:28:01.760169 I AFD: Opened codec 0x55786d837a40,
> id(MPEG2VIDEO) type(Video)
> 2021-10-31 16:28:01.761207 E DEnc: Could not open codec, invalid bitrate
> or samplerate
> 2021-10-31 16:28:01.761213 E AudioOutput Error: Ac-3 Encoder
> Initialization Failed
> 2021-10-31 16:28:01.761225 I AOBase: Opening audio device
> 'hdmi:CARD=PCH,DEV=0' ch 6(2) sr 48000 sf signed 32 bit reenc 1
> 2021-10-31 16:28:01.836411 E ALSA: no playback control PCM found on mixer
> device default
> 2021-10-31 16:28:01.836435 E ALSA: Unable to open audio mixer. Volume
> control disabled
> 2021-10-31 16:28:01.836526 N AudioPlayer: Disabling Audio, reason is:
> Ac-3 Encoder Initialization Failed
>
> Jim A
>
>

I found some Standard Def Videos in m4v format that had the same audio
failure. Other Videos files in .m4v that were HD worked fine.

Jim A
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On 10/31/21 4:30 PM, James Abernathy wrote:
>
>
> On Sun, Oct 31, 2021 at 4:22 PM James Abernathy <jfabernathy@gmail.com
> <mailto:jfabernathy@gmail.com>> wrote:
>
>
>
> On Sun, Oct 31, 2021 at 3:39 PM Peter Bennett <pb.mythtv@gmail.com
> <mailto:pb.mythtv@gmail.com>> wrote:
>
>
> On 10/31/21 2:21 PM, James Abernathy wrote:
>>
>>
>> On Sun, Oct 31, 2021 at 11:18 AM Peter Bennett
>> <pb.mythtv@gmail.com <mailto:pb.mythtv@gmail.com>> wrote:
>>
>> I have merged version 4.4.1 of FFmpeg into the latest
>> MythTV source
>> master branch. The merged version is in branch
>> devel/ffmpeg-resync. I
>> have not merged it into the main master as yet in case
>> there are problems.
>>
>> I have run a few basic tests of playback with NVDEC,
>> VDPAU and Standard
>> (ffmpeg software) decoding. Also I tested
>> recording/LiveTV with Ceton.
>> All tests were successful.
>>
>> Anybody who is interested, please build and test it to
>> verify that all
>> is well before we merge it into the main master branch.
>>
>> Peter
>>
>>
>> I have a test system with v31 on it via PPA.  It's working
>> fine.  What else do I need to do besides building the branch
>> devel/ffmpeg-resync.  I have built from source before, but
>> always starting with a working system.
>>
>> Jim A
>
> You will need a v32-pre version (master). If you run it on v31
> it will upgrade the database to v32 and then you will not be
> able to go back to v31.
>
> Peter
>
>
> I figured it would need an upgraded database. I got the upgrade
> done, but it turns out that I could not run mythbackend as a
> service because the official .service file assumes
> /usr/bin/mythbackend.  When I built from source it put the
> executables in /usr/local/bin.  Once that was fixed it ran.
>
> Now to the problems I'm seeing.  I have a PBS channel that has an
> Audio Disabled error on mythfrontend due to an initialization
> error.  All the other channels work fine.  In Setup/audio the
> testing of the channels work and I hear sound but the error popup
> says Invalid audio device.
>
> If you can't duplicate, let me know and I'll see what logs I can
> dig up
>
> jim A
>
>
> Some of the log on that audio failure.
> 2021-10-31 16:28:01.380638 I  Player(0): Opening
> '/srv/mythtv/livetv/10401_20211031202800.ts'
> 2021-10-31 16:28:01.741521 I  AFD: codec AC3 has 2 channels
> 2021-10-31 16:28:01.741668 I  AFD: Opened codec 0x55786d540c40,
> id(AC3) type(Audio)
> 2021-10-31 16:28:01.741922 I  AFD: codec AC3 has 2 channels
> 2021-10-31 16:28:01.742036 I  AFD: Opened codec 0x55786d64b240,
> id(AC3) type(Audio)
> 2021-10-31 16:28:01.759902 I  VideoOutput: SetDeinterlacing
> (Doublerate 0): Single High|CPU|GLSL Double None
> 2021-10-31 16:28:01.759949 I  AFD: Using ffmpeg for video decoding
> 2021-10-31 16:28:01.760169 I  AFD: Opened codec 0x55786d837a40,
> id(MPEG2VIDEO) type(Video)
> 2021-10-31 16:28:01.761207 E  DEnc: Could not open codec, invalid
> bitrate or samplerate
> 2021-10-31 16:28:01.761213 E  AudioOutput Error: Ac-3 Encoder
> Initialization Failed
> 2021-10-31 16:28:01.761225 I  AOBase: Opening audio device
> 'hdmi:CARD=PCH,DEV=0' ch 6(2) sr 48000 sf signed 32 bit reenc 1
> 2021-10-31 16:28:01.836411 E  ALSA: no playback control PCM found on
> mixer device default
> 2021-10-31 16:28:01.836435 E  ALSA: Unable to open audio mixer. Volume
> control disabled
> 2021-10-31 16:28:01.836526 N  AudioPlayer: Disabling Audio, reason is:
> Ac-3 Encoder Initialization Failed
>
> Jim A

Thanks for letting me know. If you disable "Upconvert Stereo to 5.1
Surround" in Audio settings the problem should go away, as a temporary
work around. I will look and see why this is failing.

Peter
Re: Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
On Mon, Nov 1, 2021 at 4:26 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

> Thanks for letting me know. If you disable "Upconvert Stereo to 5.1
> Surround" in Audio settings the problem should go away, as a temporary work
> around. I will look and see why this is failing.
>
> Peter
>
Yes, that worked. Not really an issue. That's a setting I usually don't
use, so I normally turn it off.

Jim A
Re: [mythtv] Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
Peter,

FYI

I give test run for devel/ffmpeg-resync on some of my hardware to test video decode.

I briefly tested following:

- VAAPI (on n3450) for MPEG2/H264/VC1/HEVC/VP8/VP9
-VDAPU (on ION2) for H264/VC1/MPEG4
- v4l2_request (in Allwinner h6/h616, Rockchip 3328/3399, rpi4 hevc) for MPEG2/H264/VC1/HEVC/VP8/VP9
- v4l2_m2m (Amlogic s912/g12a, rpi3 h264, rpi4 h264) for MPEG2/H264/HEVC/VP8

compared with 4.3.2 we have now in master - no regressions discovered on brief tests on my test samples
(https://github.com/warpme/minimyth2/blob/master/video-test-summary.txt)

Great work!





> Wiadomo?? napisana przez Peter Bennett <pb.mythtv@gmail.com> w dniu 31.10.2021, o godz. 16:14:
>
> I have merged version 4.4.1 of FFmpeg into the latest MythTV source master branch. The merged version is in branch devel/ffmpeg-resync. I have not merged it into the main master as yet in case there are problems.
>
> I have run a few basic tests of playback with NVDEC, VDPAU and Standard (ffmpeg software) decoding. Also I tested recording/LiveTV with Ceton. All tests were successful.
>
> Anybody who is interested, please build and test it to verify that all is well before we merge it into the main master branch.
>
> Peter
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: [mythtv] Version 4.4.1 of FFmpeg ready for testing [ In reply to ]
Hi Peter,

There are now occasionally blocking artifacts when jumping around backward
and forward in a recording.
This is both with NVDEC and VDPAU. H264, 1080i50 (25 fps interlaced).

Thanks,
Klaas.





>