Some files not appearing to be streamed

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Dwebtron
Posts: 2
Joined: Thu Sep 21, 2023 5:41 am

Some files not appearing to be streamed

Post by Dwebtron »

I set up UMS on a headless Ubuntu server I have, and am trying to play video using the web browser (:9001 or :9002 both exhibit this) as well as a Roku device attached to my TV. The video is a .avi file.

I think this might be the relevant part of the logs when I try to watch on my Roku:
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "mp4" failed to match supported line f:m4a m:audio/x-m4a
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "mp4" failed to match supported line f:flac m:audio/x-flac
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "mp4" failed to match supported line f:mp3 m:audio/mpeg
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "mp4" failed to match supported line f:wav m:audio/wav
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "mp4" failed to match supported line f:wma m:audio/x-ms-wma
TRACE 2023-09-20 17:33:08.125 [jupnp-netty-worker 1] net.pms.formats.FormatFactory Matched format MPG to "/12tb/Movies/Wall Street.avi"
TRACE 2023-09-20 17:33:08.126 [jupnp-netty-worker 1] net.pms.database.MediaTableAudiotracks Adding audio from the database: Audio Codec: AC3, Bitrate: 448000, Channels: 6, Sample Frequency: 48000 Hz
TRACE 2023-09-20 17:33:08.126 [jupnp-netty-worker 1] net.pms.database.MediaTableVideoMetadata Searching VIDEO_METADATA with "HikariProxyPreparedStatement@602817629 wrapping prep53197: SELECT * FROM VIDEO_METADATA WHERE VIDEO_METADATA.FILEID = ? AND (VIDEO_METADATA.IMDBID IS NOT NULL OR VIDEO_METADATA.TMDBID IS NOT NULL) LIMIT 1 {1: CAST(240 AS BIGINT)}"
TRACE 2023-09-20 17:33:08.128 [jupnp-netty-worker 1] net.pms.util.SubtitleUtils Searching for external subtitles for Wall Street.avi
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.database.MediaTableThumbnails Found existing thumbnail with ID 356 in THUMBNAILS, setting the THUMBID in the FILES table
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.database.MediaTableFiles THUMBID updated to 356 for /12tb/Movies/Wall Street.avi
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.dlna.DLNAResource Adding new child "Wall Street.avi" with class "RealFile"
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.formats.FormatFactory Getting engine for resource "Wall Street.avi"
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.formats.FormatFactory Returning compatible engine "FFmpeg Video"
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:mpegts v:h264 a:aac-lc|lpcm|mp2|mp3 n:2 m:video/vnd.dlna.mpeg-tts
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:m4a m:audio/x-m4a
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:flac m:audio/x-flac
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:mp3 m:audio/mpeg
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:wav m:audio/wav
TRACE 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.configuration.FormatConfiguration Format "avi" failed to match supported line f:wma m:audio/x-ms-wma
DEBUG 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.dlna.DLNAResource File "Wall Street.avi" will not be streamed because it is not supported by the renderer Roku 4 (NSP 6-7)
DEBUG 2023-09-20 17:33:08.130 [jupnp-netty-worker 1] net.pms.dlna.DLNAResource Final verdict: "Wall Street.avi" will be transcoded with engine "FFmpeg Video" with mime type "video/avi"
Using ffmpeg reports this:
root@ubuntu-nas:/12tb/Movies# ffmpeg 'Wall Street.avi'
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Output #0, avi, to 'Wall Street.avi':
Output file #0 does not contain any stream
which is quite strange because it opens with no problem using VLC on my Mac or Windows machine after I download it over FTP on the server. What gives? If I remember correctly this file has worked in the past when my Windows machine was the server, but that was ages ago and this hard drive is no longer in that machine to test. It's also strange to me that it's failing on both Roku AND the UMS web server, so I'm not sure if it's a profile issue? :shrug:
Attachments
ums_dbg_2023-09-20-17-34.zip
(684.96 KiB) Downloaded 39 times
User avatar
mik_s
Moderator
Posts: 1018
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Some files not appearing to be streamed

Post by mik_s »

You have an old version of FFmpeg that does not have some of the features needed for HLS transcoding used by the Roku. It was probably installed as part of your OS but is a lite version.
The one I have on windows is "ffmpeg version 2023-07-02-git-50f34172e0-essentials_build-***.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers" (*** = www, just so it does not show as a link).
This version should have been installed along with UMS and will be in the bin folder of the installation folder.

I know little about Linux so can only point you in the right direction but not give a definite solution.
I don't see anything being transcoded in your logs so can't see the command line to do it, but going from the bit you posted there is reference to "/usr/include/x86_64-linux-gnu".
To use the version UMS includes I would guess it would have to be something like "/UMS/bin/..." (complete guess though)

You can alter the path to FFmpeg by changing it in the UMS.conf file.

Code: Select all

