The Following User Says Thank You to lostinmirkwood For This Useful Post: | ||
|
2010-06-24
, 01:59
|
|
Posts: 128 |
Thanked: 232 times |
Joined on Sep 2009
@ New Jersey, USA
|
#22
|
|
2010-06-24
, 03:24
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#23
|
|
2010-09-13
, 19:09
|
|
Posts: 417 |
Thanked: 200 times |
Joined on Apr 2010
@ Germany
|
#24
|
|
2010-09-14
, 04:17
|
|
Posts: 305 |
Thanked: 71 times |
Joined on Dec 2009
@ 'Nam
|
#25
|
|
2011-07-10
, 12:03
|
Posts: 100 |
Thanked: 543 times |
Joined on Jun 2010
@ Kiev, Ukraine
|
#26
|
x11vnc
echo "Please, select window with vncviewer opened" WINGEOM=$(xwininfo | grep geometry | tr ' ' '+') OFFSET=$(echo $WINGEOM | cut -d'+' -f5,6 | tr '+' ',' | sed 's:^:+:') ffmpeg -f x11grab -r 15 -s 800x480 -i :0.0$OFFSET -vcodec libx264 -vpre lossless_ultrafast -threads 0 -y n900_screencast_$(date +%H_%M_%S).mkv
$ ffmpeg -f x11grab -s 800x480 -r 24 -b 100k -bf 2 -g 300 -i :0.0 -ar 22050 -ab 64k -acodec libmp3lame outputvid.mpeg
cvlc v4l2:///dev/video1 :v4l2-standard=0 :v4l2-input=1 :input-slave=alsa://plughw:2,0 --sout='#transcode{vcodec=mp2v,vb=4096,acodec=mp2a,ab=192,scale=1,channels=2,deinterlace,audio-sync}:duplicate{dst=display,dst=std{access=file, mux=ps,dst="out.mpg"}}'
|
2012-10-08
, 17:05
|
Posts: 204 |
Thanked: 423 times |
Joined on Jan 2011
|
#27
|
ffmpeg -f rawvideo -pix_fmt rgb565 -s 800x480 -r 10 -i tcp://192.168.2.14:8000?listen capture.mp4
ffmpeg -f x11grab -s 800x480 -r 10 -i :0.0 -f rawvideo tcp://192.168.2.14:8000
There aren't any switches that I'm aware (besides the -ncache 10) or I would have used them (but there's so many I really only poked around).
First I determined what my issue was, ffmpeg on my laptop or vnc on my network and I found that it was mostly vnc.
By changing the n900's network connection to DISABLE power-saving mode for my home network and by plugging it into the wall. I got a usable response 30% faster by my eye. Are you over-clocking your kernel, that has risks but may help?
Be sure that you're running vnc unencrypted. (if it's on your local network I figured I'd be fine unencrypted, plus x11VNC only allows for one connection by default) If you're using ubuntu Remote Desktop in View only mode seems a lot faster.
Don't forget that you can always use one of the may non-linear video editors to cut out some of the delay. I did that for a lot of my video because the photo editing can take 15secs at times. It's a fairly easy process, just snip out sections of delay.
Also check top on your n900 to make sure nothing else like pulseaudio is running away your processor.