ffmpeg record your desktop but how to stop? [Solved]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#16 Post by jpeps »

trapster wrote:The one I have shows --enable-x11grab was configured. ?
Yes, but it apparently failed. Here's the ubunto config (used in lucid), which worked:

Code: Select all

FFmpeg version 0.6-4:0.6-2ubuntu4, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  5 2010 09:49:10 with gcc 4.4.5
  configuration: --extra-version=4:0.6-2ubuntu4 --prefix=/usr --enable-avfilter --enable-avfilter-lavf  --enable-vdpau --enable-bzlib --enablelibgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads-enable-zlib--enable-libvpx --disable-stripping --enable-runtime-cpudetectenable-gpl --enable-postproc --enable-x11grab --enablelibdc1394 --enable-shared --disable-static
 libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
edit: although it complains of a "library mismatch"; ffmpeg probably needs a fresh compile.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

Re: ffmpeg record your desktop but how to stop? [Solved]

#17 Post by jpeps »

TheAsterisk! wrote:
jpeps wrote:works, but app is better run/stopped by clicking on icons so terminal doesn't appear in video.
I'd just as soon run the script with "xterm -e" in its *.desktop file, switch to another workspace, record my stuff, then switch back and halt/close it. You could trim away the few seconds of on-screen terminal time at the beginning and end with FFmpeg afterwards, too.

Well, to each his or her own, I suppose.
BTW/ "q" terminates ffmpeg


I did a fresh compile for Lucid-518:
http://murga-linux.com/puppy/viewtopic. ... 365#482365

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#18 Post by 01micko »

big_bass wrote: :)

this can be configured many ways and far from simple
if you want a full version

Joe
Thanks Joe, yes I should have qualified my statement :)

let me say, compiles fairly easily with these options (btw, these are similar to shinobar's)

Code: Select all

FFmpeg version SVN-r26159, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec 30 2010 09:43:50 with gcc 4.4.4
  configuration: --prefix=/usr --cpu=i686 --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-pthreads --enable-small --enable-postproc --enable-libvorbis --enable-gpl --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-runtime-cpudetect --enable-x11grab --enable-libdc1394 --enable-libschroedinger --enable-libtheora --enable-libxvid --enable-swscale --enable-libvpx
______________________________________________

jpeps, yes "q" is the command to quit ffmpeg! (and it works)

Cheers
Puppy Linux Blog - contact me for access

stu90

#19 Post by stu90 »

I guess my laptop is lacking abit i the power department as i only get a low fps but using Lobsters script (changed output file to avi instead) and Jpegs ffmpeg .pet works here and the q key to stop.

Would be a nice feature to have built into the newer puppies. :wink:

User avatar
TheAsterisk!
Posts: 406
Joined: Tue 10 Feb 2009, 08:52

#20 Post by TheAsterisk! »

stu90 wrote:Use avidemux for trimming videos as you don't have to re-encode the video file.
There are options you can pass FFmpeg to simply copy the stream. Works fine for both audio and video. "-acodec copy" and "-vcodec copy" are involved somewhere, but as I have a poor memory I don't remember the syntax. A while ago I made a hacky little script to compensate for that, though.

If anyone is interested, I could post it for what it's worth.

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#21 Post by big_bass »

Hey 01micko


Thanks for posting the config options that were used
that makes the difference when you try and compile the package easily :D

*good to see you are on the slackware track again

Joe

Post Reply