ffmpeg crash on libx264...
I was trying to run record it now, and switched from recordmydesktop to ffmpeg and it kept crashing. I tried it with the command line
Code:
ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpg2v2 -qscale 2 filename.avi Code:
x264-20101023-x86_64-1_SBo Where should I start looking for missing things or...? I also looked for xvidcap and kazam at slackbuilds.org but didn't see them there. Are those available? |
You already have libx264 installed. It comes with x264 ;)
Code:
grep -i libx264 /var/log/packages/x264-20110422-x86_64-1_SBo |
Thank you very much.
I'm not sure what I did, but in desperatoin I installed all of the alien packages from taper.alienbase.nl/mirrors/people/alien/restricted_slackbuilds/ and now when i run recorditnow and choose ffmpeg it works! But there is no sound. So I go back to using recordmydesktop from the choices in recorditnow. That has other problems which is the reason I tried the ffmpeg. I wanted to convert my recordmydesktop recordings. This still gives me an error though: Code:
mencoder -idx vid1.ogv -ovc lavc -oac mp3lame -o vid1.avi Code:
MEncoder 20100926-4.4.4 (C) 2000-2010 MPlayer Team Two things are happening. I want sound, and ffmpeg choice isn't giving it in recorditnow. The other thing, I cannot convert my ogv to something for youtube. the ffmpeg choice doesn't have choppy video, but no sound. And the recordmydestkop choice has very jumpy video. I just want to make a smooth video with sound and put on youtube. I hope you understand my problem. EDIT: I have this installed - libmp4v2-1.9.1-x86_64-3_SBo.tgz and I found libmp3splt at slackbuilds. Thank you for your help. |
I have tried these command lines too and I get failures on them:
Code:
$ ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpg2v2 -qscale 2 filename.avi Code:
$ ffmpeg -f alsa -i pulse -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec pcm_s16le -vcodec huffyuv -sameq Screencast.avi |
Unknown PCM pulse
Do you have pulse audio installed? Your mencoder error is obvious, the mplayer package you are using was not compiled while lame was installed. Install lame, then compile mplayer. The sources for mplayer are available on your Slackware DVD/CD or from any mirror. http://www.ffmpeg.org/ffmpeg-doc.html#SEC21 <-- Thats the section for capturing audio. The format would be something similar to (you'll need to adjust to fit your hardware) Code:
ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec pcm_s16le -vcodec huffyuv -sameq Screencast.avi |
If you want ffmpeg to record sound in mp3 or aac format, you need the package in my "restricted" resository. The one that I keep on slackware.com has the mp3 and aac encoding capability stripped off because I am not allowed to host these encoders on a US server due to patent infringement regulations.
My repository outside the US does have a version of my ffmpeg package which is able to record mp3 audio (aac as well but I guess you want mp3). Get it either here: http://taper.alienbase.nl/mirrors/pe...builds/ffmpeg/ or here: http://slackware.org.uk/people/alien...builds/ffmpeg/ And by the way, my ffmpeg package has twolame and x264 built-in, along with lame, aac and everything else you can think of. It does not need any other package to work. Eric EDIT: ah, I saw you already used that version of my ffmpeg package... hm then I have no idea why it did not record sound. |
Quote:
Quote:
Quote:
The command line you gave is working, and it also works with Code:
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv I have a hp dv9000 laptop, and the sound with recordmydesktop is using the builtin mic, if that helps. |
Quote:
|
Quote:
Adjusting Code:
-f alsa -i plughw:0,0 -f alsa -i plughw:0,1 (All numbers after the comma gave errors - no device) -f alsa -i hw:0 (worked fine w/o comma,num) -f oss (errors - no device) But on all variations I noticed I'm getting something like: Code:
[alsa @ 0x63a4f0]ALSA buffer xrun. But trying to get a debug with: Code:
# echo 1 > /proc/asound/card0/pcm0p/xrun_debug Code:
# ls /proc/asound Using the example at the link you gave me, I get an error when I use hw:0, but when I use this: Code:
ffmpeg -f alsa i plughw:0 alsaout.wav So it looks like I should use plughw:0 or plughw:0,0 from now on? Now I just need to make sound and video at the same time. mostly an xterm, but some of my desktop too. no games though. So progress is beind made and AlienBob will be happy to know that his 'restricted' ffmpeg is really working for me! I didn't thank him yet for offering help with a post. Any ideas on where I might go from here? |
Quote:
Honestly, I personally don't have a clue where to go from here :( I tried it here on my end, and came up with the same output as you - Video works, Audio works, Audio + Video results in no Audio. I'd cover the basics, and check alsamixer to make sure the correct device is flagged for recording, and reference the output of arecord -l which gives a listing of available recording devices. If someone with more knowledge doesn't chime in, I'd take it to the ffmpeg/libav mailing list. And please post your results. For good of the community, and I'm personally perturbed about this now :) |
Quote:
|
All times are GMT -5. The time now is 09:57 PM. |