Using FFMPEG To Record Video & Sound in Puppy
Dont be ashamed. Install the new version of ffmpeg.
http://bkhome.org/blog/?viewDetailed=02756
# ./configure --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --disable-ffplay --enable-x11grab --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale --enable-network --enable-libcdio
http://bkhome.org/blog/?viewDetailed=02756
# ./configure --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --disable-ffplay --enable-x11grab --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale --enable-network --enable-libcdio
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Thanks for this pemasu!pemasu wrote:Dont be ashamed. Install the new version of ffmpeg.
http://bkhome.org/blog/?viewDetailed=02756
Edit
Didn't work though! Could I be missing some libraries I wonder?
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
What error do you get in console.
If I suspect that something is missing but I cant get grap of it...I test with strace command system calls output, in console: strace ffmpeg +the+options+for+ffmpeg
I have managed to solve some really strange missing files problems this way.
Dpup Exprimo launched gtkdialog apps 2.5 times slower than in other puppies.
strace some-gtkdialog-app showed that there was system call to the gconv-modules.cache and that call was unanswered. File not found with every location search. I installed that file and boom...gtk-dialog-apps started to behave.
If I suspect that something is missing but I cant get grap of it...I test with strace command system calls output, in console: strace ffmpeg +the+options+for+ffmpeg
I have managed to solve some really strange missing files problems this way.
Dpup Exprimo launched gtkdialog apps 2.5 times slower than in other puppies.
strace some-gtkdialog-app showed that there was system call to the gconv-modules.cache and that call was unanswered. File not found with every location search. I installed that file and boom...gtk-dialog-apps started to behave.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Here's the console output.
- Attachments
-
- pup_rec.png
- (12.79 KiB) Downloaded 1478 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
I've tried running with strace (not too sure what I am doing, but I tried to make a ffmpeg command similar to that in the script).
Edit I think the problem is with x264. I don't know how to fix it. I installed the x264 package from the repos, but that didn't help.
Edit I think the problem is with x264. I don't know how to fix it. I installed the x264 package from the repos, but that didn't help.
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
Using FFMPEG To Record Video & Sound in Puppy
Fine job on your recgui.zip Lobster.Works a treat in Slacko 5.3.1
Unfortunately it is a no go in Puppy Studio 3.3
The line in pup_rec, /usr/local/lib/gegl-0.1/ff-load.so was not available
because this directory structure in Studio3.3 is
/usr/local/lib/gegl-0.0/NO ff-load.so
I made a directory gegl-0.1 and installed ff-load.so.Still no joy.
so then I installed complete gegl-0.1 in 3.3 but still no luck.Not saving
video1.I turned my attention in 3.3 to rs and this was the message.Using
./rs this message appeared at the bottom" Unknown input format:'x11grab'
What this means is not clear to me but it has been fun anyway. Thanks
for all your effort and I guess now it is more Google search time.
cheers [/img]
Unfortunately it is a no go in Puppy Studio 3.3
The line in pup_rec, /usr/local/lib/gegl-0.1/ff-load.so was not available
because this directory structure in Studio3.3 is
/usr/local/lib/gegl-0.0/NO ff-load.so
I made a directory gegl-0.1 and installed ff-load.so.Still no joy.
so then I installed complete gegl-0.1 in 3.3 but still no luck.Not saving
video1.I turned my attention in 3.3 to rs and this was the message.Using
./rs this message appeared at the bottom" Unknown input format:'x11grab'
What this means is not clear to me but it has been fun anyway. Thanks
for all your effort and I guess now it is more Google search time.
cheers [/img]
- Attachments
-
- UnknownFormatx11grab.jpg
- (139.92 KiB) Downloaded 1523 times
For get X11grab to work i had to compile --with-pic .
x11grab showed up as configured but did not work for me either configured otherwise ,
x11grab showed up as configured but did not work for me either configured otherwise ,
http://www.murga-linux.com/puppy/viewtopic.php?p=596152#596152ffmpeg version 0.7.11, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 13 2012 23:04:34 with gcc 4.4.3
configuration: --disable-yasm --enable-sram --enable-pic --enable-zlib --enable-bzlib --enable-gpl --enable-x11grab
Here is a pet with a modification of Karl Godt's code from this thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=75139
If the pet does not work, it means that the installed ffmpeg does not support x11grab.
http://www.murga-linux.com/puppy/viewtopic.php?t=75139
If the pet does not work, it means that the installed ffmpeg does not support x11grab.
- Attachments
-
- ffmpeg_vidcap-0.4.pet
- (1.49 KiB) Downloaded 2137 times
Xvidcap is based on FFMPEG
I was very suprised that FFMPEG is able to record screencast
Sure, FMPEG does it but how ?
Xvidcap 1.1.7 xvidcap 1.1.6 or Pup-record do that
Record my desktop too
FFMPEG vidcap requires X11 grab, but it is a new item ( i did not know it).
Wednesday : FFMPEG vidcap tested and it works fine.
Sure, FMPEG does it but how ?
Xvidcap 1.1.7 xvidcap 1.1.6 or Pup-record do that
Record my desktop too
FFMPEG vidcap requires X11 grab, but it is a new item ( i did not know it).
Wednesday : FFMPEG vidcap tested and it works fine.
- Attachments
-
- puprec.zip
- very basic, look for the pet xvidcap in puppyrus repository
- (3.08 KiB) Downloaded 504 times
Last edited by Pelo on Wed 05 Jun 2013, 18:17, edited 1 time in total.
vidcap is absolutely perfect !
vidcap is absolutely perfect ! tested on precise 5.4.3 retro. Colors are pure, as the screen. sound working. What more is asked ? Nothing.
After deeper tries :
nevertheless, the file is big, we cannot modulate duration and filmed zone. But it is a good alternative.
After deeper tries :
nevertheless, the file is big, we cannot modulate duration and filmed zone. But it is a good alternative.
Further to this discussion...
I'm watching a streaming video with sound in Firefox (try this with any YouTube video.. but it can be any number of flash-based streams)... and I can see the video Ok and hear the audio Ok.
Using a derivative of the original script ffmpeg command (and I want to be able to use just ffmpeg for this job), I can capture the video but I can't capture the audio. All that is contained in the audio output stream is silence.
The modified command (to simply try and grab the audio):
To ensure I'm looking at the right audio capture device, I've looked at the output from arecord -l (small 'ell'), viz:-
Now, if I supply an audio signal into the "mic in" on the PC, the above command works a treat, which is what I'd expect -- hw:0 is a hardware device, so inputs via hardware should work Ok.
...but when a streaming video is playing and I want to capture the audio from THAT, there has to be something 'software-wise' that I can finger into to capture the audio. Maybe there's something I need to look at in alsamixer or retrovol...?
Any other thoughts?! I'm using Slacko 5.6.4, BTW...
Once I get the 'audio' component working Ok, I should be able to capture the video AND audio by combining a couple of 'input' streams through ffmpeg, methinks..
Thanks for any forthcoming suggestions.
John
I'm watching a streaming video with sound in Firefox (try this with any YouTube video.. but it can be any number of flash-based streams)... and I can see the video Ok and hear the audio Ok.
Using a derivative of the original script ffmpeg command (and I want to be able to use just ffmpeg for this job), I can capture the video but I can't capture the audio. All that is contained in the audio output stream is silence.
The modified command (to simply try and grab the audio):
Code: Select all
ffmpeg -f alsa -ac 2 -i hw:0,0 test.mp3
Code: Select all
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 2: Alpha [Lexicon Alpha], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
...but when a streaming video is playing and I want to capture the audio from THAT, there has to be something 'software-wise' that I can finger into to capture the audio. Maybe there's something I need to look at in alsamixer or retrovol...?
Any other thoughts?! I'm using Slacko 5.6.4, BTW...
Once I get the 'audio' component working Ok, I should be able to capture the video AND audio by combining a couple of 'input' streams through ffmpeg, methinks..
Thanks for any forthcoming suggestions.
John
'ready for Use '
developers give Puppy passengers 'ready for Use ' Simple Screen Recorder, the best one, in my opinion for versions Precise, Slacko, and newer, click here
nevertheless, do it yourself remains a pleasure for linux lovers, but FFmpeg removed from last Ubuntu Pupies. SSR will do it, remember
Xvidcap will do the job, whatever the Puppy, old or new Toutou 4.12
nevertheless, do it yourself remains a pleasure for linux lovers, but FFmpeg removed from last Ubuntu Pupies. SSR will do it, remember
Xvidcap will do the job, whatever the Puppy, old or new Toutou 4.12
- Attachments
-
- toutou412.jpg
- The best quality, dependencies all included.
- (62.49 KiB) Downloaded 142 times
FFMPEG official site : magic formulas
FFMPEG official site
Merci Skamilinux (Puppy team hungary)
Ezt most csak hirtelen megláttam egy másik Linux oldalon és gondoltam gyorsan megosztom, mert ez még nekem is kell!
Merci Skamilinux (Puppy team hungary)
Ezt most csak hirtelen megláttam egy másik Linux oldalon és gondoltam gyorsan megosztom, mert ez még nekem is kell!
Tahr puppy 6.0.6 64 bit UEFI and slacko 6.9.9.9 32 bit- not work
Use -qscale 0 instead of -sameq 0
My code works:
Use -qscale 0 instead of -sameq 0
My code works:
root# cat felvesz.sh
#!/bin/sh
#ffmpeg -s:1280x800 -r 30 -f x11grab -f alsa -ac 2 -i hw:0 output.mkv
#ffmpeg -s 1280x800 -r 25 -f x11grab -f alsa -ac 2 -i hw:0 output.mkv
#ffmpeg -f x11grab -r 25 -s 1280x800 -i :0.0 -f alsa -ac 2 -i hw:0 -qscale 0 teszt_out.mp4
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 25 -s 1280x800 -i :0.0 -qscale 0 test.mp4
- Attachments
-
- test_ffpeg.jpg
- (158.94 KiB) Downloaded 101 times
[b]Hungarian Puppy Linux HQ[/b]
[url]http://skamilinux.hu[/url]
[img]https://skamilinux.hu/phpBB3/styles/prosilver/theme/images/site_logo.gif[/img]
[url]http://skamilinux.hu[/url]
[img]https://skamilinux.hu/phpBB3/styles/prosilver/theme/images/site_logo.gif[/img]