Ffmpeg - low fps when i record my desktop;

Hello. When i am running ffmpeg on 1280x768 resolution, program record with ~100fps, When i change resolution to my native(1366x768), program record with ~29 fps and system running slow.
Record with 1280x768
frame=   66 fps=0.0 q=17.0 size=     417kB time=00:00:00.30 bitrate=11374.4kbitsframe=  132 fps=131 q=17.0 size=     449kB time=00:00:00.63 bitrate=5832.5kbits/frame=  199 fps=132 q=17.0 size=     449kB time=00:00:00.96 bitrate=3807.7kbits/frame=  256 fps=127 q=24.0 size=     481kB time=00:00:01.25 bitrate=3149.3kbits/frame=  321 fps=128 q=17.0 size=     769kB time=00:00:01.57 bitrate=4000.0kbits/
Record with 1366x768
frame=   18 fps=0.0 q=18.0 size=     390kB time=00:00:00.06 bitrate=53303.6kbitsframe=   33 fps= 32 q=17.0 size=     443kB time=00:00:00.13 bitrate=26879.3kbitsframe=   48 fps= 31 q=17.0 size=     465kB time=00:00:00.21 bitrate=18156.8kbitsframe=   63 fps= 31 q=17.0 size=     482kB time=00:00:00.28 bitrate=13841.4kbitsframe=   78 fps= 30 q=18.0 size=     502kB time=00:00:00.36 bitrate=11420.9kbitsframe=   93 fps= 30 q=18.0 size=     516kB time=00:00:00.43 bitrate=9708.7kbits/
ffmpeg commend
ffmpeg -f x11grab -r 100 -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 5 arch.mkv
sysinfo
Linux adrian 3.8.3-2-ARCH #1 SMP PREEMPT Sun Mar 17 13:04:22 CET 2013 x86_64 GNU/Linux
hardware info:
i5 8gb ram 630m
Do u know how to get better fps on my native resolution?
THX
Dziękuje i Pozdrawiam:}
Last edited by Vatri91 (2013-03-23 11:30:29)

Couple of thoughts.
30 fps is DVD quality. I would drop (-r 100) to (-r 24) I don't know what you are gaining capturing at 100fps.
You can also dump to raw video then encode the file later.
You can lower the video bitrate that you encode to (c:v libx264 -b:v 500k). Depends on how active your screen is. If you are just doing a tutorial of something then you may be able to drop down to (300k). Anything under (1000k) will be noticeable if you have a lot of movement on the screen.
This example gives a smooth full screen capture (without sound) (On an AMDx2)
ffmpeg -f x11grab -r 24 -s 1920x1080 -i :0.0 -an -c:v libx264 -b:v 500k output.mpg
This is easier on the CPU
ffmpeg -f x11grab -r 24 -s 1920x1080 -i :0.0 -an -c:v libx264 -crf 0 -preset ultrafast output.mpg
Another example using -qscale
ffmpeg -f x11grab -r 24 -s 1920x1080 -i :0.0 -an -c:v libx264 -qscale 10 output.mpg
For a raw video
ffmpeg -f x11grab -r 24 -s 1920x1080 -i :0.0 -an -f rawvideo output.raw
You have a raw video now so to play it, or take it and encode it.
mplayer -demuxer rawvideo -rawvideo w=1920:h=1080:y8 output.mpg
If framerate is dropping below specified while capturing with ffmpeg then, you'll have to lower the bitrate that you are encoding at, dump the stream as a raw video then encode it later, capture a smaller area of screen, or I hear that recordmydesktop does well.
EDIT: reason for edit, syntax correction.
Last edited by teckk (2013-03-27 14:57:33)

