[FFmpeg-user] Live stream with ffmpeg and ffserver won't work unless using default parameters.
Moritz Barsnick
barsnick at gmx.net
Thu Oct 26 00:00:37 EEST 2017
Hi Steve,
On Thu, Oct 26, 2017 at 00:00:45 +1100, Steve (IWWD) wrote:
> And I'm calling 'ffmpeg' with the following command:
>
> ffmpeg -i http://10.0.0.1/hdmi -c:v libvpx -an -b:v 512K -b:a 128K -cpu-used
> 4 -threads 8 -s 720x480 http://localhost:8090/livestream.ffm
I know very (very!) little about ffserver. But: Isn't it sufficient to
provide the encoding parameters in the ffserver config file?
> ffserver then complains with:
>
> Wed Oct 25 23:56:23 2017 127.0.0.1 - - [GET] "/livestream.ffm HTTP/1.1" 200
> 4175
> Wed Oct 25 23:56:23 2017 [NULL @ 0x1c00ec0]Failed to read extradata of size
> 4261
> Wed Oct 25 23:56:23 2017 127.0.0.1 - - [POST] "/livestream.ffm HTTP/1.1" 200
> 4096
Is this all that ffserver shows?
> And ffmepg dies with:
[...]
> Stream mapping:
> Stream #0:1 -> #0:0 (aac (native) -> vorbis (libvorbis))
> Stream #0:0 -> #0:1 (h264 (native) -> vp8 (libvpx))
> Could not write header for output file #0 (incorrect codec parameters ?):
> Connection reset by peer
We kindly ask you to post the *complete* uncut console output along
with the corresponding ffmpeg command line. All the log information is
valuable.
> [tcp @ 0x19547c0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
> [tcp @ 0x199abe0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
Do you also get this when it succeeds?
Moritz
More information about the ffmpeg-user
mailing list