FAQ  •  Register  •  Login

[MetadataExtractionCoordinator] Cannot read metadata of file

<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Tue May 30, 2017 11:47 pm

[MetadataExtractionCoordinator] Cannot read metadata of file

Hi All,

New user to Serviio Media Streaming Server as well as to the forum.

I am having an issue with my Video files being recognized by Serviio. I have searched both the forums as well as via google and was not able to find a solution nor was able to figure out the issue. Please understand that I am not new to Linux. Following is the information related to the issue:

My environment is Ubuntu 17.04 (Zesty). I tried both with and without docker with the same issue (I did see a thread in the forum with the same error, but that was a docker installation with the solution being docker related as well).

2017-05-30 11:17:48,674 INFO [MediaServer] ------------------------------------------------------------------------
2017-05-30 11:17:48,676 INFO [MediaServer] Serviio DLNA media streaming server v 1.8 (rev. cc55b64588cc)
2017-05-30 11:17:48,676 INFO [MediaServer] Petr Nejedly 2009-2015
2017-05-30 11:17:48,676 INFO [MediaServer] http://www.serviio.org
2017-05-30 11:17:48,676 INFO [MediaServer]
2017-05-30 11:17:48,676 INFO [MediaServer] Java 1.8.0_131-Oracle Corporation amd64
2017-05-30 11:17:48,676 INFO [MediaServer] OS Linux 4.10.0-19-generic
2017-05-30 11:17:48,676 INFO [MediaServer] File encoding: UTF-8
2017-05-30 11:17:48,732 INFO [MediaServer] Headless mode enabled: true
2017-05-30 11:17:48,732 INFO [MediaServer] User: serviio
2017-05-30 11:17:48,732 INFO [MediaServer] User home dir: /home/serviio
2017-05-30 11:17:48,732 INFO [MediaServer] Temp dir: /tmp
2017-05-30 11:17:48,732 INFO [MediaServer] ------------------------------------------------------------------------
2017-05-30 11:17:48,742 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2017-05-30 11:17:48,750 INFO [DatabaseManager] Using DERBY database language
2017-05-30 11:17:49,674 INFO [WebServer] Socket buffer set to 65535 bytes

--- snip ---

2017-05-30 11:15:17,959 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item </full/path/and/filename>.mp4
2017-05-30 11:15:17,959 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: </full/path/and/filename>.mp4, ignore case: false
2017-05-30 11:15:17,960 DEBUG [MediaItemDAOImpl] Media item </full/path/and/filename>.mp4 doesn't exist in DB yet
2017-05-30 11:15:17,960 DEBUG [MediaFileIndexer] File not in Library, will add it
2017-05-30 11:15:17,960 DEBUG [LibraryHelper] Checking if the file is complete using file lock
2017-05-30 11:15:17,961 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: </full/path/and/filename>.mp4
2017-05-30 11:15:17,961 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: </full/path/and/filename>.mp4
2017-05-30 11:15:17,961 DEBUG [ProcessExecutor] Starting ffmpeg -i </full/path/and/filename>.mp4
2017-05-30 11:15:18,098 DEBUG [FFmpegMetadataRetriever] Retrieving H264 profile/level for file '</full/path/and/filename>.mp4'
2017-05-30 11:15:18,098 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve H264 header for file: </full/path/and/filename>.mp4
2017-05-30 11:15:18,099 DEBUG [ProcessExecutor] Starting ffmpeg -i </full/path/and/filename>.mp4 -frames:v 1 -c:v copy -f h264 -bsf:v h264_mp4toannexb -an pipe:
2017-05-30 11:15:18,216 DEBUG [FFmpegMetadataRetriever] File '</full/path/and/filename>.mp4' has H264 profile HIGH, levels [{RF=2.1, H=3}] and 4 ref frames
2017-05-30 11:15:18,216 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve thumbnail for file: </full/path/and/filename>.mp4
2017-05-30 11:15:18,216 DEBUG [ProcessExecutor] Starting ffmpeg -threads 0 -ss 120 -i </full/path/and/filename>.mp4 -an -frames:v 1 -f image2 pipe:
2017-05-30 11:15:18,429 DEBUG [OpenSubtitlesService] Generating hash code for opensubtitles.org for file <filename>.mp4
2017-05-30 11:15:18,429 WARN [MetadataExtractionCoordinator] Cannot read metadata of file </full/path/and/filename>.mp4 via extractor EMBEDDED. Message: No such device
2017-05-30 11:15:18,429 DEBUG [PendingFilesCache] Adding file '</full/path/and/filename>.mp4' for the pending files cache

