Problems with adding Video files Serviio 2/Ubuntu
I've just installed Serviio 2.0 on my Ubuntu Linux machine. The audio (mp3) files were scanned and added fine, but the video (mp4, m4v, avi) files aren't getting added, instead I'm getting errors that the file formats are not supported which is obviously incorrect.
System Info:
2019-06-07 10:06:28,804 INFO [MediaServer] Serviio DLNA media streaming server v 2.0 (rev. 2dd498f22a77)
2019-06-07 10:06:28,804 INFO [MediaServer] Petr Nejedly 2009-2018
2019-06-07 10:06:28,804 INFO [MediaServer] http://www.serviio.org
2019-06-07 10:06:28,804 INFO [MediaServer]
2019-06-07 10:06:28,804 INFO [MediaServer] Java 1.8.0_212-Oracle Corporation amd64
2019-06-07 10:06:28,804 INFO [MediaServer] OS Linux 4.15.0-50-generic
2019-06-07 10:06:28,804 INFO [MediaServer] File encoding: UTF-8
2019-06-07 10:06:28,881 INFO [MediaServer] Headless mode enabled: true
2019-06-07 10:06:28,881 INFO [MediaServer] User: root
2019-06-07 10:06:28,881 INFO [MediaServer] User home dir: /root
2019-06-07 10:06:28,881 INFO [MediaServer] Temp dir: /tmp
ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-avisynth --enable-cuda --enable-cuvid --enable-libdrm --enable-ffplay --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
To me it looks like an error somewhere with ffmpeg, but I can't see any forum posts exactly the same, yet. I have permissions to the files and the directories.
Error with ffmpeg -i
ffmpeg -i /media/movies/Elf.mp4
...
/media/movies/Elf.mp4: Permission denied
Errors in Serviio Log:
2019-06-07 10:56:37,075 DEBUG [MediaFileIndexer] Found file '/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v', checking if it's already in the Library
2019-06-07 10:56:37,075 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,075 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v, ignore case: false
2019-06-07 10:56:37,076 DEBUG [MediaItemDAOImpl] Media item /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v doesn't exist in DB yet
2019-06-07 10:56:37,076 DEBUG [MediaFileIndexer] File not in Library, will add it
2019-06-07 10:56:37,076 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2019-06-07 10:56:37,076 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,076 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,076 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:38,562 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v). Message: Unknown video f
ile type.
2019-06-07 10:56:38,562 DEBUG [PendingFilesCache] Adding file '/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v' for the pending files cache
2019-06-07 10:56:38,562 DEBUG [MediaFileIndexer] Found file '/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4', checking if it's already in the Library
2019-06-07 10:56:38,562 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,562 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4, ignore case: false
2019-06-07 10:56:38,563 DEBUG [MediaItemDAOImpl] Media item /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4 doesn't exist in DB yet
2019-06-07 10:56:38,563 DEBUG [MediaFileIndexer] File not in Library, will add it
2019-06-07 10:56:38,563 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2019-06-07 10:56:38,563 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,563 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,563 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:40,066 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4). Message:
Unknown video file type.
2019-06-07 10:56:40,066 DEBUG [PendingFilesCache] Adding file '/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4' for the pending files cache
System Info:
2019-06-07 10:06:28,804 INFO [MediaServer] Serviio DLNA media streaming server v 2.0 (rev. 2dd498f22a77)
2019-06-07 10:06:28,804 INFO [MediaServer] Petr Nejedly 2009-2018
2019-06-07 10:06:28,804 INFO [MediaServer] http://www.serviio.org
2019-06-07 10:06:28,804 INFO [MediaServer]
2019-06-07 10:06:28,804 INFO [MediaServer] Java 1.8.0_212-Oracle Corporation amd64
2019-06-07 10:06:28,804 INFO [MediaServer] OS Linux 4.15.0-50-generic
2019-06-07 10:06:28,804 INFO [MediaServer] File encoding: UTF-8
2019-06-07 10:06:28,881 INFO [MediaServer] Headless mode enabled: true
2019-06-07 10:06:28,881 INFO [MediaServer] User: root
2019-06-07 10:06:28,881 INFO [MediaServer] User home dir: /root
2019-06-07 10:06:28,881 INFO [MediaServer] Temp dir: /tmp
ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-avisynth --enable-cuda --enable-cuvid --enable-libdrm --enable-ffplay --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
To me it looks like an error somewhere with ffmpeg, but I can't see any forum posts exactly the same, yet. I have permissions to the files and the directories.
Error with ffmpeg -i
ffmpeg -i /media/movies/Elf.mp4
...
/media/movies/Elf.mp4: Permission denied
Errors in Serviio Log:
2019-06-07 10:56:37,075 DEBUG [MediaFileIndexer] Found file '/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v', checking if it's already in the Library
2019-06-07 10:56:37,075 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,075 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v, ignore case: false
2019-06-07 10:56:37,076 DEBUG [MediaItemDAOImpl] Media item /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v doesn't exist in DB yet
2019-06-07 10:56:37,076 DEBUG [MediaFileIndexer] File not in Library, will add it
2019-06-07 10:56:37,076 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2019-06-07 10:56:37,076 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,076 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:37,076 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/movies/Harry Potter and the Deathly Hallows Part 1.m4v
2019-06-07 10:56:38,562 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v). Message: Unknown video f
ile type.
2019-06-07 10:56:38,562 DEBUG [PendingFilesCache] Adding file '/media/movies/Harry Potter and the Deathly Hallows Part 1.m4v' for the pending files cache
2019-06-07 10:56:38,562 DEBUG [MediaFileIndexer] Found file '/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4', checking if it's already in the Library
2019-06-07 10:56:38,562 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,562 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4, ignore case: false
2019-06-07 10:56:38,563 DEBUG [MediaItemDAOImpl] Media item /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4 doesn't exist in DB yet
2019-06-07 10:56:38,563 DEBUG [MediaFileIndexer] File not in Library, will add it
2019-06-07 10:56:38,563 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2019-06-07 10:56:38,563 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,563 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:38,563 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4
2019-06-07 10:56:40,066 WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4). Message:
Unknown video file type.
2019-06-07 10:56:40,066 DEBUG [PendingFilesCache] Adding file '/media/movies/National Geographic - The Greatest Flight-vhv7HGH4Qi0_x264.mp4' for the pending files cache