MythVideo playback profiles

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

MythVideo playback profiles

Post by chunter2 » Wed Jan 01, 2020 1:03 pm

Just trying to get MythVideo to work on version 30. It seems MythVideo isn't using the playback profile I've got set for recordings. Is there a different spot on the settings for this? My videos used to work fine in 0.29 on this machine and they work fine using Kodi on this machine as well.

Thanks

wesnewell
Senior
Posts: 668
Joined: Mon Jun 23, 2014 6:54 pm
Location: Wylie TX, USA
United States of America

Re: MythVideo playback profiles

Post by wesnewell » Wed Jan 01, 2020 5:34 pm

Setup>Media Settings>Video Settings>Player Settings and File Types.
BE/FE-Asrock AB350 Pro Ryzen 3 3200G, 6 atsc tuners. FE's-GF8200's Athlon II, Ryzen 3 2200G. Mythtv user since 2005.

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Sun Jan 05, 2020 1:50 pm

When I put "VDPAU Normal" in the Default Player box under Player Settings the videos won't play at all. Is there a difference between Playback Profiles and Playback plugins?

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Wed May 06, 2020 11:04 pm

I just upgraded to Myth 31 but still can't get videos to play properly. Can anyone guide me to a list of valid playback plugins that can go in the Default Player box under Player Settings?

halucigenia
Senior
Posts: 114
Joined: Tue Nov 11, 2014 11:03 am
Great Britain

Re: MythVideo playback profiles

Post by halucigenia » Thu May 07, 2020 1:45 pm

chunter2 what video card/chip do you have?
What are the containers and codecs of the video files that your are trying to play back?
Knowing that would help people to help you.

I use nvidia cards and now using the setting "NVDEC Normal" in "Setup > Video > Playback > current Video Playback Profile" in Mythtv v31 frontend it plays back all video formats, that I have so far tested, really well.
I used to have to mess about with /etc/X11/xorg.conf configurations and used VDPAU but now it does not seem to require that level of tinkering.
I even get V_Main 10@L4.1@Main /ISO/HEVC in an MKV container to play well on a Nvidia GTX 1050 ti now for example, which I could not with VDPAU in Mythv 0.29 or 30.

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Thu May 07, 2020 3:44 pm

My playback system is an old Acer Revo 1600. I'm running the nvidia-340 drivers. lspci shows the following

03:00.0 VGA compatible controller: NVIDIA Corporation C79 [ION LE] (rev b1)

The file is an mp4 with an AVC codec at 1080p 60fps. This all worked fine in Myth 0.29. Still works in kodi. Playback still works fine for OTA recording but they're mpeg2 at 1080p. I'll have to look for the NVDEC Normal playback profile. I don't remember seeing it in the list. I'm currently using VDPAU Normal.

Thanks

User avatar
mark_k
Developer
Posts: 61
Joined: Tue Jan 28, 2020 3:14 pm
Great Britain

Re: MythVideo playback profiles

Post by mark_k » Fri May 08, 2020 9:24 am

chunter2 wrote:
Thu May 07, 2020 3:44 pm
My playback system is an old Acer Revo 1600. I'm running the nvidia-340 drivers. lspci shows the following

03:00.0 VGA compatible controller: NVIDIA Corporation C79 [ION LE] (rev b1)

The file is an mp4 with an AVC codec at 1080p 60fps. This all worked fine in Myth 0.29. Still works in kodi. Playback still works fine for OTA recording but they're mpeg2 at 1080p. I'll have to look for the NVDEC Normal playback profile. I don't remember seeing it in the list. I'm currently using VDPAU Normal.

Thanks
I should just clear up a few things first.

There is really no such thing as a 'Playback plugin'. There is the internal, integrated playback code and there is the possibility, for video playback, to use an external application for media playback. Personally, I think the latter option should have been removed years ago.

If you use an external player, the 'Display profiles' are irrelevant - everything is down to the external application. So if you want consistency, you want to ensure the internal player is being used at all times.

So under Setup->Media Settings->Videos Settings->Player settings , the default settings should look something like:

Default Player: Internal
DVD Player: Internal
Enable alternate player: Unchecked

Under Setup->Media Settings->Videos Settings->File types , as an extra 'precaution', you will probably want to run through the various extensions and ensure they are using Internal and/or 'Use default player' is checked.

You can then forget about those settings, just pretend they never existed and manage playback using the playback settings/video display profiles as you would for recordings etc.

