[FFmpeg-user] libx264 vs android 4.4

Patrick Shirkey pshirkey at boosthardware.com
Wed Jul 16 17:32:42 CEST 2014


On Wed, July 16, 2014 11:33 pm, Carl Eugen Hoyos wrote:
> Patrick Shirkey <pshirkey <at> boosthardware.com> writes:
>
>> Output #0, h264, to 'http://localhost:8090/feed1.ffm':
>
>> av_interleaved_write_frame(): Connection reset by peer
>
> It appears that whatever you setup to receive your
> stream does not like the h264 format.
> (Maybe the receiving end expected ffm?)
>

Thanks for your help with this.

If I use the following commandline I get a different error but the stream
still stops after 58 frames:

ffmpeg -f fbdev -r 1 -i /dev/graphics/fb0 -vcodec libx264 -f h264
-preset:v slow -pix_fmt yuv420p http://localhost:8090/live.h264

[fbdev @ 0x2038d40] w:800 h:480 bpp:32 pixfmt:bgra fps:1/1 bit_rate:12288000
Input #0, fbdev, from '/dev/graphics/fb0':
  Duration: N/A, start: 1405524527.617801, bitrate: 12288 kb/s
    Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 800x480, 12288
kb/s, 1 fps, 1 tbr, 1000k tbn, 1 tbc
[libx264 @ 0x203b260] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x203b260] profile High, level 2.2
[h264 @ 0x203a460] Using AVStream.codec.time_base as a timebase hint to
the muxer is deprecated. Set AVStream.time_base instead.
Output #0, h264, to 'http://localhost:8090/l.h264':
  Metadata:
    encoder         : Lavf55.45.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 800x480, q=-1--1, 1 fps,
1 tbn, 1 tbc
    Metadata:
      encoder         : Lavc55.69.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Broken pipe time=00:00:00.00 bitrate=N/A
frame=   58 fps=0.8 q=-1.0 Lsize=      20kB time=00:00:-1.00 bitrate=N/A
video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%


--
Patrick Shirkey
Boost Hardware Ltd


More information about the ffmpeg-user mailing list