[AppleScript] 纯文本查看 复制代码 liuqideMacBook-Pro:dash liuqi$ ./ffmpeg -pix_fmt nv12 -f avfoundation -i 2 -f flv output.flv -pix_fmt rgb32 -y -f opengl "window title"
ffmpeg version N-96016-gbc35cef78d Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
configuration: --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples=fate-suite/ --enable-libopencv --enable-libopus --enable-opengl
libavutil 56. 36.101 / 56. 36.101
libavcodec 58. 64.101 / 58. 64.101
libavformat 58. 35.101 / 58. 35.101
libavdevice 58. 9.101 / 58. 9.101
libavfilter 7. 68.100 / 7. 68.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
[AVFoundation indev @ 0x7ff734408600] Configuration of video device failed, falling back to default.
[avfoundation @ 0x7ff734809400] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, avfoundation, from '2':
Duration: N/A, start: 114180.872000, bitrate: N/A
Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 1920x1080, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> flv1 (flv))
Stream #0:0 -> #1:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, flv, to 'output.flv':
Metadata:
encoder : Lavf58.35.101
Stream #0:0: Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 1920x1080, q=2-31, 200 kb/s, 1000k fps, 1k tbn, 1000k tbc
Metadata:
encoder : Lavc58.64.101 flv
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[opengl outdev @ 0x7ff734444d40] SDL driver: 'cocoa'.
Output #1, opengl, to 'window title':
Metadata:
encoder : Lavf58.35.101
Stream #1:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, q=2-31, 66355200000 kb/s, 1000k fps, 1000k tbn, 1000k tbc
Metadata:
encoder : Lavc58.64.101 rawvideo
frame= 51 fps= 22 q=31.0 Lq=-0.0 size= 1046kB time=00:00:02.30 bitrate=3724.2kbits/s speed= 1x
ffmpeg有个opengl的device输出,这个是可以直接播放的 |