DaOptika 0 Posted January 2, 2018 Share Posted January 2, 2018 (edited) Hi, I'm currently missing duration information of all my scanned files. When scanning, I get the following error for every file: 2018-01-02 13:14:19.863 Error App: Error in ffprobe *** Error Report *** Version: 3.2.60.0 Command line: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/MediaBrowser.Server.Mono.exe Operating system: Unix 3.10.20.2 64-Bit OS: False 64-Bit Process: False User Interactive: False Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Fri Dec 9 14:39:03 UTC 2016) Processor count: 4 Program data path: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/ProgramData-Server Application directory: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby System.Exception: ffprobe failed - streams and format are both null. at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 System.Exception at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 I installed ffmpeg manually: 2018-01-02 13:13:00.637 Info MediaEncoder: Attempting to update encoder path to /usr/local/bin/ffmpeg_static/ffmpeg. pathType: Custom 2018-01-02 13:13:00.637 Info MediaEncoder: Running /usr/local/bin/ffmpeg_static/ffmpeg -version 2018-01-02 13:13:00.705 Info MediaEncoder: ffmpeg info: ffmpeg version 3.4.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-7) 20170920 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 2018-01-02 13:13:00.707 Info MediaEncoder: FFMpeg: /usr/local/bin/ffmpeg_static/ffmpeg 2018-01-02 13:13:00.707 Info MediaEncoder: FFProbe: /usr/local/bin/ffmpeg_static/ffprobe 2018-01-02 13:13:00.707 Info MediaEncoder: Validating media encoder at /usr/local/bin/ffmpeg_static/ffmpeg 2018-01-02 13:13:00.708 Info MediaEncoder: Running /usr/local/bin/ffmpeg_static/ffmpeg -decoders 2018-01-02 13:13:00.788 Info MediaEncoder: Decoder available: mpeg2video 2018-01-02 13:13:01.088 Info MediaEncoder: Decoder available: ac3 2018-01-02 13:13:01.102 Info MediaEncoder: Decoder available: aac 2018-01-02 13:13:01.120 Info MediaEncoder: Decoder available: mp3 2018-01-02 13:13:01.124 Info MediaEncoder: Decoder available: h264 2018-01-02 13:13:01.129 Info MediaEncoder: Decoder available: hevc 2018-01-02 13:13:01.176 Info MediaEncoder: Running /usr/local/bin/ffmpeg_static/ffmpeg -encoders 2018-01-02 13:13:01.251 Info MediaEncoder: Encoder available: libx264 2018-01-02 13:13:01.253 Info MediaEncoder: Encoder available: libx265 2018-01-02 13:13:01.256 Info MediaEncoder: Encoder available: mpeg4 2018-01-02 13:13:01.259 Info MediaEncoder: Encoder available: msmpeg4 2018-01-02 13:13:01.263 Info MediaEncoder: Encoder available: libvpx 2018-01-02 13:13:01.267 Info MediaEncoder: Encoder available: libvpx-vp9 2018-01-02 13:13:01.273 Info MediaEncoder: Encoder available: aac 2018-01-02 13:13:01.279 Info MediaEncoder: Encoder available: libmp3lame 2018-01-02 13:13:01.286 Info MediaEncoder: Encoder available: libopus 2018-01-02 13:13:01.294 Info MediaEncoder: Encoder available: libvorbis 2018-01-02 13:13:01.302 Info MediaEncoder: Encoder available: srt 2018-01-02 13:13:01.376 Info MediaEncoder: Encoder available: h264_v4l2m2m 2018-01-02 13:13:01.381 Info MediaEncoder: Encoder available: libwebp 2018-01-02 13:13:01.386 Info MediaEncoder: Encoder available: ac3 2018-01-02 13:13:01.386 Info MediaEncoder: Encoder validation complete --> Looks good to me. What is causing ffprobe to fail? All my files are mkv (matroska) & x264 -> no big deal Thanks & best regards DaOptika Edited January 2, 2018 by DaOptika Link to comment Share on other sites More sharing options...
Quiptix 2 Posted January 2, 2018 Share Posted January 2, 2018 I would consider using the qpkg in the pinned message. I'm using that one several weeks now and works just as fine as the community version from the QNAP forums. ffmpeg and ffprobe are embedded in that package. Vincent Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 2, 2018 Author Share Posted January 2, 2018 As far as I understood this is 64bit only? I'm using a Qnap TS-431P with a 32bit ARM. Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 2, 2018 Share Posted January 2, 2018 Yes the new package is 64-bit only. How exactly did you install ffmpeg? Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 2, 2018 Author Share Posted January 2, 2018 - I downloaded the armhf-build from here: https://johnvansickle.com/ffmpeg/ - Extracted the package and copied to: /usr/local/bin/ffmpeg_static/ - Then I set the Execute-Bit for every file - I set the transcode-path in Emby to /usr/local/bin/ffmpeg_static/ Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 2, 2018 Share Posted January 2, 2018 Are you sure you set the execute bit for the ffprobe file because it looks like it's having trouble launching ffprobe. That's what it looks like from the log file at least. Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 2, 2018 Author Share Posted January 2, 2018 (edited) Yes, I set it for every file Edited January 2, 2018 by DaOptika Link to comment Share on other sites More sharing options...
Quiptix 2 Posted January 2, 2018 Share Posted January 2, 2018 As far as I understood this is 64bit only? I'm using a Qnap TS-431P with a 32bit ARM. Sorry, missed that in the logs. My bad... Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 2, 2018 Share Posted January 2, 2018 Are you able to execute ffprobe from outside of emby? Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 2, 2018 Author Share Posted January 2, 2018 I'm a linux noob: How can I execute it manually? - "ls" shows a star behind every file -> this means file is executable, right? - "ffprobe" -> command not found... Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 2, 2018 Author Share Posted January 2, 2018 Update: ./ffprobe does the job, what does that mean? [/share/CE_CACHEDEV1_DATA/Multimedia/ffmpeg_static] # ffprobe -sh: ffprobe: command not found [/share/CE_CACHEDEV1_DATA/Multimedia/ffmpeg_static] # ./ffprobe ffprobe version 3.4.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-7) 20170920 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 Simple multimedia streams analyzer usage: ffprobe [OPTIONS] [INPUT_FILE] You have to specify one input file. Use -h to get full help or, even better, run 'man ffprobe'. Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) Another update: I have now added some *.avi and *.mp4 files for testing: No ffprobe error here, runtime is extracted flawlessly -> The problem is just for all the *.mkv files! Then I found the following bug report from 5 years ago: https://trac.ffmpeg.org/ticket/2642 Summary of the "bug": "ffprobe reports "N/A" as the value for "duration_ts" and "duration" for the video stream if the stream is in a mkv container (it does report the duration of the file as a whole though)." Conclusion: "The matroska container does not contain such information in the header, so the only way to get stream duration is to use the format-level information (format=duration) or compute it from the packet timestamps (but this needs demuxing)." I can't be the first to stumble upon that, right?! Edited January 3, 2018 by DaOptika Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 3, 2018 Share Posted January 3, 2018 No, that's not the problem because based on the error it sounds like no info is being returned from the probe at all, at least when we run it. Can you grab the same command line that is used from the server log and run it manually? thanks. Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) Wich one is the command? I can't find it in the log, when doing a scan it is spammed only with that: 2018-01-03 09:24:47.465 Error App: Error in ffprobe *** Error Report *** Version: 3.2.60.0 Command line: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/MediaBrowser.Server.Mono.exe Operating system: Unix 4.2.8.0 64-Bit OS: False 64-Bit Process: False User Interactive: False Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Fri Dec 9 14:39:03 UTC 2016) Processor count: 4 Program data path: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/ProgramData-Server Application directory: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby System.Exception: ffprobe failed - streams and format are both null. at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 System.Exception at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 2018-01-03 09:24:47.698 Error App: Error in ffprobe *** Error Report *** Version: 3.2.60.0 Command line: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/MediaBrowser.Server.Mono.exe Operating system: Unix 4.2.8.0 64-Bit OS: False 64-Bit Process: False User Interactive: False Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Fri Dec 9 14:39:03 UTC 2016) Processor count: 4 Program data path: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/ProgramData-Server Application directory: /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby System.Exception: ffprobe failed - streams and format are both null. at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 System.Exception at Emby.Server.MediaEncoding.Encoder.MediaEncoder+<GetMediaInfoInternal>d__61.MoveNext () [0x00141] in <9660b9518eb6424a914dff2c53832dbf>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo+<ProbeVideo>d__15`1[T].MoveNext () [0x00173] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <aeeebe8fb847489fa4b079e4547c7edd>:0 at MediaBrowser.Providers.Manager.MetadataService`2+<RunCustomProvider>d__26[TItemType,TIdType].MoveNext () [0x000d7] in <4c8e7501588b4a22955bf3cb6abe85f5>:0 Could it have something to do with "Processor count: 4"? I have the 431P that only has a dualcore... Edited January 3, 2018 by DaOptika Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 3, 2018 Share Posted January 3, 2018 Right ok, you'd have to enable debug logging and then restart the server. Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 3, 2018 Author Share Posted January 3, 2018 There you go: [~] # /share/CE_CACHEDEV1_DATA/.qpkg/ffmpeg/ffprobe -i file:"/share/CE_CACHEDEV1_DATA/Entertain/Musik Konzerte, Musicals live/Tenacious D - The Complete Masterworks 2/Tenacious D - The Complete Masterworks 2.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format ffprobe version 3.3.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-4) 20170820 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 { Illegal instruction [~] # /share/CE_CACHEDEV1_DATA/.qpkg/ffmpeg/ffprobe -i file:"/share/CE_CACHEDEV1_DATA/Entertain/Musik Konzerte, Musicals live/Within Temptation - Black Symphony - 2009 - 1080i/Within Temptation - Black Symphony - 2009 - 1080i.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format ffprobe version 3.3.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-4) 20170820 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 { Segmentation fault Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 3, 2018 Author Share Posted January 3, 2018 (edited) Okay it even fails a 900MB *.mp4 file with short path name: [~] # /share/CE_CACHEDEV1_DATA/.qpkg/ffmpeg/ffprobe -i file:"/share/CE_CACHEDEV1_DATA/Entertain/Test/test.mp4" -v info ffprobe version 3.3.4-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2017 the FFmpeg developers built with gcc 6.4.0 (Debian 6.4.0-4) 20170820 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Segmentation fault With Debug logging of ffprobe: ... [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414910800 @ 76067, ctts: 0, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414914400 @ 76068, ctts: 10800, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414918000 @ 76069, ctts: 0, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414921600 @ 76069, ctts: 0, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414925200 @ 76070, ctts: 7200, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] shifted frame pts, curr_cts: 414928800 @ 76071, ctts: 0, ctts_count: 76072 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] Unknown dref type 0x206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] Processing st: 1, edit list 0 - media time: 0, duration: 203318287 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3f3b600] Before avformat_find_stream_info() pos: 885724966 bytes read:3987162 seeks:1 nb_streams:2 [h264 @ 0x3f3c850] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x3f3c850] nal_unit_type: 8, nal_ref_idc: 3 [h264 @ 0x3f3c850] nal_unit_type: 9, nal_ref_idc: 0 [h264 @ 0x3f3c850] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x3f3c850] nal_unit_type: 8, nal_ref_idc: 3 [h264 @ 0x3f3c850] nal_unit_type: 6, nal_ref_idc: 0 Last message repeated 1 times [h264 @ 0x3f3c850] nal_unit_type: 5, nal_ref_idc: 3 [h264 @ 0x3f3c850] ct_type:1 pic_struct:0 [h264 @ 0x3f3c850] Reinit context to 960x544, pix_fmt: yuv420p [h264 @ 0x3f3c850] no picture Segmentation fault Edited January 3, 2018 by DaOptika Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 3, 2018 Share Posted January 3, 2018 are the ffmpeg builds right for your architecture? Link to comment Share on other sites More sharing options...
DaOptika 0 Posted January 3, 2018 Author Share Posted January 3, 2018 yes, it's a 32bit 1,7-GHz-Dual-Core-Cortex-A15 processor with an ARMv7-A architecture -> armhf should be the right thing I have found a few files where ffprobe is extracting the info flawlessly: Unfortunately that's only the case for about 2% of my files. I couldn't find the difference between the files though... I also tried different versions of FFMPEG, also the one from the qnap club repo -> same for all Link to comment Share on other sites More sharing options...
Solution DaOptika 0 Posted January 4, 2018 Author Solution Share Posted January 4, 2018 Problem solved! I just found out that QNAP also uses ffmepg for it's media library. When changing the transcoder path to that installation (pretty old version of ffmpeg, 2.8.5), everything runs perfectly!! If anybody else has this problem, just change the transcoding path to: /mnt/ext/opt/medialibrary/bin/ffmpeg 2018-01-04 10:44:48.536 Info MediaEncoder: Attempting to update encoder path to /mnt/ext/opt/medialibrary/bin/. pathType: Custom 2018-01-04 10:44:48.541 Info MediaEncoder: Running /mnt/ext/opt/medialibrary/bin/ffmpeg -version 2018-01-04 10:44:48.674 Info MediaEncoder: ffmpeg info: ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.2 (crosstool-NG linaro-1.13.1-4.8-2013.10 - Linaro GCC 2013.10) 20131014 (prerelease) configuration: --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --cpu=armv7-a --target-os=linux --disable-yasm --disable-static --enable-shared --enable-gpl --enable-libmp3lame --enable-libx264 --disable-encoder=zmbv --enable-libvo-aacenc --enable-libsoxr --enable-version3 --enable-nonfree --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-decoder=eac3 --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-encoder=dca --enable-asm --enable-neon --extra-ldflags='-L/root/daily_build/arm_al5/4.3.4/Model/TS-X41/build/RootFS/usr/local/medialibrary/lib -Wl,--rpath -Wl,/usr/local/medialibrary/lib' --extra-cflags='-I/root/daily_build/arm_al5/4.3.4/Model/TS-X41/build/RootFS/usr/local/medialibrary/include -D_GNU_SOURCE -DQNAP' --prefix=/root/daily_build/arm_al5/4.3.4/Model/TS-X41/build/RootFS/usr/local/medialibrary libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 2018-01-04 10:44:48.676 Debug XmlSerializer: Serializing to file /share/CE_CACHEDEV1_DATA/.qpkg/Emby/Emby/ProgramData-Server/config/encoding.xml 2018-01-04 10:44:48.678 Info MediaEncoder: FFMpeg: /mnt/ext/opt/medialibrary/bin/ffmpeg 2018-01-04 10:44:48.678 Info MediaEncoder: FFProbe: /mnt/ext/opt/medialibrary/bin/ffprobe 2018-01-04 10:44:48.678 Info MediaEncoder: Validating media encoder at /mnt/ext/opt/medialibrary/bin/ffmpeg 2018-01-04 10:44:48.678 Info MediaEncoder: Running /mnt/ext/opt/medialibrary/bin/ffmpeg -decoders 2018-01-04 10:44:48.735 Info MediaEncoder: Decoder available: mpeg2video 2018-01-04 10:44:49.015 Info MediaEncoder: Decoder available: aac 2018-01-04 10:44:49.031 Info MediaEncoder: Decoder available: mp3 2018-01-04 10:44:49.035 Info MediaEncoder: Decoder available: h264 2018-01-04 10:44:49.039 Info MediaEncoder: Decoder available: hevc 2018-01-04 10:44:49.081 Info MediaEncoder: Running /mnt/ext/opt/medialibrary/bin/ffmpeg -encoders 2018-01-04 10:44:49.134 Info MediaEncoder: Encoder available: libx264 2018-01-04 10:44:49.144 Info MediaEncoder: Encoder available: mpeg4 2018-01-04 10:44:49.146 Info MediaEncoder: Encoder available: msmpeg4 2018-01-04 10:44:49.166 Info MediaEncoder: Encoder available: aac 2018-01-04 10:44:49.171 Info MediaEncoder: Encoder available: libmp3lame 2018-01-04 10:44:49.194 Info MediaEncoder: Encoder available: srt 2018-01-04 10:44:49.278 Info MediaEncoder: Encoder validation complete Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 4, 2018 Share Posted January 4, 2018 Thanks for the feedback ! Although looking at that output, it doesn't come with a great selection of libraries. Link to comment Share on other sites More sharing options...
schogobong 3 Posted January 16, 2018 Share Posted January 16, 2018 Damn, that worked for me after I was loosing all hope! Thanks for the feedback ! Although looking at that output, it doesn't come with a great selection of libraries. What do you mean with this not coming with a great selection of libraries? What are the downsides to this method? Before, I was missing the duration on most (but not all) of my movies. There's also no rule that I could figure out other than it not working on mkv (but also some mp4 with and some without duration and so on). Is there an alternative solution? Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 16, 2018 Share Posted January 16, 2018 It means there are certain formats it might not be able to handle, but if you're happy then there's no problem. Link to comment Share on other sites More sharing options...
schogobong 3 Posted January 16, 2018 Share Posted January 16, 2018 What would be your official suggestion on how to do it, so that i don't miss any file formats? I saw a link pop up a few times, but where do I put those files on my QNAP? Does it matter? And do I have to install anything or just cipy/paste? Link to comment Share on other sites More sharing options...
Luke 37008 Posted January 16, 2018 Share Posted January 16, 2018 Until we have an official build for arm32 qnap then what you're doing is probably the best thing. Luckily we got some movement today from MS on the issue that is blocking us so hopefully we'll be able to do that soon: https://github.com/dotnet/core-setup/issues/3100#issuecomment-329575274 Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now