Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Yep that is what I thought as well. Which protocol do you think I should enable ? file perhaps ? Here are the available ones : $ ./configure --list-protocols async icecast rtmpt bluray librtmp rtmpte cache librtmpe rtmpts concat librtmps rtp crypto librtmpt sctp data librtmpte srtp ffrtmpcrypt libsmbclient subfile ffrtmphttp libssh tcp file md5 tls_gnutls ftp mmsh tls_openssl gopher mmst tls_schannel hls pipe tls_securetransport http rtmp udp httpproxy rtmpe udplite https rtmps unix On 12/04/16 21:09, Moritz Barsnick wrote: ffserver -f /etc/ffserver.conf Could not open output feed file '/tmp/inputAudio.ffm': Protocol not found Ah, interesting. # ffserver -protocols Supported file protocols: Input: http rtp tcp udp Output: http rtp tcp udp my ffserver build has a lot more - just as many as my ffmpeg has. I guess your configure flag "--disable-everything" even disabled the protocol named "file". I think you need that to access a file on disk. Guessing, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Thanks for your help on this Moritz, the file protocol it was ! Matt On 13/04/16 06:46, Matt Flax wrote: Yep that is what I thought as well. Which protocol do you think I should enable ? file perhaps ? Here are the available ones : $ ./configure --list-protocols async icecast rtmpt bluray librtmp rtmpte cache librtmpe rtmpts concat librtmps rtp crypto librtmpt sctp data librtmpte srtp ffrtmpcrypt libsmbclient subfile ffrtmphttp libssh tcp file md5 tls_gnutls ftp mmsh tls_openssl gopher mmst tls_schannel hls pipe tls_securetransport http rtmp udp httpproxy rtmpe udplite https rtmps unix On 12/04/16 21:09, Moritz Barsnick wrote: ffserver -f /etc/ffserver.conf Could not open output feed file '/tmp/inputAudio.ffm': Protocol not found Ah, interesting. # ffserver -protocols Supported file protocols: Input: http rtp tcp udp Output: http rtp tcp udp my ffserver build has a lot more - just as many as my ffmpeg has. I guess your configure flag "--disable-everything" even disabled the protocol named "file". I think you need that to access a file on disk. Guessing, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
> ffserver -f /etc/ffserver.conf > Could not open output feed file '/tmp/inputAudio.ffm': Protocol not found Ah, interesting. > # ffserver -protocols > Supported file protocols: > Input: >http >rtp >tcp >udp > Output: >http >rtp >tcp >udp my ffserver build has a lot more - just as many as my ffmpeg has. I guess your configure flag "--disable-everything" even disabled the protocol named "file". I think you need that to access a file on disk. Guessing, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Thanks for the patch ... seems that ffserver can't find the right protocol ... not sure which one it is after ? ffserver -f /etc/ffserver.conf Could not open output feed file '/tmp/inputAudio.ffm': Protocol not found # ffserver -protocols Supported file protocols: Input: http rtp tcp udp Output: http rtp tcp udp here is a refresh of my ffserver.conf file : HTTPPort 8090 HTTPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 15000 # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - ## File /tmp/inputAudio.ffm FileMaxSize 200K #Launch ffmpeg # Only allow connections from localhost to the feed. ACL allow 127.0.0.1 ## # coming from live feed 'feed1' Feed inputAudio.ffm Format wav AudioChannels 2 AudioSampleRate 48000 AudioBitRate 3072 NoVideo #Preroll 1 On 12/04/16 08:18, Moritz Barsnick wrote: 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 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
On Tue, Apr 12, 2016 at 00:18:47 +0200, Moritz Barsnick wrote: > (Sort of untested. I had tested this edit preciously, but when making ^^ previously of course. ;-) M. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Any follow ups on this ? On 09/04/16 10:34, Matt Flax wrote: here you go ... snip ... removed info about libraries open("/dev/urandom", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 read(3, "\347{.k", 4) = 4 close(3)= 0 rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 16) = 0 rt_sigaction(SIGCHLD, {0x40d651, [RT_68 RT_71 RT_72 RT_73 RT_75 RT_76 RT_79 RT_81 RT_82 RT_83 RT_84 RT_85 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], SA_RESTORER|SA_RESTART|SA_NOCLDSTOP, 0}, NULL, 16) = 0 open("/etc/ffserver.conf", O_RDONLY|O_LARGEFILE) = 3 readv(3, [{"", 0}, {"HTTPPort 8090\nHTTPBindAddress 0."..., 1024}], 2) = 670 readv(3, [{"", 0}, {"HTTPPort 8090\nHTTPBindAddress 0."..., 1024}], 2) = 0 close(3)= 0 clock_gettime(CLOCK_REALTIME, {1458907722, 51781050}) = 0 open("/etc/TZ", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=4, ...}) = 0 mmap2(NULL, 4, PROT_READ, MAP_SHARED, 3, 0) = 0x77a84000 close(3)= 0 ioctl(1, TIOCGWINSZ, 0x7fb08798)= 0 writev(1, [{"Fri Mar 25 12:08:42 2016 Could n"..., 77}, {"'\n", 2}], 2) = 79 clock_gettime(CLOCK_REALTIME, {1458907722, 53880165}) = 0 munmap(0x77a84000, 4) = 0 open("/etc/TZ", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=4, ...}) = 0 mmap2(NULL, 4, PROT_READ, MAP_SHARED, 3, 0) = 0x77a84000 close(3)= 0 writev(1, [{"Fri Mar 25 12:08:42 2016 ", 25}, {"Could not setup feed streams\n", 29}], 2) = 54 exit_group(1) = ? I am open to altering ffserver.c for more information ... thanks Matt On 09/04/16 09:25, Moritz Barsnick wrote: On Sat, Apr 09, 2016 at 08:56:17 +1000, Matt Flax wrote: Actually it starts with no file present. Hmm. Do you have strace? You can run $ strace -o /tmp/ffserver.log ffserver -f /etc/ffserver.conf and then inspect /tmp/ffserver.log for /tmp/inputAudio.ffm. On ffserver's second access (r/w), I get this: access("/tmp/inputAudio.ffm", F_OK) = 0 access("/tmp/inputAudio.ffm", W_OK) = -1 EACCES (Permission denied) open("/tmp/inputAudio.ffm", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLOEXEC, 0666) = -1 EACCES (Permission denied) with "Permission denied" being the interesting information ffserver should be giving. Alternatively, if you are building ffserver yourself, you could modify it to provide that information. I can add a patch if desired. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
here you go ... snip ... removed info about libraries open("/dev/urandom", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 read(3, "\347{.k", 4) = 4 close(3)= 0 rt_sigprocmask(SIG_UNBLOCK, [RT_1 RT_2], NULL, 16) = 0 rt_sigaction(SIGCHLD, {0x40d651, [RT_68 RT_71 RT_72 RT_73 RT_75 RT_76 RT_79 RT_81 RT_82 RT_83 RT_84 RT_85 RT_88 RT_89 RT_90 RT_91 RT_93 RT_94 RT_95], SA_RESTORER|SA_RESTART|SA_NOCLDSTOP, 0}, NULL, 16) = 0 open("/etc/ffserver.conf", O_RDONLY|O_LARGEFILE) = 3 readv(3, [{"", 0}, {"HTTPPort 8090\nHTTPBindAddress 0."..., 1024}], 2) = 670 readv(3, [{"", 0}, {"HTTPPort 8090\nHTTPBindAddress 0."..., 1024}], 2) = 0 close(3)= 0 clock_gettime(CLOCK_REALTIME, {1458907722, 51781050}) = 0 open("/etc/TZ", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=4, ...}) = 0 mmap2(NULL, 4, PROT_READ, MAP_SHARED, 3, 0) = 0x77a84000 close(3)= 0 ioctl(1, TIOCGWINSZ, 0x7fb08798)= 0 writev(1, [{"Fri Mar 25 12:08:42 2016 Could n"..., 77}, {"'\n", 2}], 2) = 79 clock_gettime(CLOCK_REALTIME, {1458907722, 53880165}) = 0 munmap(0x77a84000, 4) = 0 open("/etc/TZ", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=4, ...}) = 0 mmap2(NULL, 4, PROT_READ, MAP_SHARED, 3, 0) = 0x77a84000 close(3)= 0 writev(1, [{"Fri Mar 25 12:08:42 2016 ", 25}, {"Could not setup feed streams\n", 29}], 2) = 54 exit_group(1) = ? I am open to altering ffserver.c for more information ... thanks Matt On 09/04/16 09:25, Moritz Barsnick wrote: On Sat, Apr 09, 2016 at 08:56:17 +1000, Matt Flax wrote: Actually it starts with no file present. Hmm. Do you have strace? You can run $ strace -o /tmp/ffserver.log ffserver -f /etc/ffserver.conf and then inspect /tmp/ffserver.log for /tmp/inputAudio.ffm. On ffserver's second access (r/w), I get this: access("/tmp/inputAudio.ffm", F_OK) = 0 access("/tmp/inputAudio.ffm", W_OK) = -1 EACCES (Permission denied) open("/tmp/inputAudio.ffm", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLOEXEC, 0666) = -1 EACCES (Permission denied) with "Permission denied" being the interesting information ffserver should be giving. Alternatively, if you are building ffserver yourself, you could modify it to provide that information. I can add a patch if desired. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
On Sat, Apr 09, 2016 at 08:56:17 +1000, Matt Flax wrote: > Actually it starts with no file present. Hmm. Do you have strace? You can run $ strace -o /tmp/ffserver.log ffserver -f /etc/ffserver.conf and then inspect /tmp/ffserver.log for /tmp/inputAudio.ffm. On ffserver's second access (r/w), I get this: access("/tmp/inputAudio.ffm", F_OK) = 0 access("/tmp/inputAudio.ffm", W_OK) = -1 EACCES (Permission denied) open("/tmp/inputAudio.ffm", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE|O_CLOEXEC, 0666) = -1 EACCES (Permission denied) with "Permission denied" being the interesting information ffserver should be giving. Alternatively, if you are building ffserver yourself, you could modify it to provide that information. I can add a patch if desired. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Oh by the way sticky is set : # ls -ld /tmp drwxrwxrwt 17 root root 440 Apr 8 22:35 /tmp On 09/04/16 08:56, Matt Flax wrote: On 09/04/16 04:49, Moritz Barsnick wrote: > Hi Matt, > > On Fri, Apr 08, 2016 at 21:37:40 +1000, Matt Flax wrote: >> I get : >> Could not open output feed file '/tmp/inputAudio.ffm' > > Unfortunately, ffserver fails to provide a reason. (I'll see if I can > provide a fix for that.) Thank you. > > My guess is: That file already exists, but was created by a different > user. > >> /tmp is mounted with the following options : >> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) > > And probably has the sticky directory bit (I think that's what it's > called set: > drwxrwxrwt > ^ > > Try to see whether there's already a /tmp/inputAudio.ffm there, and try > to erase it. Actually it starts with no file present. > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
On 09/04/16 04:49, Moritz Barsnick wrote: > Hi Matt, > > On Fri, Apr 08, 2016 at 21:37:40 +1000, Matt Flax wrote: >> I get : >> Could not open output feed file '/tmp/inputAudio.ffm' > > Unfortunately, ffserver fails to provide a reason. (I'll see if I can > provide a fix for that.) Thank you. > > My guess is: That file already exists, but was created by a different > user. > >> /tmp is mounted with the following options : >> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) > > And probably has the sticky directory bit (I think that's what it's > called set: > drwxrwxrwt > ^ > > Try to see whether there's already a /tmp/inputAudio.ffm there, and try > to erase it. Actually it starts with no file present. > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Hi Matt, On Fri, Apr 08, 2016 at 21:37:40 +1000, Matt Flax wrote: > I get : > Could not open output feed file '/tmp/inputAudio.ffm' Unfortunately, ffserver fails to provide a reason. (I'll see if I can provide a fix for that.) My guess is: That file already exists, but was created by a different user. > /tmp is mounted with the following options : > tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) And probably has the sticky directory bit (I think that's what it's called set: drwxrwxrwt ^ Try to see whether there's already a /tmp/inputAudio.ffm there, and try to erase it. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] ffserver audio livestream "Could not open output feed file '/tmp/inputAudio.ffm'"
Hi there, Need a little help please. When I run : ffserver -f /etc/ffserver.conf I get : Could not open output feed file '/tmp/inputAudio.ffm' No problem executing echo to a file in /tmp ... so it doesn't appear to be a file system problem. /tmp is mounted with the following options : tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) I am using the wav format : # ffserver -formats File formats: D. = Demuxing supported .E = Muxing supported -- E ffm DE wav My ffserver.conf is : ## HTTPPort 8090 HTTPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 15000 CustomLog - File /tmp/inputAudio.ffm FileMaxSize 200K #Launch ffmpeg # Only allow connections from localhost to the feed. ACL allow 127.0.0.1 # coming from live feed 'feed1' Feed inputAudio.ffm Format wav AudioChannels 2 AudioSampleRate 48000 AudioBitRate 3072 NoVideo #Preroll 1 ## My long output is : # ffserver -f /etc/ffserver.conf ffserver version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (OpenWrt GCC 5.3.0 r49088) configuration: --enable-cross-compile --cross-prefix=mips-openwrt-linux-musl- --arch=mips --target-os=linux --prefix=/usr --pkg-config=pkg-config --enable-shared --enable-static --enable-small --enable-pthreads --enable-zlib --disable-runtime-cpudetect --disable-doc --disable-debug --enable-gpl --enable-version3 --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-vfp --disable-neon --disable-inline-asm --disable-yasm --disable-mips32r2 --disable-mipsdspr2 --disable-mipsfpu --disable-dxva2 --disable-lzma --disable-vaapi --disable-vda --disable-vdpau --disable-outdevs --disable-filters --disable-postproc --disable-swscale --disable-everything --disable-decoder='pcm_bluray,pcm_dvd' --disable-ffplay --disable-ffprobe --disable-demuxers --disable-decoders --disable-avresample --enable-encoder='pcm_*' --enable-decoder='pcm_*' --enable-libwavpack --enable-encoder=wav --enable-decoder=wav --enable-muxer=wav --enable-demuxer=wav --enable-filter=aresample --enable-indev=alsa --enable-ffserver --enable-ffmpeg libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat57. 25.100 / 57. 25.100 libavdevice57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswresample 2. 0.101 / 2. 0.101 Fri Apr 8 11:27:02 2016 Could not open output feed file '/tmp/inputAudio.ffm' Fri Apr 8 11:27:02 2016 Could not setup feed streams thanks Matt ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user