The above is for one video file (filename with path is about 85 characters long - there are video files that have longer as well as shorter lengths), but every video file regardless of format gives the same error and I end up having an empty Video list.

This is the error:
[MetadataExtractionCoordinator] Cannot read metadata of file <filename> via extractor EMBEDDED. Message: No such device

Any help is highly appreciated.

PS: Photos and Music get added successfully without any issues.

Thank You.
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Thu Jun 01, 2017 6:30 am

Re: [MetadataExtractionCoordinator] Cannot read metadata of

bump! Anyone?

Please help!!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jun 01, 2017 8:00 am

Re: [MetadataExtractionCoordinator] Cannot read metadata of

can you post output of

ffmpeg -i file.mp4
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Fri Jun 02, 2017 2:22 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

Thanks for responding Petr. Output below and in the following post.

ffmpeg -i filename.mp4

ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MAH00142.MP4':
Metadata:
major_brand : MSNV
minor_version : 22675568
compatible_brands: MSNVmp42isom
creation_time : 2016-09-18T20:09:48.000000Z
Duration: 00:05:08.31, start: 0.000000, bitrate: 2983 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/iec61966-2-4), 1280x720 [SAR 1:1 DAR 16:9], 2852 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2016-09-18T20:09:48.000000Z
handler_name : Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2016-09-18T20:09:48.000000Z
handler_name : Sound Media Handler
At least one output file must be specified
Last edited by sridharp on Fri Jun 02, 2017 2:23 pm, edited 1 time in total.
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Fri Jun 02, 2017 2:22 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

ffmpeg -i filename.mkv

ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, matroska,webm, from 'Kanche.mkv':
Metadata:
encoder : libebml v0.8.0 + libmatroska v0.9.0
creation_time : 2016-01-24T20:53:58.000000Z
Duration: 02:10:12.06, start: 0.000000, bitrate: 1003 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 704x396 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
BPS : 942428
BPS-eng : 942428
DURATION : 02:54:42.000000000
DURATION-eng : 02:54:42.000000000
NUMBER_OF_FRAMES: 262050
NUMBER_OF_FRAMES-eng: 262050
NUMBER_OF_BYTES : 1234816932
NUMBER_OF_BYTES-eng: 1234816932
_STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-24 18:22:13
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-24 18:22:13
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
Metadata:
BPS : 63846
BPS-eng : 63846
DURATION : 02:54:41.998000000
DURATION-eng : 02:54:41.998000000
NUMBER_OF_FRAMES: 451422
NUMBER_OF_FRAMES-eng: 451422
NUMBER_OF_BYTES : 83654605
NUMBER_OF_BYTES-eng: 83654605
_STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-24 18:22:13
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-24 18:22:13
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
At least one output file must be specified
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jun 04, 2017 2:35 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

that looks ok.

I'm not sure what the error message comes from, a quick google says something about sockets. Maybe the Java doesn't like something about your OS/Kernel when invoking ffmpeg.
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Mon Jun 05, 2017 1:25 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

Petr,

What else can I do to troubleshoot the issue and fix it?

Thanks.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jun 05, 2017 2:41 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

what if you try openjdk instead on Oracle Java?
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Tue Jun 06, 2017 12:36 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

I am currently using Open-JDK. I have not installed Oracle Java. I didn't think there would be an issue, so I installed Serviio using the wiki for Ubuntu 15.04: http://wiki.serviio.org/doku.php?id=how ... buntu15-04

java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.17.04.1-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

I will try with Oracle Java and see if that helps. Will update once I check.

Thanks.
<<

sridharp

Serviio newbie

Posts: 7

Joined: Tue May 30, 2017 11:17 pm

Post Tue Jun 06, 2017 12:58 pm

Re: [MetadataExtractionCoordinator] Cannot read metadata of

Still the same issue :cry:

# java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Excerpt of log file (took it out of DEBUG mode, since it doesn't seem to provide any further information):

2017-06-06 08:51:13,687 WARN [MetadataExtractionCoordinator] Cannot read metadata of file </full/path/to/filename>.avi via extractor EMBEDDED. Message: No such device

Output of ffmpeg -i for the .avi file:

ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, avi, from 'Rangam (2011) - DVDRip - XviD - AC3 - [DDR].avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 02:38:59.53, start: 0.000000, bitrate: 1311 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 672x288 [SAR 1:1 DAR 7:3], 1078 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 224 kb/s
At least one output file must be specified

Anything else I can try? The MetadataExtractionCoordinator says "No such device"; what device is it referring to?

Thanks.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 34 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.