|
发表于 2010-5-3 15:04:08
|
显示全部楼层
首先,先感謝lolilolicon提供的工具,讓我可以更輕鬆的使用ffmpeg 來錄製桌面.
現在,我還有另一個需求,就是當我在遠端時,使用VNC Client登入遠端的Server. 此時,我想同樣利用ffcast來錄製桌面(在VNC上看到的畫面),但無法成功,會出現下列錯誤訊息,因此想請教各位,看各位能否幫忙或提供解決的方向,謝謝!!
alex@taipei:~/lolilolicon-ffcast-a2d2c42$ ffcast --debug -b -o cast.mkv(DD) Checking display :2.0 with `xrectsel :2.0 checkdpy'
xrectsel: Valid display_name :2.0
ls: cannot access /usr/share/ffmpeg: No such file or directory
(DD) VCODEC: -vcodec libx264 -vpre main -vpre lossless_slow -crf 0
(DD) FORMAT: -f h264
(DD) geometry: root: 1024x768
==> Click to select 1 window(s) to be captured
-> Selecting 1 of 1 window(s)
(DD) geometry: (0,0) (0,0)
(DD) geometry: mod 2: 1024x768
(DD) geometry: in screen:1024x768+0+0
==> Capture geometry: 1024x768+0+0
(DD) ffmpeg: command line:
ffmpeg -r 15 -v 1 -s 1024x768 -an -f x11grab -i :2.0+0,0 -vcodec libx264 -vpre main -vpre lossless_slow -crf 0 -f h264 -sameq "cast.mkv"
==> Capture started, press [q] to finish
FFmpeg version SVN-r23008, Copyright (c) 2000-2010 the FFmpeg developers
built on May 3 2010 11:42:42 with gcc 4.4.1
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 0 / 50.15. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
[x11grab @ 0x8ec1420]device: :2.0+0,0 -> display: :2.0 x: 0 y: 0 width: 1024 height: 768
Xlib: extension "Generic Event Extension" missing on display ":2.0".
[x11grab @ 0x8ec1420]shared memory extension found
/usr/bin/ffcast: line 485: 21069 Segmentation fault (core dumped) ffmpeg -r ${FPS} -v 1 -s ${LEN_X}x${LEN_Y} -an -f x11grab -i ${CAPDPY}+${POS_X},${POS_Y} ${VCODEC} ${FORMAT} ${CASTSPAN} -sameq "${OUTPUT}" 2> "${DEBUG}"
(EE) ffmpeg: failed, try running with --debug
==> Output filename: cast.mkv
alex@taipei:~/lolilolicon-ffcast-a2d2c42$ |
|