this code will run ffmpeg if installed and record your desktop actions into an mp4 video
I installed ffmpeg from Puppy 5.2 in the tweaks section of Lucid News / Quickpet
With Shadows help (programming buddy), we were able to select the screen resolution automatically
Here are the i686 ffmpeg libraries that are *not* included in Lucid 5.2. It would be interesting to see if anyone noticed a difference or perhaps they even lowered the cpu usage in playing videos. Who knows?
They are optimized for i686 cpu's when they are compiled. The versions that *are* in luci-246 are compiled for i386 computers (lowest common denominator). http://distro.ibiblio.org/pub/linux/dis ... -lucid.pet
Lobster wrote:Here are the i686 ffmpeg libraries that are *not* included in Lucid 5.2. It would be interesting to see if anyone noticed a difference or perhaps they even lowered the cpu usage in playing videos. Who knows?
They are optimized for i686 cpu's when they are compiled. The versions that *are* in luci-246 are compiled for i386 computers (lowest common denominator). http://distro.ibiblio.org/pub/linux/dis ... -lucid.pet
Lobster wrote:Is there a better way to stop the video?
I recall reading somewhere that if you run it from a terminal then Ctrl+C would halt/end recording, but I can't find the original source to confirm it. Still, worth a try and probably neater than killing FFmpeg if it works..
Lobster wrote:Is there a better way to stop the video?
I recall reading somewhere that if you run it from a terminal then Ctrl+C would halt/end recording, but I can't find the original source to confirm it. Still, worth a try and probably neater than killing FFmpeg if it works..
works, but app is better run/stopped by clicking on icons so terminal doesn't appear in video.
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.
Configuration options:
--disable-static do not build static libraries [no]
--enable-shared build shared libraries [no]
--enable-gpl allow use of GPL code, the resulting libs
and binaries will be under GPL [no]
--enable-version3 upgrade (L)GPL to version 3 [no]
--enable-nonfree allow use of nonfree code, the resulting libs
and binaries will be unredistributable [no]
--disable-doc do not build documentation
--disable-ffmpeg disable ffmpeg build
--disable-ffplay disable ffplay build
--disable-ffprobe disable ffprobe build
--disable-ffserver disable ffserver build
--disable-avdevice disable libavdevice build
--disable-avcodec disable libavcodec build
--disable-avcore disable libavcore build
--disable-avformat disable libavformat build
--disable-swscale disable libswscale build
--enable-postproc enable GPLed postprocessing support [no]
--disable-avfilter disable video filter support [no]
--disable-pthreads disable pthreads [auto]
--enable-w32threads use Win32 threads [no]
--enable-x11grab enable X11 grabbing [no]
--disable-network disable network support [no]
--disable-mpegaudio-hp faster (but less accurate) MPEG audio decoding [no]
--enable-gray enable full grayscale support (slower color)
--disable-swscale-alpha disable alpha channel support in swscale
(list goes on)
Fortunately, ffmpeg compiles fairly easily, 0.6.1 is the latest stable.. I compiled out of svn for spup the other day, only issue was x264, I had to recompile that with --enable-shared
As for the stopping issue, I think ffmpeg has stop commands coded into it using the keyboard. A look at the man page might shed some light.
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.
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.
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.