If that still doesn't work, then please post the full output from 'mythfrontend -v playback' and we can see what is going on - v31 hopefully:)

Regards
Mark

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Sat May 09, 2020 12:15 am

I assumed that's how the playback profile worked but when my videos stopped working in version 30 and 31 I got confused. I checked and all my settings are as you suggest.

Here is the output of the 'mythfrontend -v playback' command.

Code: Select all

"Display: Not requesting EGL for vendor 'NVIDIA, 1.4'"
2020-05-08 19:01:41.581844 I  Setup Interrupt handler
2020-05-08 19:01:41.581934 I  Setup Terminated handler
2020-05-08 19:01:41.581967 I  Setup Segmentation fault handler
2020-05-08 19:01:41.582000 I  Setup Aborted handler
2020-05-08 19:01:41.582031 I  Setup Bus error handler
2020-05-08 19:01:41.582064 I  Setup Floating point exception handler
2020-05-08 19:01:41.582095 I  Setup Illegal instruction handler
2020-05-08 19:01:41.582135 I  Setup Real-time signal 0 handler
2020-05-08 19:01:41.582169 I  Setup User defined signal 1 handler
2020-05-08 19:01:41.582198 I  Setup User defined signal 2 handler
2020-05-08 19:01:41.582228 I  Setup Hangup handler
2020-05-08 19:01:41.582629 C  mythfrontend version: fixes/31 [v31.0+fixes.202005011857.a2b8c26~ubuntu18.04.1] www.mythtv.org
2020-05-08 19:01:41.582660 C  Qt version: compile: 5.9.5, runtime: 5.9.5
2020-05-08 19:01:41.582873 I  Ubuntu 18.04.4 LTS (x86_64)
2020-05-08 19:01:41.582890 N  Enabled verbose msgs:  general playback
2020-05-08 19:01:41.582951 N  Setting Log Level to LOG_INFO
2020-05-08 19:01:41.594203 N  Using runtime prefix = /usr
2020-05-08 19:01:41.594236 N  Using configuration directory = /home/user/.mythtv
2020-05-08 19:01:41.594273 I  Added logging to the console
2020-05-08 19:01:41.594595 I  Assumed character encoding: en_CA.UTF-8
2020-05-08 19:01:41.595794 I  Added syslogging
2020-05-08 19:01:41.605847 I  Loading en_ca translation for module mythfrontend
2020-05-08 19:01:41.613515 I  Empty LocalHostName. This is typical.
2020-05-08 19:01:41.613560 I  Using a profile name of: 'Aspire-R1600' (Usually the same as this host's name.)
2020-05-08 19:01:41.613982 I  Start up testing connections. DB 192.168.1.xx, BE , attempt 0, status dbAwake, Delay: 2000
2020-05-08 19:01:42.730606 N  Setting QT default locale to en_CA
2020-05-08 19:01:42.730663 I  Current locale en_CA
2020-05-08 19:01:42.730840 N  Reading locale defaults from /usr/share/mythtv//locales/en_ca.xml
2020-05-08 19:01:42.885450 I  Display: Found screen 'HDMI-0'
2020-05-08 19:01:42.885520 I  Display: Using screen 'HDMI-0' (Make: Unknown Model: Unknown)
2020-05-08 19:01:42.885596 I  Display: Geometry: 1920x1080+0+0 Size(Qt): 160mmx90mm
2020-05-08 19:01:42.895204 I  DisplayX11: Ignoring interlaced mode 1920x1080 60.05i
2020-05-08 19:01:42.895262 I  DisplayX11: Ignoring interlaced mode 1920x1080 60.00i
2020-05-08 19:01:42.896090 I  Display: Available modes:
2020-05-08 19:01:42.896403 I  1920x1080 60.00   59.94   29.97   23.97
2020-05-08 19:01:42.896504 I  1680x1050 59.95
2020-05-08 19:01:42.896564 I  1600x1200 60.00
2020-05-08 19:01:42.896623 I  1440x900  74.98   59.89
2020-05-08 19:01:42.896680 I  1360x768  60.02
2020-05-08 19:01:42.896747 I  1280x1024 75.02   60.02
2020-05-08 19:01:42.896806 I  1280x960  60.00
2020-05-08 19:01:42.896859 I  1280x800  59.81
2020-05-08 19:01:42.896928 I  1280x720  60.00   59.94
2020-05-08 19:01:42.896985 I  1152x864  75.00
2020-05-08 19:01:42.897065 I  1024x768  75.03   70.07   60.00
2020-05-08 19:01:42.897146 I  800x600   75.00   72.19   60.32
2020-05-08 19:01:42.897204 I  720x480   59.94
2020-05-08 19:01:42.897285 I  640x480   75.00   72.81   59.94
2020-05-08 19:01:42.902866 N  Display: Desktop video mode: 1920x1080 60.000Hz
2020-05-08 19:01:42.902900 N  Display: Display is using sRGB colourspace
2020-05-08 19:01:43.049452 I  Starting IO manager (write)
2020-05-08 19:01:43.049640 I  Starting IO manager (read)
2020-05-08 19:01:43.050342 I  Starting process signal handler
2020-05-08 19:01:43.056987 I  Starting process manager
2020-05-08 19:01:43.151147 I  ScreenSaverX11Private: XScreenSaver support enabled
2020-05-08 19:01:43.153826 I  ScreenSaverX11Private: DPMS is disabled.
2020-05-08 19:01:43.549932 I  Power: Unknown power source
2020-05-08 19:01:43.550009 I  Power: Supported actions: Suspend,Restart,Shutdown
2020-05-08 19:01:43.574698 I  Listening on TCP 0.0.0.0:6547
2020-05-08 19:01:43.581126 I  Listening on TCP [::]:6547
2020-05-08 19:01:46.368945 I  Loading en_ca translation for module mythfrontend
2020-05-08 19:01:46.393272 E  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
                        eno: No such file or directory (2)
2020-05-08 19:01:46.393408 I  No joystick configuration found, not enabling joystick control
2020-05-08 19:01:46.393426 I  UDPListener: Enabling
2020-05-08 19:01:46.396468 I  Binding to UDP 0.0.0.0:6948
2020-05-08 19:01:46.396705 I  Binding to UDP [::]:6948
2020-05-08 19:01:46.660597 I  Using Frameless Window
2020-05-08 19:01:46.660618 I  Using Full Screen Window
2020-05-08 19:01:46.740897 I  Display: Have main widget
2020-05-08 19:01:46.740929 I  Display: Have main window
2020-05-08 19:01:46.743327 I  Display: Found screen 'HDMI-0'
2020-05-08 19:01:46.747808 I  UI Screen Resolution: 1920 x 1080
2020-05-08 19:01:47.026873 I  OpenGL: OpenGL vendor        : NVIDIA Corporation
2020-05-08 19:01:47.026910 I  OpenGL: OpenGL renderer      : ION LE/integrated/SSE2
2020-05-08 19:01:47.026927 I  OpenGL: OpenGL version       : 3.3.0 NVIDIA 340.107
2020-05-08 19:01:47.026954 I  OpenGL: Qt platform          : xcb
2020-05-08 19:01:47.027071 I  OpenGL: EGL display          : No
2020-05-08 19:01:47.027087 I  OpenGL: EGL images           : No
2020-05-08 19:01:47.027102 I  OpenGL: Qt OpenGL format     : OpenGL 3.3
2020-05-08 19:01:47.027118 I  OpenGL: Qt OpenGL surface    : RGBA: 8880 Depth: 24 Stencil: 0
2020-05-08 19:01:47.027135 I  OpenGL: Max texture size     : 8192
2020-05-08 19:01:47.027152 I  OpenGL: Max texture units    : 96
2020-05-08 19:01:47.027168 I  OpenGL: Shaders              : Yes
2020-05-08 19:01:47.027184 I  OpenGL: NPOT textures        : Yes
2020-05-08 19:01:47.027199 I  OpenGL: Multitexturing       : Yes
2020-05-08 19:01:47.027214 I  OpenGL: Rectangular textures : Yes
2020-05-08 19:01:47.027229 I  OpenGL: Buffer mapping       : Yes
2020-05-08 19:01:47.027245 I  OpenGL: Framebuffer objects  : Yes
2020-05-08 19:01:47.027259 I  OpenGL: 16bit framebuffers   : Yes
2020-05-08 19:01:47.027274 I  OpenGL: Unpack Subimage      : Yes
2020-05-08 19:01:47.027288 I  OpenGL: GL_RED/GL_R8         : Yes
2020-05-08 19:01:47.033033 I  OpenGL: Initialised MythRenderOpenGL
2020-05-08 19:01:47.033061 I  OpenGL: Using full range output
2020-05-08 19:01:47.040373 I  MythUIHelper: Pruning cache directory: /home/user/.mythtv/cache/remotecache
2020-05-08 19:01:47.043436 I  MythUIHelper: Kept 114 files, deleted 0 files, stat error on 0 files
2020-05-08 19:01:47.043587 I  MythUIHelper: Pruning cache directory: /home/user/.mythtv/cache/thumbnails
2020-05-08 19:01:47.047597 I  MythUIHelper: Kept 130 files, deleted 0 files, stat error on 0 files
2020-05-08 19:01:47.734151 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.xx:6543 (try 1 of 1)
2020-05-08 19:01:47.757739 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
2020-05-08 19:01:48.114880 I  CECAdapter: Using physical address 1.0.0.0 from EDID
2020-05-08 19:01:49.015007 E  CECAdapter: Failed to find any CEC devices.
2020-05-08 19:01:49.515891 I  CECAdapter: Closing down CEC.
2020-05-08 19:01:49.533207 E  RAOP Conn: Failed to read key from: /home/user/.mythtv/RAOPKey.rsa
2020-05-08 19:01:49.533278 E  RAOP Device: Aborting startup - no key found.
2020-05-08 19:01:49.536882 I  AirPlay: Created airplay objects.
2020-05-08 19:01:49.542047 I  Listening on TCP 0.0.0.0:5100
2020-05-08 19:01:49.542231 I  Listening on TCP [::]:5100
2020-05-08 19:01:49.611200 I  Current MythTV Schema Version (DBSchemaVer): 1361
2020-05-08 19:01:49.707371 I  VDPAUHelp: Supported/available VDPAU decoders:
2020-05-08 19:01:49.761859 I  VDPAUHelp: MPEG1 (Max size: 2048x2048)
2020-05-08 19:01:49.761912 I  VDPAUHelp: MPEG2 Simple (Max size: 2048x2048)
2020-05-08 19:01:49.761948 I  VDPAUHelp: MPEG2 Main (Max size: 2048x2048)
2020-05-08 19:01:49.761984 I  VDPAUHelp: VC1 Simple (Max size: 2048x2048)
2020-05-08 19:01:49.762026 I  VDPAUHelp: VC1 Main (Max size: 2048x2048)
2020-05-08 19:01:49.762063 I  VDPAUHelp: VC1 Advanced (Max size: 2048x2048)
2020-05-08 19:01:49.762098 I  VDPAUHelp: H264 Main (Max size: 2032x2048)
2020-05-08 19:01:49.762131 I  VDPAUHelp: H264 High (Max size: 2032x2048)
2020-05-08 19:01:49.775332 E  MythCodecContext: Failed to create hardware device 'vaapi' Error 'Generic error in an external library'
2020-05-08 19:01:49.775372 I  VAAPIDec: VAAPI functionality checked failed
Cannot load cuvidGetDecodeStatus
2020-05-08 19:01:49.865163 I  NVDECInterop: Created CUDA context
2020-05-08 19:01:49.890099 I  NVDEC: No NVDEC decoders found
2020-05-08 19:01:49.892933 I  V4L2_M2M: Device: /dev/video0 Driver: 'sonixj' Capabilities: 0x85200001
2020-05-08 19:01:49.893092 I  V4L2_M2M: No V4L2 decoders found
2020-05-08 19:01:49.894518 I  DRMPRIMECtx: DRM PRIME codecs supported: None
2020-05-08 19:01:49.894688 I  VDP: decoder<->render support: ffmpeg      null opengl opengl-yv12
2020-05-08 19:01:49.894718 I  VDP: decoder<->render support: vdpau       opengl-hw
2020-05-08 19:01:49.894746 I  VDP: decoder<->render support: vdpau-dec   null opengl opengl-yv12
2020-05-08 19:01:49.920624 N  VDP: Ignoring profile 404 (decoder nvdec is not available)
2020-05-08 19:01:49.942966 N  VDP: Ignoring profile 406 (decoder v4l2 is not available)
2020-05-08 19:01:49.948234 N  VDP: Ignoring profile 400 (decoder vaapi is not available)
2020-05-08 19:01:49.952948 N  VDP: Ignoring profile 402 (decoder vaapi is not available)
2020-05-08 19:01:50.514472 I  Bonjour: Service registration complete: name 'MythTV on Aspire-R1600' type '_airplay._tcp.' domain: 'local.'
2020-05-08 19:01:53.283819 N  Registering Internal as a media playback plugin.
2020-05-08 19:01:53.292774 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2020-05-08 19:01:53.300781 W  MMUnix:UDisks2 service found. Media Monitor does not support this yet!
2020-05-08 19:01:53.338147 I  Current MythMusic Schema Version (MusicDBSchemaVer): 1024
2020-05-08 19:01:53.465116 I  Loading en_ca translation for module mythmusic
2020-05-08 19:01:53.852047 N  Found mainmenu.xml for theme 'MythCenter-wide'
2020-05-08 19:01:53.883007 I  Checking for theme updates every hour
2020-05-08 19:01:53.884209 I  Registering HouseKeeperTask 'HardwareProfiler'.
2020-05-08 19:01:53.893549 I  Queueing HouseKeeperTask 'HardwareProfiler'.
2020-05-08 19:01:53.893582 I  Starting HouseKeeper.
2020-05-08 19:01:54.588921 I  Bonjour: Service registration complete: name 'Mythfrontend on Aspire-R1600' type '_mythfrontend._tcp.' domain: 'local.'
2020-05-08 19:02:01.257851 I  MythUIHelper: Pruning cache directory: /home/user/.mythtv/cache/remotecache
2020-05-08 19:02:01.261363 I  MythUIHelper: Kept 114 files, deleted 0 files, stat error on 0 files
2020-05-08 19:02:01.261601 I  MythUIHelper: Pruning cache directory: /home/user/.mythtv/cache/thumbnails
2020-05-08 19:02:01.265380 I  MythUIHelper: Kept 130 files, deleted 0 files, stat error on 0 files
2020-05-08 19:02:01.276828 N  Resuming idle timer
2020-05-08 19:02:01.276983 N  Resuming idle timer
2020-05-08 19:02:01.301315 I  Bonjour: De-registering service '_mythfrontend._tcp.' on 'Mythfrontend on Aspire-R1600'
2020-05-08 19:02:01.364587 W  MythPainter: 60 images not yet de-allocated.
2020-05-08 19:02:01.364753 I  Clearing OpenGL painter cache.
2020-05-08 19:02:01.370015 I  OpenGL: MythRenderOpenGL closing
2020-05-08 19:02:01.377472 I  Display: Deleting
2020-05-08 19:02:01.425426 I  RAOP Device: Cleaning up.
2020-05-08 19:02:01.425526 I  AirPlay: Cleaning up.
2020-05-08 19:02:01.426403 I  Bonjour: De-registering service '_airplay._tcp.' on 'MythTV on Aspire-R1600'
2020-05-08 19:02:01.436872 I  Shutting down UPnP client...
2020-05-08 19:02:03.736720 I  PowerDBus: Closing interfaces
2020-05-08 19:02:03.739740 I  Waiting for threads to exit.
2020-05-08 19:02:06.280974 I  Exiting
2020-05-08 19:02:06.372356 I  Removing syslogging
Thanks for the help.

User avatar
mark_k
Developer
Posts: 61
Joined: Tue Jan 28, 2020 3:14 pm
Great Britain

Re: MythVideo playback profiles

Post by mark_k » Sat May 09, 2020 7:17 pm

chunter2 wrote:
Sat May 09, 2020 12:15 am
I assumed that's how the playback profile worked but when my videos stopped working in version 30 and 31 I got confused. I checked and all my settings are as you suggest.

Here is the output of the 'mythfrontend -v playback' command.
That all looks good - but I should have been clearer:)

