My avfoundation device list is as follows: $ ffmpeg -f avfoundation -list_devices true -i "" ffmpeg version N-78637-g7586b3a Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 7.0.2 (clang-700.1.81) configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libwavpack --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libxavs --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-librtmp libavutil 55. 18.100 / 55. 18.100 libavcodec 57. 24.105 / 57. 24.105 libavformat 57. 26.100 / 57. 26.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 35.100 / 6. 35.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [AVFoundation input device @ 0x102c353a0] AVFoundation video devices: [AVFoundation input device @ 0x102c353a0] [0] FaceTime HD カメラ(内蔵) [AVFoundation input device @ 0x102c353a0] [1] Capture screen 0 [AVFoundation input device @ 0x102c353a0] AVFoundation audio devices: [AVFoundation input device @ 0x102c353a0] [0] Soundflower (2ch) [AVFoundation input device @ 0x102c353a0] [1] Built-in Microphone [AVFoundation input device @ 0x102c353a0] [2] Soundflower (64ch) : Input/output error
I can record my desktop with sound using Quicktime Player. But when I execute bellow ffmpeg command, the resulting video dose not have any sound. $ ffmpeg -f avfoundation -i "1:0" -vf "scale=1280:800,crop=1280:720:0:40" -c:v libx265 -preset slow -x265-params crf=25 -c:a libfdk_aac -b:a 160k test.mkv ffmpeg version N-78637-g7586b3a Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 7.0.2 (clang-700.1.81) configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libwavpack --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libxavs --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-librtmp libavutil 55. 18.100 / 55. 18.100 libavcodec 57. 24.105 / 57. 24.105 libavformat 57. 26.100 / 57. 26.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 35.100 / 6. 35.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [avfoundation @ 0x103800000] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x103800000] Supported pixel formats: [avfoundation @ 0x103800000] uyvy422 [avfoundation @ 0x103800000] yuyv422 [avfoundation @ 0x103800000] nv12 [avfoundation @ 0x103800000] 0rgb [avfoundation @ 0x103800000] bgr0 [avfoundation @ 0x103800000] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x103800000] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 189329.367833, bitrate: 2822 kb/s Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 2880x1800, 1000k tbr, 1000k tbn, 1000k tbc Stream #0:1: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s x265 [info]: HEVC encoder version 1.9+32-c2228fb8151d x265 [info]: build info [Mac OS X][clang 7.0.2][64 bit] 8bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 4:2:2 10 profile, Level-6.2 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: frame threads / pool features : 3 / wpp(12 rows) x265 [info]: Coding QT: max CU size, min CU size : 64 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra x265 [info]: ME / range / subpel / merge : star / 57 / 3 / 3 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2 x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0 x265 [info]: References / ref-limit cu / depth : 4 / 1 / 1 x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1 x265 [info]: Rate Control / qCompress : CRF-25.0 / 0.60 x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 x265 [info]: tools: signhide tmvp strong-intra-smoothing lslices=4 deblock sao Output #0, matroska, to 'test.mkv': Metadata: encoder : Lavf57.26.100 Stream #0:0: Video: hevc (libx265), yuv422p, 1280x720, q=2-31, 1000k fps, 1k tbn, 1000k tbc Metadata: encoder : Lavc57.24.105 libx265 Stream #0:1: Audio: aac (libfdk_aac) ([255][0][0][0] / 0x00FF), 44100 Hz, stereo, s16, 160 kb/s Metadata: encoder : Lavc57.24.105 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (libx265)) Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help frame= 16 fps=0.0 q=0.0 size= 0kB time=00:00:00.30 bitrate= 0.0kbits/s frame= 32 fps= 31 q=0.0 size= 0kB time=00:00:00.77 bitrate= 0.0kbits/s frame= 39 fps= 25 q=-0.0 size= 86kB time=00:00:00.80 bitrate= 871.7kbits/ frame= 52 fps= 25 q=-0.0 size= 94kB time=00:00:00.80 bitrate= 959.8kbits/ [SNIP] frame= 872 fps= 22 q=-0.0 size= 521kB time=00:00:36.86 bitrate= 115.7kbits/ frame= 884 fps= 22 q=-0.0 size= 530kB time=00:00:37.60 bitrate= 115.4kbits/ frame= 897 fps= 22 q=-0.0 size= 536kB time=00:00:38.46 bitrate= 114.2kbits/ frame= 907 fps= 22 q=-0.0 Lsize= 770kB time=00:00:40.46 bitrate= 155.9kbits/s speed=0.971x video:750kB audio:12kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 1.068543% x265 [info]: frame I: 4, Avg QP:26.56 kb/s: 478198000.00 x265 [info]: frame P: 276, Avg QP:33.73 kb/s: 12220000.00 x265 [info]: frame B: 627, Avg QP:36.87 kb/s: 1322385.96 x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% x265 [info]: consecutive B-frames: 26.8% 5.0% 23.9% 6.1% 38.2% encoded 907 frames in 41.66s (21.77 fps), 6741619.00 kb/s, Avg QP:35.87 if I choose libx264 instead of libx265, I can get the video with sound. But it's speed is a bit strange. Should I not to use ffmpeg screen capture function with sound? Best Regards, // Miya aka. TougenRoushi
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user