Similar Messages

  • Low FPS when accesing iPhone video output image buffer

    2 down vote favorite
    Hi, I'm trying to do some image processing on iPhone. I'm using http://developer.apple.com/library/ios/#qa/qa2010/qa1702.html to capture the camera frames.
    My problem is that when I'm trying to access the captured buffer, the camera FPS drops from 30 to about 20. Does anybody knows how I can fix it?
    I use the lowest capture quality I could find (AVCaptureSessionPresetLow = 192x144) in kCVPixelFormatType_32BGRA format. If anybody knows a lower quality I could use, I'm willing to try it.
    When I do the same image access on other platforms, like Symbian, it works OK.

    I also happen to have T-Mobile, but the problem happened on WiFi as well as you mentioned and therefore didn't seem to be related to carrier.
    I expect your videos are playing normally again like mine since yesterday morning. I guess it had something to do with the video codecs/standards being used by major video service providers like you thought, but I found it curious that so many different video sources beyond YouTube caused me the same problem during that time. I did find that Daily Motion worked fine when the other services weren't working, so I knew it had to be service (and what standards they were using) specific.
    Still, how were there not tons and tons of other people experiencing this!? I had it happen on both my 6+ and my iPhone 4. Maybe there were other factors specific to my area/connection (outside of connection speed which was always fine) that resulted in it, but still...

  • Facing low Performance when iterating records of database using cursor

    Hi ,
    i inserted nearly 80,000,000 records into a database, by reading a file whose size is nealry 800MB, in 10 minutes.
    when i am iterating the records using Cursor with Default lock mode , it is taking nearly 1 hour.
    My Bdb details are as follows
    Environment : Non transactional , non locking
    Database : Deferred write.
    Cache : 80% of JVM ( -Xms=1000M -Xmx=1200m )
    Could you please explain why it is taking such a long time ? did i make any mistakes on settings ?
    Thanks
    nvseenu
    Edited by: nvseenu on Jan 15, 2009 5:47 AM

    Hello Gary,
    StoredMap is a convenience API wrapper for a Database. It has the same performance and multi-threading characteristics as a Database. You don't need to synchronize a StoredMap, or use Database to get better performance.
    The lock conflicts are the thing to focus on here. This is unrelated to the topic discussed earlier in this thread.
    How many threads are inserting and how many performing queries?
    What other work, other than inserting and reading, are these threads performing?
    Does any thread keep an iterator (which is a cursor) open?
    How large are the data items in the map?
    What is the resolution of the timestamp? Milliseconds?
    I don't think the exception you posted is complete. Please post the full exception including the cause exception.
    I can't tell from the exception but it looks like multiple insertion threads are conflicting with each other, not with the query threads. If you test only the insertions (no queries), do the lock conflicts still occur?
    One possibility is that multiple insertions threads are using the same timestamp as the key. Only one thread will be able to access that key at a time, the others will wait. Even so, I don't understand why it's taking so long to perform the inserts. But you can easily make the key unique by appending a sequence number -- use a two part key {timestamp, sequence}.
    Please upgrade to JE 3.3 in order to take advantage of the improvements and so we can better support you. We're not actively working with JE 3.2, which is very outdated now.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I do a radio show, when I pre-record i get a very low end hiss, almost sounds like gain is too high, but its not. If Im live to the station its fine. It only happens when I record. Is there a way to set audition NOT to record that low end sound?

    I use an Allen & Heath broadcast board. When I record to my computer for later broadcast there is a low end hiss/hum barely noticeable when im speaking BUT very prominent when there is a quiet moment.
    Sounds like gain may be tooo high, BUT its not.  When I do a LIVE broadcast using same equipment all is fine!
    Thoughts

    Well, several thoughts here...
    First, what are you using to get from the A&H mixer into your computer and is it in the chain when you broadcast live?  I ask because a lot of built in sound cards are pretty noisy and that could be the source of the problem, fixable with even a very cheap external USB interface
    Second, if the hiss actually starts at the mic/mixer, I know the A&H XB series has a high pass filter on every mic channel.  Have you engaged that?
    That said, it's pretty rare for hiss to be such a low frequency that the high pass filter will kill it.  You may get on better with the Noise Reduction feature in Audition, applied after the recording.
    Anyhow, to repeat how I started, what's your signal chain when recording and how does it differ from when you go live?

  • QT 7 Pro - Volume of  audio is very low when I record from a microphone.

    Possibly someone can help me here, I am trying to record audio using a microphone and QuickTime Pro. I want to put this audio on my Nano.
    I cannot get the audio volume up to the level of existing imported audio programs when I record a audio program using QTP and a mic.
    I have already tried to set the microphone volume to a higher level. In the Quicktime Program I set the Menu/Edit/Preferences/Quicktime Preferences
    I then go to the Audio tab, select audio recording and playback devices, select "audio playback and recording devices" and set the volume slider on the microphone to high, go to the advanced tab, set the microphone to boost, still I get a very low volume.
    When I record using the Windows Sound Recorder I get a high volume, but the output is a wave file and the quality is not as good as I really want. But clearly the microphone and driver work. I have tried updating the driver, still get low volume for my recorded audio.
    HP DV1000 Pavilion Laptop   Windows XP   Conexant AMC Audio Driver

    So you use an RCA cable going into what before it hits the MBP?
    EDIT: Also in System Preferences > Sound > Input > you can select the input & adjust the volume accordingly as long as it's plugged in.

  • Macbook Pro Retina mid 2012 low fps in bootcamp

    Hello,
    My English is not so good, so sorry if it's not correct, but I hope anyone could help me.
    I have a Macbook Pro Retina mid 2012, 2,3 GHz Intel Core i7, 8 GB ram, 250 GB SSD.
    My problem is when I go to bootcamp for gaming I get realy low fps. The most games start at 30 fps, but then they drop immediately to 8/9 fps and a second later back to 30 fps.
    It's like a car, when you drive to hard you have to slow down, but then you drive to slow so you need to go faster. He speed up and a second or 2 later he kicks on the brakes and a moment later he speed up again and kicks again on the brakes.
    Even with al the game setting on realy low and the lowest resolution. And that al the time in every game. My bootcamp is Windows 8 but in Windows 7 did I have the same problem. I did already a SMC reset and Pram reset and 5 clean installs. But nothing works. I installed al the updates in OS X en in Windows. There al alrealy some forums about this problem, but by them was a SMC reset enough. Maybe something is wrong with my Nvidia grapihc card. The problems starts everytime when the Nvidia card need to do this work.
    it's quite an annoying problem, it's not a cheap laptop, but my old laptop ( 2 years old ) are the gaming performs better compared to this one. I think the problems start after this SMC update http://support.apple.com/kb/DL1559?viewlocale=en_US but I'm not quite sure.
    Are there more people with this problem, please let me know. And maybe how you solve it.
    I hope realy if any one could help me.
    If you know a anser, please give it in a comment
    Thanks,
    Gerwin Tiemens
    <Email Edited by Host>

    Hello gerwintiemens,
    I recommend resetting your SMC and your PRAM. Perhaps even a safeboot as well.
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    About NVRAM and PRAM
    http://support.apple.com/kb/ht1379
    Mac OS X: What is Safe Boot, Safe Mode?
    http://support.apple.com/kb/ht1564
    All the very best,
    Sterling

  • Getting low FPS on MacBook Pro Retina 15" (2012) even after resetting SMC

    I am getting very low FPS on Guild Wars 2 (between 25 and 40) and on Dibalo averaging at about (30 FPS) when playing on 1440 Resolution and Medium Settings. I've seen videos online with much better FPS using the same configuration as my Mac.
    I've reset the SMC, PRAM and made sure that the nVidia card is running using gfxCardStatus
    Anyone knows if this could be a faulty GPU Card?

    I would make sure it's not running the game in the screens native res as that would be soo high even a gaming laptop would struggle

  • Bug or Feature? iTunes doesn't write ID3 Tags when you recorded in VBR mode

    When you record music from a CD with iTunes (6.0.4 and 6.0.5) using higher bit rates (High Quality) together with VBR, then the iTunes database initialy shows a correct entry. But if you check the created mp3-files with the Finder application you will see that there is no id3-tag in the file.
    When you later move your iTunes music folder, iTunes asks you to modfify everything concerning the embedded infos (id3 tags). If you then say "yes" your database is gone.
    I saw a couple of postings where users complain about that iTunes loses the id3 tag when they burn a CD. I think that there has never been a physical ID3-Tag although the iTunes database shows a correct entry.
    Is some kind of a bug fix out there or should I use Musicmatch within Parallels Desktop for Mac in order to properly record in VBR mode?

    Odysseas,
    "But if you check the created mp3-files with the Finder application you will see that there is no id3-tag in the file."
    You can't see ID3 tags in the Finder. The data is imbedded in the song file itself.
    Regular, commercially produced CDs do not support ID3 tag information. When you insert a CD and it opens in iTunes, the application will go out on the internet and look up the track information in the Gracenote (CDDB) database.
    Then, when you rip the CD to an MP3 or AAC etc. the track information is then incorporated into the encoded song file. Using VBR shouldn't prevent the ID3 tag information from being transfered.
    However, if you then burn a music CD from that file, the ID3 tag information is lost.
    Matt

  • All-in-one PC volume is too low even when maxed out

    When playing web content with sounds like youtube videos, the sound is too low even when the volume in the cotrol panel is already maxed out. what do i do?  My desktop is an hp 22 all-in-one touchsmart pc.
    Thanks!
    Cynch

    Hello @Cynch,
    I understand that you are having issue with your HP TouchSmart 22 All-In-One Desktop PC where the volume is low when listening to online content. I would be happy to assist you, but first I would encourage you to post your product number for your computer as there are various version of the HP TouchSmart 22. I am linking an HP Support document below that will show you how to find your product number. As well, if you could indicate which operating system you are using. And whether your operating system is 32-bit or 64-bit as with this and the product number I can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please re-post with the requested information and I would be happy to provide you with assistance. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • WOW! iChat lower fps from 15fps to 1 in 15 first seconds

    After starting video chat iChat rapidly lower fps from 15fps to 1 in 15 first sec
    (checked in connection doctor)
    no problems before perfoming clean install from 10.2
    iBook 800/10.4.3 clean install/iSight 1.0.3 and Virex is not installed
    many   Mac OS X (10.4.3)  

    Hi dimmu,
    Check through this FAQ which has much of the above and probably soem I missed at the time
    http://discussions.apple.com/thread.jspa?threadID=278760
    In certain circumstances and old version of iChatUSBCam for Panther can cause this problem when moving up to Tiger.
    Ralph

  • When i record i can barely hear anything and the input meter is barely reaching -34db even when the gain on my interface is turned all the way up on my interface

    this issues is really getting to me. its works perfectly fine when am recording on ableton but on logic the input is so low :/

    a
    as u can see i have used the same setup for years no problem till a week ago :/

  • When I record video on my iphone 4 the audio sounds like it is muffled and is not as loud as it should be?

    when I record video on my iphone 4 the playback of the audio sounds like it is muffled and is not as loud as it should be? I have had the phone for 2 years and the last time I had used it to record a video was in July of this year. The sound came out crisp and clear. Now when ever I play back videos the audio is muffled and at a lower volume than it should sound like. I have the volume set all the way up when I record and my hands are not covering the microphone and/or near to affect the audio playback.

    It worked!!!!! Thank you. I didn't know there was a microphone at the top. I knew the hole was there but I didn't know what it was for. Thank you so much. \m/ ROCK ON!!

  • [SOLVED] Warcraft Low FPS

    When I first installed my nvidia card (like 4 months ago) only overclocked by factory but not by me in any settings; I was having great FPS in Warcraft, in dungeons and caves, like 80-100 fps in big cities like Orgrimmar 30-45 .
    Suddenly, out of nowhere it just went to half of it, on dungeos I'm having like 30-40 and in big cities 9-20 fps, I cant tell what really changed, I made no changes that I can recall, the only weird fact was I started having some issues with compiz, when I did Alt+Tab the computer freezed and in journalctl I could see some messsage regarding an error with "NVR"
    Anyway, I made a whole fresh installation, and it came out with the same results in Warcraft FPS but the problem with compiz was fixed
    I tried all the tweaks in Arch Wiki regarding Warcraft and nVidia but still wont solve it, also I noticed Warcraft is only using 45% of graphic card, is there a way to increase it?
    Also I tried installing beta drivers, wich are the ones that I used before and it behaves even worst.
    Any ideas?
    UPDATE (fix)::
    Problem was in the new intel_pstate for frequency scaling, it only has powersave and performance governors.
    Setting this in the kernel command line disables intel_pstate and goes back to acpi_cpufreq letting decide whether to use ondemand or conservative governors, being possible to increase CPU ratio.
    intel_pstate=disable
    Still, using acpi_cpufreq with powersave will ahve the same behavior of intel and won't increase CPU clock.
    Thank you everyone
    Last edited by axelectrik (2014-05-28 04:33:52)

    THank you al for your suggestions and sorry for this delay!!
    I've been trying a lot of stuff, kernel, cleaning PSU, overclocking CPU ... and there is where I found the problem!! Still I need help to solve it
    I noticed that temperature on CPU was always below 50° wich is not usual when I play WoW, soo I checked the clock ratio, it was under 1.8GHz! (why would I want an i5 running WoW at that speed)
    So I changed the settings on cpupower for performance, by doing these the game fps increased like crazy, just as I typed Enter to the command it went from 30fps to 68fps
    The problem appears to be the governor since it is in powersave, but also I don't want to have it in performance, would be a waste to have high frequencies when I'm just browsing web, but these are the only governors available (no ondemand, conservative or userspace)
    I've also noticed the same low frequencies when compiling or running any other apps.
    Any idea in how to set the frequency "ondemand" or how to get these modules? (the only one that appears is userspace but cannto be applied even if modprobed
    Thank again

  • DOTA2 low fps during hero picking phase

    Usually I have ~50FPS rate, but when I picking hero in PvP game (with bots it works great), my FPS downs to 9-10 and sound is cracking.
    Before I played well, in common I use proprietary driver, but some days ago, when I reinstall system with encryption, I also tried non-proprietary driver, which was bad idea for my NVIDIA GeForce 9600 GSO (too many artifacts and very low FPS).
    So I deleted "free" driver and installed proprietary driver. Mb I forget to delete some free-driver packages, or forget to install some non-free driver componets, mb some libraries (provided by Steam) are conflicting with system`s librararies. Anyway I dont know what to do, my attempts to find a solution in Internet led me here.
    I`ll be very greatful if you help me! But you must know that I`m not a Linux-guru, so write me all commands I need.

    First of all, whether you have  1GB/512mb/256mb of vga memory doesnt mean much in terms of performance, it all depends on your specific gpu unit whether its a 5650M, 6570M, etc. In your case your gpu does seem to be able to run most older games okay. Measuring fps in lobbies doesnt mean much either since there's hardly anything there for your gpu to render. You say you begin with 60fps and then drop to about 20fps midgame, presumably when the action is getting most hot. You could perhaps try lowering your graphical settings a bit or maybe your resolution. Alternatively the problem may also lie with your internet connection. 

  • Xperia Z1 mic issue (low volume) when using WeChat

    Was searching this forum for a solution, but to no avail. Using Wechat on Xperia Z1 with Android 5 is impossible because mic records at very low volume and other parties strugle to hear me. Microphone suppresion and voice enhancement are turned off, equalizer set to normal. PC companion shows most current version of software. Dear users and/or Sony, could you suggest for any solution?

    Please consider this before buying Sony Xperia phones: Chat TranscriptPlease wait while we find an agent to assist you...You have now been connected to an agent.Emir:  Hi Client Name! Welcome to Sony Xperia Support, my name is Emir. 
    I'm currently reading your message. In the meantime, I would appreciate if you kindly could leave your first and last name, your e-mail address and mobile phone number.Client Name:  Client Name, [email protected], +37067530xxxEmir:  How may I help you?Client Name:  Hello, I have posted a topic about an software issue in Xperia Z1: http://talk.sonymobile.com/t5/Xperia-Z1-Z1s/Xperia-Z1-mic-issue-low-volume-when-using-WeChat/m-p/1020748/highlight/true#M44196Client Name:  it was ignored by staff, so I posted another topic about how Sony ignores issues of flagship phone ownerClient Name:  this topic was moved out of forum to this topic to be burriedClient Name:  can I speak with someone in charge?Emir:  No, there's no such contact I can refer you to,.Emir:  I'm sorry to hear that your thread has not been replied to.Client Name:  What do you mean? You're independant worker not accountable to anyone?Client Name:  its been replied with default answer that all posters with similar problem receivedEmir:  I'm a technical support agent for the chat, I don't have any information about the Forum team.Client Name:  we are specifically ignored until Z1 goes broke and out of your problemsClient Name:  I need someone in charge from your department who could personally overlook this issue that many users haveClient Name:  its not just me, mic problems are apparent for many usersEmir:  This issue concerns a third party app, and you have already been in contact with me regarding this issue. We can't guarantee that third party apps are compatible with your device since we do not develop them. I recommend that you contac the app developer for more information.Client Name:  I dont understand why phone hacker can solve this software issue by themselves, but Sony engineers choose to ignore usClient Name:  no, this issue also goes to many other apps, including native app TrackIDClient Name:  its the problem in new Android releaseEmir:  You may try a software repair to see if the issue persists in TrackID like the agent on the forum suggested - if the problem persists and you suspect there's something wrong with your device you may have it sent in to an authorized service center so that a technician may examine it.,Client Name:  These steps were performed by other users with no luckClient Name:  I wont repeat this to come to the sameClient Name:  I ask engineers to look into solution developed by XDA team and implement for us normal usersEmir:  Those are the troubleshooting steps I can refer you to in this case.Client Name:  They dont work, please find another solution or ask for person who can do it, if you cantEmir:  I have already provided troubleshooting steps, you may try that. If a software repair does not help then I can only refer to service.Client Name:  I already told that these steps didnt work for other users, who have same problem. So you admit that you wont help your client?Emir:  I can't suggest a possible solution other than what I've already suggested unfortunately.Client Name:  So I have no choice, but to share our chat in all possible internet sources for other existing or would be Sony users to consider how they will be treated upon problems arise.Client Name:  Thank you for your support, I hope you will be promoted for high quality service

Maybe you are looking for

  • ROUND AND DYNAMIC SQL

    Greetings, i will be grateful if you help me on this : i have this portion of code in the body of a procedure,but i can't register it because of the error : PL/SQL ORA-00907 parenthése de droite absente select ROUND((execute immediate(v_formule)),2)

  • You Tube App no longer working iPad1 Workaround loses all my saved favorites Why?

    Hi everyone! The default youtube app on my iPad1, IOS 5.1.1 stopped working about a week ago, presenting "cannot connect to You Tube " as the only Error message.  No Explanation.. no choices... . It shows a sign in screen, no data can be accepted as

  • ISE: Mountain Lion (OSX 10.8.x) CoA for Java?

    Hello, Recently apple disabled/removed Java from OS X 10.8. When a macbook begins the provisoning process safari complains about a missing plugin and nothing happens. If you click the "install missing plug-in" button I get blocked by the default ACL

  • How to uninstall ios7 from iPhone 4

    How to uninstall ios7 from iPhone 4?

  • Unrendered transitions in AVI

    Hi The broadcast program at my school recently upgraded to Final Cut Pro 5. Unfortunatly an unexpected problem suddenly came up. Whenever we exported a piece onto AVI every transition's first frame would flick the blue unrendered screen up. This real