| 1 | ➜ ffmpeg git:(master) ✗ ./ffmpeg -v 9 -loglevel 99 -vcodec h264 -f v4l2 -i /dev/video0 -y out.mkv
|
|---|
| 2 | ffmpeg version N-54891-g419a3d8 Copyright (c) 2000-2013 the FFmpeg developers
|
|---|
| 3 | built on Jul 22 2013 16:49:19 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
|
|---|
| 4 | configuration: --enable-indev=alsa
|
|---|
| 5 | libavutil 52. 40.100 / 52. 40.100
|
|---|
| 6 | libavcodec 55. 18.102 / 55. 18.102
|
|---|
| 7 | libavformat 55. 12.102 / 55. 12.102
|
|---|
| 8 | libavdevice 55. 3.100 / 55. 3.100
|
|---|
| 9 | libavfilter 3. 81.102 / 3. 81.102
|
|---|
| 10 | libswscale 2. 4.100 / 2. 4.100
|
|---|
| 11 | libswresample 0. 17.103 / 0. 17.103
|
|---|
| 12 | Splitting the commandline.
|
|---|
| 13 | Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
|
|---|
| 14 | Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
|
|---|
| 15 | Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264'.
|
|---|
| 16 | Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
|
|---|
| 17 | Reading option '-i' ... matched as input file with argument '/dev/video0'.
|
|---|
| 18 | Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
|
|---|
| 19 | Reading option 'out.mkv' ... matched as output file.
|
|---|
| 20 | Finished splitting the commandline.
|
|---|
| 21 | Parsing a group of options: global .
|
|---|
| 22 | Applying option v (set logging level) with argument 9.
|
|---|
| 23 | Applying option y (overwrite output files) with argument 1.
|
|---|
| 24 | Successfully parsed a group of options.
|
|---|
| 25 | Parsing a group of options: input file /dev/video0.
|
|---|
| 26 | Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264.
|
|---|
| 27 | Applying option f (force format) with argument v4l2.
|
|---|
| 28 | Successfully parsed a group of options.
|
|---|
| 29 | Opening an input file: /dev/video0.
|
|---|
| 30 | [video4linux2,v4l2 @ 0x2ffd9c0] fd:3 capabilities:4000001
|
|---|
| 31 | [video4linux2,v4l2 @ 0x2ffd9c0] Current input_channel: 0, input_name: Camera 1
|
|---|
| 32 | [video4linux2,v4l2 @ 0x2ffd9c0] Querying the device for the current frame size
|
|---|
| 33 | [video4linux2,v4l2 @ 0x2ffd9c0] Setting frame size to 1920x1080
|
|---|
| 34 | [video4linux2,v4l2 @ 0x2ffd9c0] All info found
|
|---|
| 35 | Input #0, video4linux2,v4l2, from '/dev/video0':
|
|---|
| 36 | Duration: N/A, start: 676612.020004, bitrate: N/A
|
|---|
| 37 | Stream #0:0, 8, 1/1000000: Video: h264 (Constrained Baseline), yuvj420p, 1920x1080 [SAR 1:1 DAR 16:9], 1/60, -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
|
|---|
| 38 | Successfully opened the file.
|
|---|
| 39 | Parsing a group of options: output file out.mkv.
|
|---|
| 40 | Successfully parsed a group of options.
|
|---|
| 41 | Opening an output file: out.mkv.
|
|---|
| 42 | Successfully opened the file.
|
|---|
| 43 | detected 4 logical cores
|
|---|
| 44 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'video_size' to value '1920x1080'
|
|---|
| 45 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'pix_fmt' to value '12'
|
|---|
| 46 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'time_base' to value '1/1000000'
|
|---|
| 47 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'pixel_aspect' to value '1/1'
|
|---|
| 48 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'sws_param' to value 'flags=2'
|
|---|
| 49 | [graph 0 input from stream 0:0 @ 0x30ccec0] Setting 'frame_rate' to value '30/1'
|
|---|
| 50 | [graph 0 input from stream 0:0 @ 0x30ccec0] w:1920 h:1080 pixfmt:yuvj420p tb:1/1000000 fr:30/1 sar:1/1 sws_param:flags=2
|
|---|
| 51 | [format @ 0x30cd640] compat: called with args=[yuv420p]
|
|---|
| 52 | [format @ 0x30cd640] Setting 'pix_fmts' to value 'yuv420p'
|
|---|
| 53 | [auto-inserted scaler 0 @ 0x30cdac0] Setting 'flags' to value '0x4'
|
|---|
| 54 | [auto-inserted scaler 0 @ 0x30cdac0] w:iw h:ih flags:'0x4' interl:0
|
|---|
| 55 | [format @ 0x30cd640] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
|
|---|
| 56 | [AVFilterGraph @ 0x2ff5fa0] query_formats: 4 queried, 3 merged, 1 already done, 0 delayed
|
|---|
| 57 | [swscaler @ 0x2fee8c0] deprecated pixel format used, make sure you did set range correctly
|
|---|
| 58 | [auto-inserted scaler 0 @ 0x30cdac0] w:1920 h:1080 fmt:yuvj420p sar:1/1 -> w:1920 h:1080 fmt:yuv420p sar:1/1 flags:0x4
|
|---|
| 59 | [mpeg4 @ 0x30d0ce0] intra_quant_bias = 0 inter_quant_bias = -64
|
|---|
| 60 | Output #0, matroska, to 'out.mkv':
|
|---|
| 61 | Metadata:
|
|---|
| 62 | encoder : Lavf55.12.102
|
|---|
| 63 | Stream #0:0, 0, 1/1000: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1/30, q=2-31, 200 kb/s, 1k tbn, 30 tbc
|
|---|
| 64 | Stream mapping:
|
|---|
| 65 | Stream #0:0 -> #0:0 (h264 -> mpeg4)
|
|---|
| 66 | Press [q] to stop, [?] for help
|
|---|
| 67 | [matroska @ 0x30d0760] Writing block at offset 589, size 22479, pts 0, dts 0, duration 33, flags 128
|
|---|
| 68 | [matroska @ 0x30d0760] Starting new cluster at offset 23076 bytes, pts 133
|
|---|
| 69 | [matroska @ 0x30d0760] Writing block at offset 23091, size 22479, pts 133, dts 133, duration 33, flags 128
|
|---|
| 70 | [matroska @ 0x30d0760] Writing block at offset 45578, size 1451, pts 200, dts 200, duration 33, flags 0
|
|---|
| 71 | [matroska @ 0x30d0760] Writing block at offset 47036, size 1425, pts 267, dts 267, duration 33, flags 0
|
|---|
| 72 | [matroska @ 0x30d0760] Writing block at offset 48468, size 3101, pts 333, dts 333, duration 33, flags 0
|
|---|
| 73 | [matroska @ 0x30d0760] Writing block at offset 51576, size 2749, pts 400, dts 400, duration 33, flags 0
|
|---|
| 74 | [matroska @ 0x30d0760] Writing block at offset 54332, size 3237, pts 467, dts 467, duration 33, flags 0
|
|---|
| 75 | [matroska @ 0x30d0760] Writing block at offset 57576, size 14468, pts 533, dts 533, duration 33, flags 0
|
|---|
| 76 | [matroska @ 0x30d0760] Writing block at offset 72051, size 4093, pts 600, dts 600, duration 33, flags 0
|
|---|
| 77 | [matroska @ 0x30d0760] Writing block at offset 76151, size 10767, pts 667, dts 667, duration 33, flags 0
|
|---|
| 78 | [matroska @ 0x30d0760] Writing block at offset 86925, size 7199, pts 733, dts 733, duration 33, flags 0
|
|---|
| 79 | [matroska @ 0x30d0760] Writing block at offset 94131, size 1452, pts 800, dts 800, duration 33, flags 0
|
|---|
| 80 | [matroska @ 0x30d0760] Writing block at offset 95590, size 1548, pts 867, dts 867, duration 33, flags 0
|
|---|
| 81 | [matroska @ 0x30d0760] Starting new cluster at offset 97145 bytes, pts 933
|
|---|
| 82 | [matroska @ 0x30d0760] Writing block at offset 97161, size 22559, pts 933, dts 933, duration 33, flags 128
|
|---|
| 83 | [matroska @ 0x30d0760] Writing block at offset 119728, size 24517, pts 1000, dts 1000, duration 33, flags 0
|
|---|
| 84 | [matroska @ 0x30d0760] Writing block at offset 144253, size 1724, pts 1067, dts 1067, duration 33, flags 0
|
|---|
| 85 | [matroska @ 0x30d0760] Writing block at offset 145984, size 1181, pts 1133, dts 1133, duration 33, flags 0
|
|---|
| 86 | [matroska @ 0x30d0760] Writing block at offset 147172, size 1220, pts 1200, dts 1200, duration 33, flags 0
|
|---|
| 87 | [matroska @ 0x30d0760] Writing block at offset 148399, size 1519, pts 1267, dts 1267, duration 33, flags 0
|
|---|
| 88 | [matroska @ 0x30d0760] Writing block at offset 149925, size 1565, pts 1300, dts 1300, duration 33, flags 0
|
|---|
| 89 | [matroska @ 0x30d0760] Writing block at offset 151497, size 1551, pts 1367, dts 1367, duration 33, flags 0
|
|---|
| 90 | [matroska @ 0x30d0760] Writing block at offset 153055, size 1249, pts 1433, dts 1433, duration 33, flags 0
|
|---|
| 91 | [matroska @ 0x30d0760] Writing block at offset 154311, size 1210, pts 1467, dts 1467, duration 33, flags 0
|
|---|
| 92 | [matroska @ 0x30d0760] Writing block at offset 155528, size 1218, pts 1533, dts 1533, duration 33, flags 0
|
|---|
| 93 | [matroska @ 0x30d0760] Writing block at offset 156753, size 1297, pts 1600, dts 1600, duration 33, flags 0
|
|---|
| 94 | [matroska @ 0x30d0760] Starting new cluster at offset 158057 bytes, pts 1667
|
|---|
| 95 | [matroska @ 0x30d0760] Writing block at offset 158073, size 22707, pts 1667, dts 1667, duration 33, flags 128
|
|---|
| 96 | [matroska @ 0x30d0760] Writing block at offset 180788, size 22025, pts 1700, dts 1700, duration 33, flags 0
|
|---|
| 97 | [matroska @ 0x30d0760] Writing block at offset 202821, size 21585, pts 1767, dts 1767, duration 33, flags 0
|
|---|
| 98 | [matroska @ 0x30d0760] Writing block at offset 224414, size 21610, pts 1833, dts 1833, duration 33, flags 0
|
|---|
| 99 | [matroska @ 0x30d0760] Writing block at offset 246032, size 21614, pts 1867, dts 1867, duration 33, flags 0
|
|---|
| 100 | [matroska @ 0x30d0760] Writing block at offset 267654, size 21634, pts 1933, dts 1933, duration 33, flags 0
|
|---|
| 101 | [matroska @ 0x30d0760] Writing block at offset 289296, size 21599, pts 2000, dts 2000, duration 33, flags 0
|
|---|
| 102 | [matroska @ 0x30d0760] Writing block at offset 310903, size 21583, pts 2067, dts 2067, duration 33, flags 0
|
|---|
| 103 | [matroska @ 0x30d0760] Writing block at offset 332494, size 21620, pts 2133, dts 2133, duration 33, flags 0
|
|---|
| 104 | [matroska @ 0x30d0760] Writing block at offset 354122, size 21593, pts 2200, dts 2200, duration 33, flags 0
|
|---|
| 105 | [matroska @ 0x30d0760] Writing block at offset 375723, size 21517, pts 2267, dts 2267, duration 33, flags 0
|
|---|
| 106 | [matroska @ 0x30d0760] Writing block at offset 397248, size 21591, pts 2333, dts 2333, duration 33, flags 0
|
|---|
| 107 | [matroska @ 0x30d0760] Starting new cluster at offset 418847 bytes, pts 2367
|
|---|
| 108 | [matroska @ 0x30d0760] Writing block at offset 418863, size 22688, pts 2367, dts 2367, duration 33, flags 128
|
|---|
| 109 | [matroska @ 0x30d0760] Writing block at offset 441559, size 22014, pts 2433, dts 2433, duration 33, flags 0
|
|---|
| 110 | [matroska @ 0x30d0760] Writing block at offset 463581, size 21566, pts 2500, dts 2500, duration 33, flags 0
|
|---|
| 111 | [matroska @ 0x30d0760] Writing block at offset 485155, size 21546, pts 2567, dts 2567, duration 33, flags 0
|
|---|
| 112 | [matroska @ 0x30d0760] Writing block at offset 506709, size 21505, pts 2600, dts 2600, duration 33, flags 0
|
|---|
| 113 | [matroska @ 0x30d0760] Writing block at offset 528222, size 21488, pts 2667, dts 2667, duration 33, flags 0
|
|---|
| 114 | [matroska @ 0x30d0760] Writing block at offset 549718, size 21499, pts 2733, dts 2733, duration 33, flags 0
|
|---|
| 115 | [matroska @ 0x30d0760] Writing block at offset 571225, size 21467, pts 2800, dts 2800, duration 33, flags 0
|
|---|
| 116 | [matroska @ 0x30d0760] Writing block at offset 592700, size 21519, pts 2833, dts 2833, duration 33, flags 0
|
|---|
| 117 | [matroska @ 0x30d0760] Writing block at offset 614227, size 21514, pts 2900, dts 2900, duration 33, flags 0
|
|---|
| 118 | [matroska @ 0x30d0760] Writing block at offset 635749, size 21459, pts 2967, dts 2967, duration 33, flags 0
|
|---|
| 119 | [matroska @ 0x30d0760] Writing block at offset 657216, size 21532, pts 3033, dts 3033, duration 33, flags 0
|
|---|
| 120 | [matroska @ 0x30d0760] Starting new cluster at offset 678756 bytes, pts 3100its/s
|
|---|
| 121 | [matroska @ 0x30d0760] Writing block at offset 678772, size 22692, pts 3100, dts 3100, duration 33, flags 128
|
|---|
| 122 | [matroska @ 0x30d0760] Writing block at offset 701472, size 21964, pts 3400, dts 3400, duration 33, flags 0
|
|---|
| 123 | [matroska @ 0x30d0760] Writing block at offset 723444, size 21519, pts 3467, dts 3467, duration 33, flags 0
|
|---|
| 124 | [matroska @ 0x30d0760] Writing block at offset 744971, size 21516, pts 3533, dts 3533, duration 33, flags 0
|
|---|
| 125 | [matroska @ 0x30d0760] Writing block at offset 766495, size 21508, pts 3567, dts 3567, duration 33, flags 0
|
|---|
| 126 | [matroska @ 0x30d0760] Writing block at offset 788011, size 21497, pts 3633, dts 3633, duration 33, flags 0
|
|---|
| 127 | [matroska @ 0x30d0760] Writing block at offset 809516, size 21517, pts 3700, dts 3700, duration 33, flags 0
|
|---|
| 128 | [matroska @ 0x30d0760] Writing block at offset 831041, size 21454, pts 3733, dts 3733, duration 33, flags 0
|
|---|
| 129 | [matroska @ 0x30d0760] Writing block at offset 852503, size 21501, pts 3800, dts 3800, duration 33, flags 0
|
|---|
| 130 | [matroska @ 0x30d0760] Writing block at offset 874012, size 21514, pts 3867, dts 3867, duration 33, flags 0
|
|---|
| 131 | [matroska @ 0x30d0760] Writing block at offset 895534, size 21519, pts 3900, dts 3900, duration 33, flags 0
|
|---|
| 132 | [matroska @ 0x30d0760] end duration = 3933
|
|---|
| 133 | frame= 60 fps= 16 q=31.0 Lsize= 896kB time=00:00:03.93 bitrate=1865.6kbits/s
|
|---|
| 134 | video:894kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.129260%
|
|---|
| 135 | 68 frames successfully decoded, 0 decoding errors
|
|---|
| 136 | [AVIOContext @ 0x30d1140] Statistics: 54 seeks, 98 writeouts
|
|---|