Unable to make FFMPEG to work with Icecast2 Server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to make FFMPEG to work with Icecast2 Server

Edgar H
Sorry for that, didn't understand it at first...

The command I'm exeucting is the following one...

C:\Users\myuser\myproject>java -jar streamer/strea
mer.jar 6 53122 | ffmpeg/bin/ffmpeg -f s16le -ar 48000 -ac 2 -i - -f ogg
icecast
://hackme:hackme@localhost:8000/streaming.ogg

And the output...

ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg
developers
  built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype
--enable-libg
sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
--enable-libo
pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-li
bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-lib
twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enabl
e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 19.100 / 52. 19.100
  libavcodec     55.  0.100 / 55.  0.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    54.  4.100 / 54.  4.100
  libavfilter     3. 45.103 /  3. 45.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[s16le @ 0227e640] max_analyze_duration 5000000 reached at 5013333
microseconds
[s16le @ 0227e640] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, s16le, from 'pipe:':
  Duration: N/A, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[NULL @ 021f20c0] Unable to find a suitable output format for '/bin/ffmpeg'
/bin/ffmpeg: Invalid argument
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to make FFMPEG to work with Icecast2 Server

Carl Eugen Hoyos-2
2017-12-04 13:04 GMT+01:00 Edgar H <[hidden email]>:

> Sorry for that, didn't understand it at first...
>
> The command I'm exeucting is the following one...
>
> C:\Users\myuser\myproject>java -jar streamer/strea
> mer.jar 6 53122 | ffmpeg/bin/ffmpeg -f s16le -ar 48000 -ac 2 -i - -f ogg
> icecast
> ://hackme:hackme@localhost:8000/streaming.ogg
>
> And the output...
>
> ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013

While your issue may not be FFmpeg-related, you still could
test with current FFmpeg git head.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to make FFMPEG to work with Icecast2 Server

Moritz Barsnick
In reply to this post by Edgar H
On Mon, Dec 04, 2017 at 13:04:57 +0100, Edgar H wrote:
> C:\Users\myuser\myproject>java -jar streamer/streamer.jar 6 53122 | ffmpeg/bin/ffmpeg -f s16le -ar 48000 -ac 2 -i - -f ogg icecast://hackme:hackme@localhost:8000/streaming.ogg

Um, since the prompt tells us it's Windows/DOS, I'm sure the ffmpeg
executable should be called with "ffmpeg\bin\ffmpeg" (i.e. backslaches
as path separator).

I still don't understand where your error message comes from though...
Might be Windows messing up the argument order.

> ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg

As Carl Eugen mentioned: This is quite old (but not the issue - yet).

> Input #0, s16le, from 'pipe:':
>   Duration: N/A, bitrate: 1536 kb/s
>     Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s

Upto here, everything's fine, AFAICS. The piped input is seen.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to make FFMPEG to work with Icecast2 Server

Carl Eugen Hoyos-2
2017-12-04 14:30 GMT+01:00 Moritz Barsnick <[hidden email]>:
> On Mon, Dec 04, 2017 at 13:04:57 +0100, Edgar H wrote:
>> C:\Users\myuser\myproject>java -jar streamer/streamer.jar 6 53122 | ffmpeg/bin/ffmpeg -f s16le -ar 48000 -ac 2 -i - -f ogg icecast://hackme:hackme@localhost:8000/streaming.ogg
>
> Um, since the prompt tells us it's Windows/DOS, I'm sure the ffmpeg
> executable should be called with "ffmpeg\bin\ffmpeg" (i.e. backslaches
> as path separator).

Or possibly "ffmpeg" alone which may explain the error message?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Unable to make FFMPEG to work with Icecast2 Server

Moritz Barsnick
On Mon, Dec 04, 2017 at 15:01:41 +0100, Carl Eugen Hoyos wrote:
> > Um, since the prompt tells us it's Windows/DOS, I'm sure the ffmpeg
> > executable should be called with "ffmpeg\bin\ffmpeg" (i.e. backslaches
> > as path separator).
>
> Or possibly "ffmpeg" alone which may explain the error message?

Yes! Now it makes sense. I was wondering why ffmpeg was looking for an
*output* format, but missed the fact that every non-option will be
interpreted as an output.

And "DOS" interprets '/' as an option separator, and accepts options
directly behind the executable's name without separating whitespace.

Edgar, you know what to do now?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".