# Path to ffmpeg (absolute or relative from project.binaries.dir)
# Example: /usr/bin/ffmpeg
# Default:
#     Win: win32/ffmpeg.exe
#     Mac: osx/ffmpeg
#     Linux: ffmpeg + system PATH
ffmpeg_path =
If UMS did not install that version of FFmpeg then you might have to install it yourself.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
boss
Posts: 340
Joined: Thu Jun 30, 2016 1:07 pm

Re: Some files not appearing to be streamed

Post by boss »

I am running UMS on a Gentoo Linux headless server and it works fine.
I see that you have all the ffmpeg options enabled which you need.

The only difference is that as mik_s says, your ffmpeg version is older.
Your version: 4.4.2
My version: 4.4.4

It may not sound like much difference in versions but 4.4.2 is from 2021 and 4.4.4 is from 2023.
Try and upgrade your ffmpeg to the latest (4.4.4) version.

This is my ffmpeg output:
satan ~ # ffmpeg
ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Gentoo 12.3.1_p20230526 p2)
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --docdir=/usr/share/doc/ffmpeg-4.4.4-r3/html --mandir=/usr/share/man --enable-shared --cc=i686-pc-linux-gnu-gcc --cxx=i686-pc-linux-gnu-g++ --ar=i686-pc-linux-gnu-ar --nm=i686-pc-linux-gnu-nm --strip=i686-pc-linux-gnu-strip --ranlib=i686-pc-linux-gnu-ranlib --pkg-config=i686-pc-linux-gnu-pkg-config --optflags='-O2 -march=i686 -pipe -fomit-frame-pointer' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libmfx --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --disable-libvorbis --disable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --disable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --disable-libtheora --disable-libtwolame --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=i686 --disable-doc --disable-htmlpages --enable-manpages
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Hyper fast Audio and Video encoder
Dwebtron
Posts: 2
Joined: Thu Sep 21, 2023 5:41 am

Re: Some files not appearing to be streamed

Post by Dwebtron »

I appreciate the replies, but I think it might not be the ffmpeg version. The file is from 2009ish and has always worked fine even on other version/platforms of UMS. This is my first time running headless UMS on Linux, though. I'm able to play the file on any platform (using VLC) and have even used the windows-based version of UMS with my Roku to watch this exact file before.

In any case, I've also tried disabling ffmpeg and using other encoders and it still doesn't appear in the list. Is there something else I could try? I'm not opposed to upgrading the version of ffmpeg on ubuntu, but a quick cursory search seems to indicate it won't be super easy to do and with a file this old I'm doubtful that a 2010s build of ffmpeg could display / play this but the 2021 build could not. Remember - the issue here is that this file isn't even in the list of available videos for me to watch. It's not being displayed on the UMS web-app OR Roku.
boss
Posts: 340
Joined: Thu Jun 30, 2016 1:07 pm

Re: Some files not appearing to be streamed

Post by boss »

Why not try using the UMS included version of ffmpeg as suggested by mik_s.
That is simple to do and you don't have to make any changes to your server,

In your UMS.conf file just change:
# Path to ffmpeg (absolute or relative from project.binaries.dir)
# Example: /usr/bin/ffmpeg
# Default:
# Win: win32/ffmpeg.exe
# Mac: osx/ffmpeg
# Linux: ffmpeg + system PATH
ffmpeg_path =

To:
# Path to ffmpeg (absolute or relative from project.binaries.dir)
# Example: /usr/bin/ffmpeg
# Default:
# Win: win32/ffmpeg.exe
# Mac: osx/ffmpeg
# Linux: ffmpeg + system PATH
ffmpeg_path = (path to your UMS folder)/linux/ffmpeg
boss
Posts: 340
Joined: Thu Jun 30, 2016 1:07 pm

Re: Some files not appearing to be streamed

Post by boss »

I was just looking through your log files.
Most of the videos were not streamed (say renderer not supported) and then transcoding was tried which failed.
The issue could be your mediarender.conf file perhaps.
User avatar
mik_s
Moderator
Posts: 1018
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Some files not appearing to be streamed

Post by mik_s »

I misunderstood what you were saying that first post. I thought you meant that nothing was streaming not that some files were not showing up. Did not help that I don't have filters set up for Linux in my log viewer so did not see the transcoding command-line at first.

You should definitely sort out the FFmpeg version. The roku conf has it set to transcode everything using HLS. This is also what is used by the web player.
I think the conf is like this as I remember something about a firmware update to rokus that would not allow seeking in transcoded videos, and its format support was limited anyway so easier to set it to transcode everything. With HLS it should appear to be streaming.

For HLS to work you do need that specific version of FFmpeg to work. I don't know if it is a custom build or just the full version with all the features.

I'm not sure if this related to videos not showing though but could be. I'll have to have a closer look in the logs to see what the file-list is being sent to the renderer, but will have to be when I have more time. To make it easier can you let me know a few videos that show and a few that don't so I can pinpoint them in the logs.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Post Reply