[FFmpeg-user] conversion failed

Remo Rayamajhi kshatriya.remo at gmail.com
Wed Jan 17 07:11:29 EET 2018


Hello support

i tried to convert my hls stream to rtmp stream , each time i use ffmpeg
script it shows broken pipe error message and  gives conversion failed
message



ffmpeg -i '
http://192.168.0.54:8081/live/hdmi_ext/playlist.m3u8?fifo_size=1000000\&overrun_nonfatal'
-pix_fmt yuv420p -b:v 2000k  -vf "yadif,scale=1920x1080" -c:a aac -ar 44100
-ac 2 -b:a 64k -c:v libx264 -f flv 'rtmp://
admin:netaccess at 192.168.0.44:1935/nettv/netkasthmandap.stream'

ffmpeg version N-80183-g7c55f5d Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
--enable-decklink --extra-cflags=-I/usr/local/sdk/Linux/include/
--extra-ldflags=-L/usr/local/sdk/Linux/include/
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 44.100 / 57. 44.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x4275fa0] Overread VUI by 5 bits
    Last message repeated 1 times
[h264 @ 0x43a5d20] Overread VUI by 5 bits
    Last message repeated 3 times
Input #0, hls,applehttp, from '
http://192.168.0.54:8081/live/hdmi_ext/playlist.m3u8?fifo_size=1000000\&overrun_nonfatal
':
  Duration: N/A, start: 49520.459000, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 2289191
    Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p,
1280x720, 25 fps, 25 tbr, 90k tbn
    Metadata:
      variant_bitrate : 2289191
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 130 kb/s
    Metadata:
      variant_bitrate : 2289191
[rtmp @ 0x43b5540] Ignoring unsupported var reason
[h264 @ 0x462eca0] Overread VUI by 5 bits
    Last message repeated 1 times
[libx264 @ 0x4a81540] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x4a81540] profile High, level 4.0
[libx264 @ 0x4a81540] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=72 lookahead_threads=8
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[flv @ 0x42d6d40] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, flv, to 'rtmp://
admin:netaccess at 192.168.0.44:1935/nettv/netkasthmandap.stream':
  Metadata:
    encoder         : Lavf57.37.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
1920x1080, q=-1--1, 2000 kb/s, 25 fps, 1k tbn
    Metadata:
      variant_bitrate : 2289191
      encoder         : Lavc57.44.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz,
stereo, fltp, 64 kb/s
    Metadata:
      variant_bitrate : 2289191
      encoder         : Lavc57.44.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x462eca0] Overread VUI by 5 bits
    Last message repeated 1 times
[h264 @ 0x4a1cb60] Overread VUI by 5 bits
    Last message repeated 1 times
[h264 @ 0x498e7a0] Overread VUI by 5 bits time=00:00:01.67 bitrate=
 1.9kbits/s speed=3.26x
    Last message repeated 1 times
[h264 @ 0x49003e0] Overread VUI by 5 bits time=00:00:02.78 bitrate=
 1.2kbits/s speed=2.72x
    Last message repeated 1 times
[h264 @ 0x4872020] Overread VUI by 5 bits time=00:00:04.36 bitrate=
 0.7kbits/s speed=2.14x
    Last message repeated 1 times
[h264 @ 0x47e3c60] Overread VUI by 5 bits time=00:00:05.08 bitrate=
 0.6kbits/s speed=   2x
    Last message repeated 1 times
av_interleaved_write_frame(): Broken pipeB time=00:00:05.96 bitrate=
298.1kbits/s speed=1.95x
    Last message repeated 1 times
[flv @ 0x42d6d40] Failed to update header with correct duration.
[flv @ 0x42d6d40] Failed to update header with correct filesize.
Error writing trailer of rtmp://
admin:netaccess at 192.168.0.44:1935/nettv/netkasthmandap.stream: Broken
pipeframe=  150 fps= 36 q=32.0 Lsize=     364kB time=00:00:06.59 bitrate=
452.5kbits/s speed= 1.6x
video:353kB audio:52kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
[libx264 @ 0x4a81540] frame I:1     Avg QP:20.73  size: 53120
[libx264 @ 0x4a81540] frame P:63    Avg QP:23.16  size: 14513
[libx264 @ 0x4a81540] frame B:86    Avg QP:25.77  size:  3533
[libx264 @ 0x4a81540] consecutive B-frames: 13.3% 24.0% 20.0% 42.7%
[libx264 @ 0x4a81540] mb I  I16..4: 36.2% 56.2%  7.6%
[libx264 @ 0x4a81540] mb P  I16..4:  7.3% 11.6%  0.7%  P16..4: 21.2%  3.4%
1.6%  0.0%  0.0%    skip:54.2%
[libx264 @ 0x4a81540] mb B  I16..4:  0.3%  0.5%  0.1%  B16..8: 15.3%  0.8%
0.1%  direct: 1.5%  skip:81.3%  L0:39.4% L1:58.7% BI: 1.9%
[libx264 @ 0x4a81540] final ratefactor: 24.78
[libx264 @ 0x4a81540] 8x8 transform intra:59.1% inter:83.3%
[libx264 @ 0x4a81540] coded y,uvDC,uvAC intra: 19.3% 48.3% 8.7% inter: 3.6%
9.8% 0.1%
[libx264 @ 0x4a81540] i16 v,h,dc,p: 33% 47%  7% 12%
[libx264 @ 0x4a81540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 19% 38%  2%  3%
3%  3%  3%  2%
[libx264 @ 0x4a81540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 12%  4%  9%
9%  8%  5%  4%
[libx264 @ 0x4a81540] i8c dc,h,v,p: 46% 29% 19%  6%
[libx264 @ 0x4a81540] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x4a81540] ref P L0: 73.9%  8.9% 12.7%  4.4%
[libx264 @ 0x4a81540] ref B L0: 89.5%  9.3%  1.2%
[libx264 @ 0x4a81540] ref B L1: 95.8%  4.2%
[libx264 @ 0x4a81540] kb/s:1695.01
[aac @ 0x439eba0] Qavg: 309.368

Conversion failed!


More information about the ffmpeg-user mailing list