Skip to content

Instantly share code, notes, and snippets.

@antonva
Created August 3, 2014 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonva/8d5680c35e13369d2f07 to your computer and use it in GitHub Desktop.
Save antonva/8d5680c35e13369d2f07 to your computer and use it in GitHub Desktop.
ffmpeg -loglevel debug -i The\ Holy\ Mountain_720p.mkv -c:v libvpx -c:a libvorbis -map 0:2 -map 0:0 http://server:8090/feed.ffm ⏎
ffmpeg version 2.3.1 Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 31 2014 14:51:38 with gcc 4.9.1 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avisynth --enable-avresample --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input file with argument 'The Holy Mountain_720p.mkv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libvpx'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libvorbis'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:2'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option 'http://server:8090/feed.ffm' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file The Holy Mountain_720p.mkv.
Successfully parsed a group of options.
Opening an input file: The Holy Mountain_720p.mkv.
[matroska,webm @ 0x1894060] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
st:3 removing common factor 1000000 from timebase
st:4 removing common factor 1000000 from timebase
st:5 removing common factor 1000000 from timebase
st:6 removing common factor 1000000 from timebase
st:7 removing common factor 1000000 from timebase
st:8 removing common factor 1000000 from timebase
st:9 removing common factor 1000000 from timebase
st:10 removing common factor 1000000 from timebase
st:11 removing common factor 1000000 from timebase
[matroska,webm @ 0x1894060] Before avformat_find_stream_info() pos: 9260 bytes read:32768 seeks:0
[dvdsub @ 0x1899780] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x1899fc0] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x189a9e0] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x189b400] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x189be20] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x18a4940] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x18a52a0] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[dvdsub @ 0x18a5d40] palette: 0x000000 0xf0f0f0 0xcccccc 0x999999 0x3333fa 0x1111bb 0xfa3333 0xbb1111 0x33fa33 0x11bb11 0xfafa33 0xbbbb11 0xfa33fa 0xbb11bb 0x33fafa 0x11bbbb
[h264 @ 0x1897600] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x1897600] no picture
[matroska,webm @ 0x1894060] All info found
[matroska,webm @ 0x1894060] After avformat_find_stream_info() pos: 71741 bytes read:98304 seeks:0 frames:28
Input #0, matroska,webm, from 'The Holy Mountain_720p.mkv':
Metadata:
encoder : libebml v1.0.0 + libmatroska v1.0.0
creation_time : 2011-04-19 15:36:51
Duration: 01:53:28.86, start: 0.000000, bitrate: 8615 kb/s
Stream #0:0, 4, 1/1000: Video: h264 (Main), yuv420p, 1280x544 [SAR 1:1 DAR 40:17], 104271/5000000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng), 8, 1/1000: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Stream #0:2(eng), 8, 1/1000: Audio: ac3, 48000 Hz, stereo, fltp, 640 kb/s
Stream #0:3(spa), 8, 1/1000: Audio: ac3, 48000 Hz, stereo, fltp, 640 kb/s
Stream #0:4(eng), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:5(spa), 0, 1/1000: Subtitle: dvd_subtitle, 720x576 (default)
Stream #0:6(por), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:7(fre), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:8(eng), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:9(spa), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:10(por), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Stream #0:11(fre), 0, 1/1000: Subtitle: dvd_subtitle, 720x576
Successfully opened the file.
Parsing a group of options: output file http://server:8090/feed.ffm.
Applying option c:v (codec name) with argument libvpx.
Applying option c:a (codec name) with argument libvorbis.
Applying option map (set input stream mapping) with argument 0:2.
Applying option map (set input stream mapping) with argument 0:0.
Successfully parsed a group of options.
Opening an output file: http://server:8090/feed.ffm.
[http @ 0x19075a0] request: GET /feed.ffm HTTP/1.1
User-Agent: Lavf/55.48.100
Accept: */*
Range: bytes=0-
Connection: close
Host: server:8090
[http @ 0x19075a0] header='HTTP/1.0 200 OK'
[http @ 0x19075a0] http_code=200
[http @ 0x19075a0] header='Pragma: no-cache'
[http @ 0x19075a0] header='Content-Type: application/x-octet-stream'
[http @ 0x19075a0] header=''
[ffm @ 0x190aa80] Format ffm probed with size=2048 and score=101
[AVIOContext @ 0x1908e80] Statistics: 4096 bytes read, 0 seeks
[http @ 0x1901780] request: POST /feed.ffm HTTP/1.1
Transfer-Encoding: chunked
User-Agent: Lavf/55.48.100
Accept: */*
Connection: close
Host: server:8090
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:1 @ 0x1994bc0] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:1 @ 0x1994bc0] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:1 @ 0x1994bc0] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:1 @ 0x1994bc0] Setting 'channel_layout' to value '0x60f'
[graph 0 input from stream 0:1 @ 0x1994bc0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
[audio format for output stream 0:0 @ 0x197e3e0] Setting 'sample_fmts' to value 'fltp'
[audio format for output stream 0:0 @ 0x197e3e0] Setting 'sample_rates' to value '22050'
[audio format for output stream 0:0 @ 0x197e3e0] Setting 'channel_layouts' to value '0x3'
[audio format for output stream 0:0 @ 0x197e3e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x188b300] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
1.000000 0.000000 0.707107 0.000000 0.707107 0.000000
0.000000 1.000000 0.707107 0.000000 0.000000 0.707107
[auto-inserted resampler 0 @ 0x190c520] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:22050Hz
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'video_size' to value '1280x544'
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'pix_fmt' to value '0'
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'time_base' to value '1/1000'
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'pixel_aspect' to value '1/1'
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'sws_param' to value 'flags=2'
[graph 1 input from stream 0:0 @ 0x1893f40] Setting 'frame_rate' to value '24000/1001'
[graph 1 input from stream 0:0 @ 0x1893f40] w:1280 h:544 pixfmt:yuv420p tb:1/1000 fr:24000/1001 sar:1/1 sws_param:flags=2
[scaler for output stream 0:1 @ 0x190c400] Setting 'w' to value '1280'
[scaler for output stream 0:1 @ 0x190c400] Setting 'h' to value '720'
[scaler for output stream 0:1 @ 0x190c400] Setting 'flags' to value '0x4'
[scaler for output stream 0:1 @ 0x190c400] w:1280 h:720 flags:'0x4' interl:0
[format @ 0x190dea0] compat: called with args=[yuv420p]
[format @ 0x190dea0] Setting 'pix_fmts' to value 'yuv420p'
[AVFilterGraph @ 0x18e4160] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[scaler for output stream 0:1 @ 0x190c400] w:1280 h:544 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:yuv420p sar:45/34 flags:0x4
[libvpx @ 0x1913bc0] v1.3.0
[libvpx @ 0x1913bc0] --prefix=/usr --enable-vp8 --enable-vp9 --enable-runtime-cpu-detect --enable-shared --enable-postproc --enable-pic --disable-install-docs --disable-install-srcs
[libvpx @ 0x1913bc0] vpx_codec_enc_cfg
[libvpx @ 0x1913bc0] generic settings
g_usage: 0
g_threads: 0
g_profile: 0
g_w: 320
g_h: 240
g_timebase: {1/30}
g_error_resilient: 0
g_pass: 0
g_lag_in_frames: 0
[libvpx @ 0x1913bc0] rate control settings
rc_dropframe_thresh: 0
rc_resize_allowed: 0
rc_resize_up_thresh: 60
rc_resize_down_thresh: 30
rc_end_usage: 0
rc_twopass_stats_in: (nil)(0)
rc_target_bitrate: 256
[libvpx @ 0x1913bc0] quantizer settings
rc_min_quantizer: 4
rc_max_quantizer: 63
[libvpx @ 0x1913bc0] bitrate tolerance
rc_undershoot_pct: 100
rc_overshoot_pct: 100
[libvpx @ 0x1913bc0] decoder buffer model
rc_buf_sz: 6000
rc_buf_initial_sz: 4000
rc_buf_optimal_sz: 5000
[libvpx @ 0x1913bc0] 2 pass rate control settings
rc_2pass_vbr_bias_pct: 50
rc_2pass_vbr_minsection_pct: 0
rc_2pass_vbr_maxsection_pct: 400
[libvpx @ 0x1913bc0] keyframing settings
kf_mode: 1
kf_min_dist: 0
kf_max_dist: 128
[libvpx @ 0x1913bc0]
[libvpx @ 0x1913bc0] vpx_codec_enc_cfg
[libvpx @ 0x1913bc0] generic settings
g_usage: 0
g_threads: 0
g_profile: 0
g_w: 1280
g_h: 720
g_timebase: {1001/24000}
g_error_resilient: 0
g_pass: 0
g_lag_in_frames: 25
[libvpx @ 0x1913bc0] rate control settings
rc_dropframe_thresh: 0
rc_resize_allowed: 0
rc_resize_up_thresh: 60
rc_resize_down_thresh: 30
rc_end_usage: 0
rc_twopass_stats_in: (nil)(0)
rc_target_bitrate: 128
[libvpx @ 0x1913bc0] quantizer settings
rc_min_quantizer: 2
rc_max_quantizer: 31
[libvpx @ 0x1913bc0] bitrate tolerance
rc_undershoot_pct: 100
rc_overshoot_pct: 100
[libvpx @ 0x1913bc0] decoder buffer model
rc_buf_sz: 2000
rc_buf_initial_sz: 1500
rc_buf_optimal_sz: 1666
[libvpx @ 0x1913bc0] 2 pass rate control settings
rc_2pass_vbr_bias_pct: 50
rc_2pass_vbr_minsection_pct: 0
rc_2pass_vbr_maxsection_pct: 200
[libvpx @ 0x1913bc0] keyframing settings
kf_mode: 1
kf_min_dist: 0
kf_max_dist: 12
[libvpx @ 0x1913bc0]
[libvpx @ 0x1913bc0] vpx_codec_control
[libvpx @ 0x1913bc0] VP8E_SET_CPUUSED: 1
[libvpx @ 0x1913bc0] VP8E_SET_ARNR_MAXFRAMES: 0
[libvpx @ 0x1913bc0] VP8E_SET_ARNR_STRENGTH: 3
[libvpx @ 0x1913bc0] VP8E_SET_ARNR_TYPE: 3
[libvpx @ 0x1913bc0] VP8E_SET_NOISE_SENSITIVITY: 0
[libvpx @ 0x1913bc0] VP8E_SET_TOKEN_PARTITIONS: 0
[libvpx @ 0x1913bc0] VP8E_SET_STATIC_THRESHOLD: 0
[libvpx @ 0x1913bc0] VP8E_SET_CQ_LEVEL: 0
[libvpx @ 0x1913bc0] Using deadline: 1000000
Output #0, ffm, to 'http://server:8090/feed.ffm':
Metadata:
creation_time : now
encoder : Lavf55.48.100
Stream #0:0(eng), 0, 1/1000000: Audio: vorbis (libvorbis), 22050 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc55.69.100 libvorbis
Stream #0:1, 0, 1/1000000: Video: vp8 (libvpx), yuv420p, 1280x720 [SAR 45:34 DAR 40:17], 1001/24000, q=2-31, 128 kb/s, 23.98 fps, 1000k tbn, 23.98 tbc (default)
Metadata:
encoder : Lavc55.69.100 libvpx
Stream mapping:
Stream #0:1 -> #0:0 (ac3 (native) -> vorbis (libvorbis))
Stream #0:0 -> #0:1 (h264 (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[h264 @ 0x1ba4660] no picture
[h264 @ 0x1be9800] no picture
frame= 25 fps=2.3 q=0.0 Lsize= 24kB time=00:00:01.32 bitrate= 148.9kbits/s
video:16kB audio:0kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 50.532894%
Input file #0 (The Holy Mountain_720p.mkv):
Input stream #0:0 (video): 31 packets read (14093 bytes); 26 frames decoded;
Input stream #0:1 (audio): 42 packets read (107520 bytes); 42 frames decoded (64512 samples);
Input stream #0:2 (audio): 8 packets read (20480 bytes);
Input stream #0:3 (audio): 8 packets read (20480 bytes);
Input stream #0:4 (subtitle): 0 packets read (0 bytes);
Input stream #0:5 (subtitle): 0 packets read (0 bytes);
Input stream #0:6 (subtitle): 0 packets read (0 bytes);
Input stream #0:7 (subtitle): 0 packets read (0 bytes);
Input stream #0:8 (subtitle): 0 packets read (0 bytes);
Input stream #0:9 (subtitle): 0 packets read (0 bytes);
Input stream #0:10 (subtitle): 0 packets read (0 bytes);
Input stream #0:11 (subtitle): 0 packets read (0 bytes);
Total: 89 packets (162573 bytes) demuxed
Output file #0 (http://server:8090/feed.ffm):
Output stream #0:0 (audio): 462 frames encoded (29568 samples); 59 packets muxed (59 bytes);
Output stream #0:1 (video): 25 frames encoded; 25 packets muxed (16267 bytes);
Total: 84 packets (16326 bytes) muxed
74 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x1908e80] Statistics: 0 seeks, 6 writeouts
[AVIOContext @ 0x1893680] Statistics: 360448 bytes read, 0 seeks
Received signal 2: terminating.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment