[FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"

Moritz Barsnick barsnick at gmx.net
Tue Apr 12 00:18:47 CEST 2016


On Tue, Apr 12, 2016 at 06:15:13 +1000, Matt Flax wrote:
> Any follow ups on this ?

The attached patch would give you/us more information on that
particular error. (Not for other errors, and it doesn't provide a
solution. ;-))

(Sort of untested. I had tested this edit preciously, but when making
this patch, I was too lazy to right now. Might work, might not.)

Moritz
-------------- next part --------------
>From f9875534556587a996e13fc1ae97ca64965476d1 Mon Sep 17 00:00:00 2001
From: Moritz Barsnick <barsnick at gmx.net>
Date: Tue, 12 Apr 2016 00:10:22 +0200
Subject: [PATCH] ffserver: add reason to error message

Signed-off-by: Moritz Barsnick <barsnick at gmx.net>
---
 ffserver.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index b5bd8f8..f0a94ce 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3835,6 +3835,7 @@ drop:
         }
 
         if (avio_check(feed->feed_filename, AVIO_FLAG_WRITE) <= 0) {
+            int ret;
             AVFormatContext *s = avformat_alloc_context();
 
             if (!s) {
@@ -3851,9 +3852,9 @@ drop:
             }
 
             /* only write the header of the ffm file */
-            if (avio_open(&s->pb, feed->feed_filename, AVIO_FLAG_WRITE) < 0) {
-                http_log("Could not open output feed file '%s'\n",
-                         feed->feed_filename);
+            if ((ret = avio_open(&s->pb, feed->feed_filename, AVIO_FLAG_WRITE)) < 0) {
+                http_log("Could not open output feed file '%s': %s\n",
+                         feed->feed_filename, av_err2str(ret));
                 avformat_free_context(s);
                 goto bail;
             }
-- 
2.5.5



More information about the ffmpeg-user mailing list