Can you show the full output from 'mythfrontend -v playback' from when you are trying to play a video that doesn't work (and maybe for comparison; also when playing a recording successfully).

Thanks again and regards
Mark

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Sun May 10, 2020 1:05 am

mark_k wrote:
Sat May 09, 2020 7:17 pm
That all looks good - but I should have been clearer:)

Can you show the full output from 'mythfrontend -v playback' from when you are trying to play a video that doesn't work (and maybe for comparison; also when playing a recording successfully).
I should have known what you meant as well. :) Here's a good log first and then a bad one.

Code: Select all

May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1009 (TV) TV::TV(): Creating TV object
May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1033 (TV) TV::TV(): Finished creating TV object
May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: N CoreContext mythmainwindow.cpp:2859 (PauseIdleTimer) Suspending idle timer
May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1209 (Init) TV::Init(): Created TvPlayWindow.
May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:2187 (HandleStateChange) TV::HandleStateChange(): Attempting to change from None to WatchingPreRecorded
May  9 20:42:20 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext fileringbuffer.cpp:183 (OpenFile) FileRingBuf(myth://mythtvserver/40601_20200508033500.ts): OpenFile(myth://mythtvserver/40601_20200508033500.ts, 2000 ms)
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:5710 (StartPlayer) TV::StartPlayer(): Elapsed time since TV constructor was called: 1065 ms
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: N CoreContext audioplayer.cpp:162 (ReinitAudio) AudioPlayer: Enabling Audio
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:789 (OpenFile) Player(1): Opening 'myth://mythtvserver/40601_20200508033500.ts'
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:350 (VideoDisplayProfile) VDP: Accepting: cmp() w() h() framerate() codecs() dec(vdpau) cpus(1) skiploop(enabled) rend(opengl-hw) deint(low:shader:driver,low:shader:driver)
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:364 (AvFormatDecoder) AFD: PlayerFlags: 0xc0, AudioReadAhead: 100 msec
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:5623 (syncWithAudioStretch) Player(1): Stretch Factor 1.3, disable passthru
May  9 20:42:21 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:917 (InitByteContext) AFD: Buffer size: 32768 Streamed 0 Seekable 1 Available 589824
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1985 (ScanStreams) AFD: Stream #0: ID: 0x31 Codec ID: MPEG2VIDEO Type: Video(1920x1080) Bitrate: 0
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1985 (ScanStreams) AFD: Stream #1: ID: 0x34 Codec ID: AC3 Type: Audio Bitrate: 384000
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) AFD: codec AC3 has 6 channels
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2094 (ScanStreams) AFD: Looking for decoder for AC3
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x55a1ef77b0c0, id(AC3) type(Audio)
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1985 (ScanStreams) AFD: Stream #2: ID: 0x35 Codec ID: AC3 Type: Audio Bitrate: 192000
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) AFD: codec AC3 has 2 channels
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2094 (ScanStreams) AFD: Looking for decoder for AC3
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x55a1eb3984c0, id(AC3) type(Audio)
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2258 (ScanStreams) AFD: Trying to select best video track
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2298 (ScanStreams) AFD: Selected track #0: ID: 0x31 Codec ID: MPEG2VIDEO Profile: Main Type: Video(1920x1080) Bitrate: 500000
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1366 (GetVideoFrameRate) AFD: Selected FPS: 29.97 (Avg:29.97 Mult:1 Codec:0 Container:90000 Estimated:29.97)
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:514 (LoadBestPreferences) VDP: LoadBestPreferences(1920x1080, 29.970, mpeg2video)
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:537 (LoadBestPreferences) VDP: LoadBestPreferences result: priority:1 width: height: fps: codecs:
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:541 (LoadBestPreferences) VDP: decoder:vdpau renderer:opengl-hw deint0:low:shader:driver deint1:low:shader:driver cpus:1
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext opengl/mythopenglinterop.cpp:159 (GetInteropType) OpenGLInterop: Rendering supported for frame type 'VDPAU' with VDPAU
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/mythvdpaucontext.cpp:193 (GetSupportedCodec) VDPAUDec: VDPAU supports decoding 'MPEG2VIDEO Main yuv420p 1920x1080'
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1491 (InitVideoCodec) AFD: InitVideoCodec ID:MPEG2VIDEO Type:Video Size:1920x1080
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:1573 (SetFrameInterval) Player(1): SetFrameInterval Interval:33367 Speed:1 Scan:Progressive Scan (Multiplier: 1)
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:516 (detectInterlace) Player(1): detectInterlace(Detect Scan, Interlaced Scan, 29.97, 1080) ->Interlaced Scan
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1800 (UpdateATSCCaptionTracks) AFD: EIA-608 caption service #1 is in the English language.
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1800 (UpdateATSCCaptionTracks) AFD: EIA-708 caption service #1 is in the English language.
May  9 20:42:22 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2449 (ScanStreams) AFD: Using vdpau for video decoding

Code: Select all

May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: N CoreContext mythmainwindow.cpp:2859 (PauseIdleTimer) Suspending idle timer
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1009 (TV) TV::TV(): Creating TV object
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1033 (TV) TV::TV(): Finished creating TV object
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: N CoreContext mythmainwindow.cpp:2859 (PauseIdleTimer) Suspending idle timer
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:1209 (Init) TV::Init(): Created TvPlayWindow.
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:2187 (HandleStateChange) TV::HandleStateChange(): Attempting to change from None to WatchingVideo
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext fileringbuffer.cpp:183 (OpenFile) FileRingBuf(myth://Videos@mythtvserver/2017/TRIM_20170225_153510.mp4): OpenFile(myth://Videos@mythtvserver/2017/TRIM_20170225_153510.mp4, 2000 ms)
May  9 20:40:13 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext tv_play.cpp:5710 (StartPlayer) TV::StartPlayer(): Elapsed time since TV constructor was called: 726 ms
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: N CoreContext audioplayer.cpp:162 (ReinitAudio) AudioPlayer: Enabling Audio
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:789 (OpenFile) Player(0): Opening 'myth://Videos@mythtvserver/2017/TRIM_20170225_153510.mp4'
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:350 (VideoDisplayProfile) VDP: Accepting: cmp() w() h() framerate() codecs() dec(vdpau) cpus(1) skiploop(enabled) rend(opengl-hw) deint(low:shader:driver,low:shader:driver)
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:364 (AvFormatDecoder) AFD: PlayerFlags: 0xc0, AudioReadAhead: 100 msec
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:5623 (syncWithAudioStretch) Player(0): Stretch Factor 1, allow passthru
May  9 20:40:14 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:917 (InitByteContext) AFD: Buffer size: 32768 Streamed 0 Seekable 1 Available 851968
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1985 (ScanStreams) AFD: Stream #0: ID: 0x1 Codec ID: H264 Type: Video(1920x1080) Bitrate: 16961799
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1985 (ScanStreams) AFD: Stream #1: ID: 0x2 Codec ID: AAC Type: Audio Bitrate: 96027
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2037 (ScanStreams) AFD: codec AAC has 1 channels
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2094 (ScanStreams) AFD: Looking for decoder for AAC
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2539 (OpenAVCodec) AFD: Opened codec 0x55a1ed73d900, id(AAC) type(Audio)
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2258 (ScanStreams) AFD: Trying to select best video track
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2298 (ScanStreams) AFD: Selected track #0: ID: 0x1 Codec ID: H264 Profile: Baseline Type: Video(1920x1080) Bitrate: 16961799
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1366 (GetVideoFrameRate) AFD: Selected FPS: 29.7907 (Avg:29.7907 Mult:1 Codec:0 Container:90000 Estimated:29.75)
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:514 (LoadBestPreferences) VDP: LoadBestPreferences(1920x1080, 29.791, h264)
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:537 (LoadBestPreferences) VDP: LoadBestPreferences result: priority:1 width: height: fps: codecs:
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:541 (LoadBestPreferences) VDP: decoder:vdpau renderer:opengl-hw deint0:low:shader:driver deint1:low:shader:driver cpus:1
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext opengl/mythopenglinterop.cpp:115 (GetInteropType) OpenGLInterop: Checking interop support for VDPAU
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext opengl/mythopenglinterop.cpp:159 (GetInteropType) OpenGLInterop: Rendering supported for frame type 'VDPAU' with VDPAU
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/mythvdpaucontext.cpp:189 (GetSupportedCodec) VDPAUDec: VDPAU does not support decoding 'H264 Baseline yuv420p 1920x1080'
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2361 (ScanStreams) AFD: Unavailable decoders: vdpau
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:514 (LoadBestPreferences) VDP: LoadBestPreferences(1920x1080, 29.791, h264)
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:525 (LoadBestPreferences) VDP: No useable profile. Using defaults.
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:537 (LoadBestPreferences) VDP: LoadBestPreferences result: priority: width: height: fps: codecs:
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext videodisplayprofile.cpp:541 (LoadBestPreferences) VDP: decoder:ffmpeg renderer:opengl-yv12 deint0:low deint1:low cpus:2
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2438 (ScanStreams) AFD: Using 2 CPUs for decoding
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:1491 (InitVideoCodec) AFD: InitVideoCodec ID:H264 Type:Video Size:1920x1080
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:1573 (SetFrameInterval) Player(0): SetFrameInterval Interval:33568 Speed:1 Scan:Progressive Scan (Multiplier: 1)
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext mythplayer.cpp:516 (detectInterlace) Player(0): detectInterlace(Detect Scan, Interlaced Scan, 29.7907, 1080) ->Interlaced Scan
May  9 20:40:15 Aspire-R1600 mythfrontend.real: mythfrontend[7342]: I CoreContext decoders/avformatdecoder.cpp:2449 (ScanStreams) AFD: Using ffmpeg for video decoding
I see the problem is 'VDPAU does not support decoding 'H264 Baseline yuv420p 1920x1080'' but I'm not sure why it's not valid any more.

Thanks

User avatar
mark_k
Developer
Posts: 61
Joined: Tue Jan 28, 2020 3:14 pm
Great Britain

Re: MythVideo playback profiles

Post by mark_k » Sun May 10, 2020 4:32 pm

OK - here's what I think is happening - and what has changed.

Per the NVIDIA docs, H.264 baseline is not supported by the ION LE chipset (which has VDPAU featureset B). Although confusingly it is not explicitly mentioned as supported for feature set C and beyond - though it is in later driver versions. (I think baseline support may have been a later addition to the VDPAU spec).

The MythTV VDPAU code was re-written for 0.31.

The old code in 0.29 and 0.30 just assumed everything H.264 was 'high' profile and did not actually check what was supported by the card - the check was whether it could create a decoder or not.

While that check in the MythTV source was not changed for 0.30, the FFmpeg code changed considerably internally - and it now performs a capability check for the H264 profile - which I'm assuming fails.

For 0.31, the MythTV VDPAU code now performs a similar capability check - which is clearly failing in the log you provided.

For reference, Kodi still works because like the old MythTV/FFmpeg code, it assumes everything is H264 High and does not check support.

So in summary:-

- 0.31 fails because MythTV rejects the H264 baseline profile as it is not reported as supported by the driver.
- 0.30 fails because FFmpeg rejects the H264 baseline profile...
- 0.29 and Kodi work - because they don't check and the driver is lying about its VDPAU support:)

Can you post the full output of 'vdpauinfo'?

I'm assuming it will show the same level of support as your first mythfrontend log.

In terms of fixing playback, I will need to have a think about what a suitable workaround might be.

I'm assuming from your logs that you are using a packaged version and not compiling from source?

Regards
Mark

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Sun May 10, 2020 11:21 pm

mark_k wrote:
Sun May 10, 2020 4:32 pm
Can you post the full output of 'vdpauinfo'?
Glad you found something that explains thing. Here's the output of vdpauinfo.

Code: Select all

display: :0.0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  340.107  Thu May 24 21:44:57 PDT 2018

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12
422     4096  4096  UYVY YUYV

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0  8192  2048  2048
MPEG2_SIMPLE                    3  8192  2048  2048
MPEG2_MAIN                      3  8192  2048  2048
H264_BASELINE                  --- not supported ---
H264_MAIN                      41  8190  2032  2048
H264_HIGH                      41  8190  2032  2048
VC1_SIMPLE                      1  8190  2048  2048
VC1_MAIN                        2  8190  2048  2048
VC1_ADVANCED                    4  8190  2048  2048
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R10G10B10A2       8192  8192    y  Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     4096
VIDEO_SURFACE_HEIGHT             y         1     4096
CHROMA_TYPE                      y
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y
CSC_MATRIX                       y
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y
LUMA_KEY_MAX_LUMA                y
I'm using Mythbuntu with the myth ppa's as my install.

Thanks again.

User avatar
stuarta
Developer
Posts: 211
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: MythVideo playback profiles

Post by stuarta » Mon May 11, 2020 1:50 pm

Mark,

Would it make sense to fall forward to H264_MAIN ??

I'm making an assumption here that H264_MAIN is in fact a superset
of H264_BASELINE

Regards
Stuart

chunter2
Junior
Posts: 26
Joined: Tue Mar 04, 2014 7:53 pm
Canada

Re: MythVideo playback profiles

Post by chunter2 » Thu May 14, 2020 1:24 pm

I'm assuming this would be a coding change and not something I can change in some configuration file?

Thanks

User avatar
mark_k
Developer
Posts: 61
Joined: Tue Jan 28, 2020 3:14 pm
Great Britain

Re: MythVideo playback profiles

Post by mark_k » Thu May 14, 2020 4:00 pm

Yes - it needs a change in the code.

I need to find the time to test it however. It's easy enough to change the MythTV internal check - but we also need to 'lie' to FFmpeg about the profile to use (otherwise VDPAU initialisation will just fail inside FFmpeg). I'm not sure whether this will have other side effects.

Regards
Mark

Post Reply