SHARE
TWEET

FFmpeg

NecroBoy Nov 2nd, 2017 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@localhost ~]# ffmpeg -re -i /home/test.mp4 -c copy -f flv rtmp://localhost/myapp/mystream
  2. ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
  3.   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  4.   configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  5.   libavutil      54. 20.100 / 54. 20.100
  6.   libavcodec     56. 26.100 / 56. 26.100
  7.   libavformat    56. 25.101 / 56. 25.101
  8.   libavdevice    56.  4.100 / 56.  4.100
  9.   libavfilter     5. 11.102 /  5. 11.102
  10.   libavresample   2.  1.  0 /  2.  1.  0
  11.   libswscale      3.  1.101 /  3.  1.101
  12.   libswresample   1.  1.100 /  1.  1.100
  13.   libpostproc    53.  3.100 / 53.  3.100
  14. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/test.mp4':
  15.   Metadata:
  16.     major_brand     : mp42
  17.     minor_version   : 0
  18.     compatible_brands: isommp42
  19.     creation_time   : 2017-04-25 00:41:01
  20.   Duration: 00:01:02.74, start: 0.000000, bitrate: 2249 kb/s
  21.     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2120 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
  22.     Metadata:
  23.       creation_time   : 2017-04-25 00:41:01
  24.       handler_name    : ISO Media file produced by Google Inc.
  25.     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
  26.     Metadata:
  27.       creation_time   : 2017-04-25 00:41:01
  28.       handler_name    : ISO Media file produced by Google Inc.
  29. [tcp @ 0x1f130e0] Connection to tcp://localhost:1935 failed (Connection refused), trying next address
  30. Output #0, flv, to 'rtmp://localhost/myapp/mystream':
  31.   Metadata:
  32.     major_brand     : mp42
  33.     minor_version   : 0
  34.     compatible_brands: isommp42
  35.     encoder         : Lavf56.25.101
  36.     Stream #0:0(und): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2120 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 90k tbc (default)
  37.     Metadata:
  38.       creation_time   : 2017-04-25 00:41:01
  39.       handler_name    : ISO Media file produced by Google Inc.
  40.     Stream #0:1(und): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, 125 kb/s (default)
  41.     Metadata:
  42.       creation_time   : 2017-04-25 00:41:01
  43.       handler_name    : ISO Media file produced by Google Inc.
  44. Stream mapping:
  45.   Stream #0:0 -> #0:0 (copy)
  46.   Stream #0:1 -> #0:1 (copy)
  47. Press [q] to stop, [?] for help
  48. av_interleaved_write_frame(): Connection reset by peer
  49. [flv @ 0x20da0c0] Failed to update header with correct duration.
  50. [flv @ 0x20da0c0] Failed to update header with correct filesize.
  51. frame=   14 fps=0.0 q=-1.0 Lsize=      46kB time=00:00:00.40 bitrate= 935.1kbits/s    
  52. video:107kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  53. Conversion failed!
RAW Paste Data
Top