diff --git a/daemon/src/video/video_decoder.cpp b/daemon/src/video/video_decoder.cpp
index 3355343be54b54503c7ae508908660f235734506..2f4193b2ec4f9ae85eb39bcf695b19a8b5f059f8 100644
--- a/daemon/src/video/video_decoder.cpp
+++ b/daemon/src/video/video_decoder.cpp
@@ -74,10 +74,15 @@ int VideoDecoder::openInput(const std::string &source_str,
 
     int ret = avformat_open_input(&inputCtx_, source_str.c_str(), iformat,
                                   options_ ? &options_ : NULL);
-    if (ret)
-        ERROR("avformat_open_input failed (%d)", ret);
 
-    DEBUG("Using format %s", format_str.c_str());
+    if (ret) {
+        char errbuf[64];
+        av_strerror(ret, errbuf, sizeof(errbuf));
+        ERROR("avformat_open_input failed: %s", errbuf);
+    } else {
+        DEBUG("Using format %s", format_str.c_str());
+    }
+
     return ret;
 }