Advertisement
Guest User

nemo mobile screenshot

a guest
Mar 8th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. [root@localhost ~]# cat screenshot.sh
  2. appenddate=_$(date '+%d%b%y-%H%M%S')
  3. fname=screenshot$appenddate.png
  4. gst-launch-0.10 ximagesrc num-buffers=1 ! ffmpegcolorspace ! pngenc ! filesink location=$fname
  5. [root@localhost ~]# sh screenshot.sh
  6. Setting pipeline to PAUSED ...
  7. ERROR: Pipeline doesn't want to pause.
  8. ERROR: from element /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0: Could not open X display for reading
  9. Additional debug info:
  10. gstximagesrc.c(121): gst_ximage_src_open_display (): /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0:
  11. NULL returned from getting xcontext
  12. Setting pipeline to NULL ...
  13. Freeing pipeline ...
  14. [root@localhost ~]# ls -lh
  15. total 4.0K
  16. -rw-r--r-- 1 root root 165 2013-03-08 13:10 screenshot.sh
  17. -rw-r--r-- 1 root root 0 2013-03-08 13:10 screenshot_08Mar13-131045.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement