Skip to content

Instantly share code, notes, and snippets.

@mago0
Created June 5, 2017 16:45
Show Gist options
  • Save mago0/96542d64b604669e28c4d43a2c23a2fa to your computer and use it in GitHub Desktop.
Save mago0/96542d64b604669e28c4d43a2c23a2fa to your computer and use it in GitHub Desktop.
ffmpeg output stream
~/P/F/l/scripts ❯❯❯ ./stream_file_out.sh ~/Downloads/serenity_trailer.mp4 flocasts-om3.vorigin.scaleengine.net/REDACTED redline-and-streaming ✱ ◼
ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9491002600] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mattw/Downloads/serenity_trailer.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2007-05-30T05:20:31.000000Z
genre : Trailer
artist : Universal Pictures
title : Serenity - HD DVD Trailer
date : 2005
Duration: 00:02:19.71, start: 0.000000, bitrate: 4802 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 4674 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2007-05-30T05:20:31.000000Z
handler_name : GPAC ISO Video Handler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2007-05-30T05:20:34.000000Z
handler_name : GPAC ISO Audio Handler
Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 240x240 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
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
[libx264 @ 0x7f949103d800] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x7f949103d800] frame MB size (80x45) > level limit (1620)
[libx264 @ 0x7f949103d800] MB rate (86313) > level limit (40500)
[libx264 @ 0x7f949103d800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7f949103d800] profile Constrained Baseline, level 3.0
[libx264 @ 0x7f949103d800] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=50 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=6000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://flocasts-om3.vorigin.scaleengine.net/flocasts-om/live/elf1064s_sre_test_test':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
date : 2005
genre : Trailer
artist : Universal Pictures
title : Serenity - HD DVD Trailer
encoder : Lavf57.71.100
Stream #0:0(und): Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720, q=-1--1, 2000 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
Metadata:
creation_time : 2007-05-30T05:20:31.000000Z
handler_name : GPAC ISO Video Handler
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 6000000 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2007-05-30T05:20:34.000000Z
handler_name : GPAC ISO Audio Handler
encoder : Lavc57.89.100 aac
frame=71772 fps= 24 q=27.0 size= 765462kB time=00:50:02.99 bitrate=2088.1kbits/s speed= 1x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment