Video file plays audio but no video

I have a number of video downloads from youtube and the most recent file only plays sound, no video.

I have used the same method to download these files (youtube-dl) and they are saved on NAS where they are served by Twonky media server to my home network.

I usually play these files with Vero4K plugged into my network. The problem file shows a thumbnail as do all the others when I scroll to the titles but on selection of the problem file I only get the audio.

All but the most recent download works as expected with the Vero and the problem file plays perfectly when played directly using VLC form NFS. I have downloaded it several times and always get the same problem. I have quoted below the results of checking the metadata using mediainfo:-

localhost:~> mediainfo J\ \ S\ \ Bach\ Cantata-\ \'\(Wir\ danken\ dir\,\ Gott\,\ wir\ danken\ dir\)\'\ BWV\ 29-\ all\ of\ bach-CwGWocp80-o.mp4 
General
Complete name                            : J  S  Bach Cantata- '(Wir danken dir, Gott, wir danken dir)' BWV 29- all of bach-CwGWocp80-o.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 123 MiB
Duration                                 : 25 min 0 s
Overall bit rate                         : 685 kb/s
Writing application                      : Lavf58.45.100

Video
ID                                       : 1
Format                                   : AV1
Format/Info                              : AOMedia Video 1
Format profile                           : Main@L3.1
Codec ID                                 : av01
Duration                                 : 25 min 0 s
Bit rate                                 : 552 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.024
Stream size                              : 98.8 MiB (81%)
Title                                    : ISO Media file produced by Google Inc.
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : av1C

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 25 min 0 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 22.9 MiB (19%)
Title                                    : ISO Media file produced by Google Inc. Created on: 03/05/2019.
Default                                  : Yes
Alternate group                          : 1

Where should I look for problems.

Grateful for all help!
Budge

Hi,

To get a better understanding of the problem you are experiencing we need more information from you. The best way to get this information is for you to upload logs that demonstrate your problem. You can learn more about how to submit a useful support request here.

Depending on the used skin you have to set the settings-level to standard or higher, in summary:

  • enable debug logging at settings->system->logging

  • reboot the OSMC device twice(!)

  • reproduce the issue

  • upload the log set (all configs and logs!) either using the Log Uploader method within the My OSMC menu in the GUI or the ssh method invoking command grab-logs -A

  • publish the provided URL from the log set upload, here

Thanks for your understanding. We hope that we can help you get up and running again shortly.

OSMC skin screenshot:

Thanks Tom.

Hi Tom,
Here is the url from the device:-

https://paste.osmc.tv/

I ran two adjacent files for a minute or so. They both were downloaded in the same manner as far as I can recall but from different sources. The command I use is as follows:-

youtube-dl -f ā€˜bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/bestā€™ CwGWocp80-o

I am not sure about block quotes so hope this is what you want.

Many thanks for your reply,
Budge

Forgot to mention, first play has no video, only audio, the second plays as required.
The thumbnail for the problem file appears in OSMC but not in my NAS directory so there is something different but I have no idea what!

well that last attempt didnā€™t seem to work but now I have a message for the url as follows:-
URL:https://paste.osmc.tv/{ā€œmessageā€:"Document exceeds maximum length.

Please advise!

Reboot twice and try again.

The file is encoded as AV1, which is a relatively new codec.
Support for this format will come with Kodi 19, but be limited to software decoding only.

Hi Sam,
Not sure if you received my logs or I messed up. I note the reference to AV1 but were my other files using this? I assume not but how should I ensure I get an acceptable version from my above youtube-dl download command meanwhile? Very strange because this file has been on YT for a good while so is not new.

Perhaps youtube-dl recently added support for AV1 downloading.
There should be a way (I am sure they can advise) to specify the format (h264/vp9 are both supported on Vero).

You can check the format with youtube-dl -F and then define the one you want with youtube-dl -f

Hi Sam and fzinken and thanks for the help here. I have been confused by formats and am trying to understand AV1.

Checking the formats available on the particular video I was working on, here is an extract of the resolutions available:-

135 mp4 854x480 480p 606k , avc1.4d401e, 25fps, video only, 53.84MiB
247 webm 1280x720 720p 849k , vp9, 25fps, video only, 74.95MiB
136 mp4 1280x720 720p 851k , avc1.4d401f, 25fps, video only, 74.03MiB
398 mp4 1280x720 720p 1001k , av01.0.05M.08, 25fps, video only, 99.16MiB
18 mp4 640x360 360p 439k , avc1.42001E, 25fps, mp4a.40.2@ 96k (44100Hz), 78.60MiB (best)

I have no idea why ā€œbestā€ is shown for the 18 format line but believe my earlier tries must have been using 398 which is shown as av01 because of the file size I recognized when downloading. I have now run this again with 136 and it seems to be working. I say ā€œseemsā€ as I am not at the right machine to try it till this evening.
I wish I were wiser but many thanks for the help with identifying the problem.
Regards,
Budge

All your assumptions are right (I am also not sure why the low resolution is marked "best).
But I suggest to take the vp9 version (247), but you also need to pick an audio track (otherwise you have audio but no video).
I tried youtube-dl -f 247+251 CwGWocp80-o and that played fine on the Vero.

1 Like

Hey, I have the same issue with videos that would only play audio. Also I see no metadata or thumbnails for those videos.

It seems strange that Vero still does not support these? I run Kodi 19.1 and tried to disable all hardware acceleration but they still do not play?

Reading from the previous instructions I enabled the debug logs and reproduced, logs are here: https://paste.osmc.tv/ofutefigih

There are two videos in the logs:
/home/osmc/CriticalVideo/music/Billy Hlapeto x D3MO ā€¦ Beli noshti (OFFICIAL VIDEO).mp4
/home/osmc/CriticalVideo/music/Ava Max - Kings & Queens [Official Music Video].mp4

I could find the following that confirms AV1 problem:

2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/osmc/CriticalVideo/music/Ava Max - Kings & Queens [Official Music Video].mp4':
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:   Metadata:
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     major_brand     : isom
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     minor_version   : 512
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     compatible_brands: isomiso2mp41
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     encoder         : Lavf58.29.100
2021-11-17 10:46:33.027 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:   Duration: 00:02:42.45, start: 0.000000, bitrate: 1682 kb/s
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     Stream #0:0(und): Video: av1 (av01 / 0x31307661), none, 1920x1080, 1550 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default)
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     Metadata:
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:       handler_name    : ISO Media file produced by Google Inc.
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:     Metadata:
2021-11-17 10:46:33.028 T:2916     INFO <general>: ffmpeg[0xb19b76e0X]:       handler_name    : ISO Media file produced by Google Inc.

2021-11-17 10:46:33.556 T:2596     INFO <general>: GLES: Maximum texture width: 4096
2021-11-17 10:46:33.558 T:2916     INFO <general>: CVideoPlayerVideo::OpenStream - Creating codec: 32797
2021-11-17 10:46:33.558 T:2916    DEBUG <general>: CDVDVideoCodecAmlogic::Opening: codec 32797 profile:-99 extra_size:16
2021-11-17 10:46:33.558 T:2916    DEBUG <general>: DVDVideoCodecAmlogic: Unknown hints.codec(32797
2021-11-17 10:46:33.558 T:2916    DEBUG <general>: CDVDVideoCodecFFmpeg::Open() Unable to find codec 32797
2021-11-17 10:46:33.558 T:2916    ERROR <general>: CVideoPlayerVideo::OpenStream - could not open video codec
2021-11-17 10:46:33.558 T:2916  WARNING <general>: OpenStream - Unsupported stream 0. Stream disabled.

I am still facing the same error on a RPi 4 with Kodi 19.3 (latest osmc)

2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:   Metadata:
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:     major_brand     : isom
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:     minor_version   : 512
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:     compatible_brands: isomiso2mp41
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:     encoder         : Lavf57.83.100
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:   Duration: 00:42:47.55, start: 0.000000, bitrate: 856 kb/s
2022-01-28 20:16:02.586 T:664      INFO <general>: ffmpeg[0x6121188X]:     Stream #0:0(und): Video: av1 (av01 / 0x31307661), none, 1280x720, 723 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
2022-01-28 20:16:02.587 T:664      INFO <general>: ffmpeg[0x6121188X]:     Metadata:
2022-01-28 20:16:02.587 T:664      INFO <general>: ffmpeg[0x6121188X]:       handler_name    : VideoHandler
2022-01-28 20:16:02.587 T:664      INFO <general>: ffmpeg[0x6121188X]:     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
2022-01-28 20:16:02.587 T:664      INFO <general>: ffmpeg[0x6121188X]:     Metadata:
2022-01-28 20:16:02.587 T:664      INFO <general>: ffmpeg[0x6121188X]:       handler_name    : SoundHandler
2022-01-28 20:16:02.587 T:664     DEBUG <general>: CDVDDemuxFFmpeg::AddStream ID: 0
2022-01-28 20:16:02.587 T:664     DEBUG <general>: CDVDDemuxFFmpeg::AddStream ID: 1
2022-01-28 20:16:02.587 T:664     DEBUG <general>: CDVDInputStreamFile::SetReadRate - set cache throttle rate to 117718 bytes per second
2022-01-28 20:16:02.587 T:664      INFO <general>: Opening stream: 0 source: 256
2022-01-28 20:16:02.587 T:664      INFO <general>: Creating video codec with codec id: 32797
2022-01-28 20:16:02.587 T:664     DEBUG <general>: CDVDVideoCodecDRMPRIME::Open - unable to find decoder for codec 32797
2022-01-28 20:16:02.587 T:664     DEBUG <general>: CDVDVideoCodecFFmpeg::Open() Unable to find codec 32797
2022-01-28 20:16:02.587 T:664     ERROR <general>: CVideoPlayerVideo::OpenStream - could not open video codec
2022-01-28 20:16:02.587 T:664   WARNING <general>: OpenStream - Unsupported stream 0. Stream disabled.

Is there any solution for this? Can I try something?
Disabling HW acceleration did not do the trick.
On windows and Kodi the video plays just fine.

That file is AV1. There is no hardware support for AV-1 decoding on Raspberry Pi and OSMC doesnā€™t support software decoding yet. We can add software decode support in the future ā€“ but performance will be limited.

Hi Sam,
Two follow up questions:
Is there any hardware support for AV-1 in Vero 4K?
Is there any HAT or plug-in board which can add this support to RPi?

No.

Unlikely. Try the RPi forum.

I think FFmpeg supports AV1 so you could always re-encode your files.