gtk-gtk recordmydesktopp命令模式

Alternative To gtk-RecordMyDesktop in Ubuntu ~ Bauer-Power Media
I felt that I had to write this up being as how I spent the last few days racking my brain trying to find a way to record my Linux environment in
using . You see, that is my software of choice in Linux to record my desktop, but the problem is that on my Dell Latitude D420, the hardware can’t handle it and I end up getting a crap load of frames dropped. When you have a lot of dropped frames, it makes it look like the video is going really friggin’ fast!
I tried some other programs like
and , but Istanbul hung up after I pressed record and wouldn’t stop, and XVidCap gave me the same results as gtk-RecordMyDesktop which was crazy fast video. The only thing I could do to make these programs not drop frames was to record only one window at a time, which wouldn’t do for what I needed in my .
I did find an alternative to the above programs, and it was my old friend FFMPEG. FFMPEG is one of the most versatile video converters of all time! Well, it turns out it can record your mutha flippin’ desktop too!
There is a feature in FFMPEG called x11grab. I found on my Dell D420, the best settings were as follows:
ffmpeg -f x11grab -b 8000k -r 30 -s
-i :0.0 -vcodec wmv2 -acodec wmav2 output.wmv
This creates a .wmv file which is nice if you want to do your video editing in Windows like I like to do. If you want to try it out on your system, make sure to change the
part to match your screen’s resolution. If you find that these settings don’t work for you, play around with them until you get the recording you are looking for. Here is a sample of my desktop recorded with FFMPEG:
Also, if you don’t want to have to remember the command, save it to a .sh file, and make it executable. That is what I did, and I created a custom launcher on my desktop to launch it in the terminal.
Know of some better, more versatile desktop session recorders for Linux other than the ones I mentioned above? What do you like to use? Let me know in the comments!
Technorati Tags: ,,,,,,
Saving The Internet
Mainwashed Weekly Scoop
Your browser does not support the audio element.
Popular Posts
In an effort to better secure my organization I have been wanting to disable all SSL protocols below 1.1 on one of my internal servers. The ...
A little while ago I wrote about a free alternative to the Plex app for Roku . That all started because I didn't want my smoking hot gir...
For those who have been following Bauer-Power
for a long time, you know that I've been giving away free Powered by Ubuntu stickers . In...
I have some good news and bad news for Bauer-Puntu users out there. The good news is that I've finally finished Bauer-Puntu 13.10. The b...
Blog Archive
| Bloggerized by今天看啥 热点:
android开发中遇到的问题汇总【四】,android汇总
Looks like there is no way to avoid modifications made by the import plugin. All the settings it has is three checkboxes related to dependency management. I tried to uncheck all of them but still it does change my project structure.
I managed to add existing library projects manually:
1) Copied library’s directory under the root directory of my project.
2) Referenced that library in settings.gradle by adding include ‘:libraryA’.
3) Added dependency to my project’s build.gradle: compile project(‘:libraryA’).
Moreover, after that the IDE recognized that library as module and highlighted its folder in bold font whithin Project Structure.
93.如何从当前的activity获得根视图
或者 Android如何获取Activity的View?
((ViewGroup)findViewById(android.R.id.content)).getChildAt(0)
getWindow().getDecorView().findViewById(android.R.id.content)
94.radiogroup中的radiobutton如何不显示图标button,并且可以等比例再用wight
android:button=”@none” 或@null
android:drawableTop =”@drawable/xxx” 或者也设置为空
95.搜索也是一门艺术
96.android layoutinfater
没有显示内容
检查parent试图是否为空
.Error:Execution failed for task ‘:app:dexDebug’.
com.mon.internal.LoggedErrorException: Failed to run command:
/home/yyb/tools/android/sdk/build-tools/21.1.2/dx -dex -no-optimize -output /home/yyb/work/BoShiTong/trunk/HBFC/Android/HBFC-AS/app/build/intermediates/dex/debug -input-list=/home/yyb/work/BoShiTong/trunk/HBFC/Android/HBFC-AS/app/build/intermediates/tmp/dex/debug/inputList.txt
Error Code:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimR
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.mand.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.mand.dexer.Main.runMonoDex(Main.java:303)
at com.mand.dexer.Main.run(Main.java:246)
at com.mand.dexer.Main.main(Main.java:215)
at com.mand.Main.main(Main.java:106)
98.android动画的三种形式
,frame animition ,property animition
99.LoopingViewPager
QuickReturn
101.recycleview vs listview head foot
.recycleview实现gridview
新事物不要躲避,机遇。
102.清除Android工程中没用到的资源
/angeldevil/p/3725358.html
103.xmlns:tools与tools:context
tools:context=”activity name”这一句不会被打包进APK。只是ADT的Layout Editor在你当前的Layout文件里面设置对应的渲染上下文,说明你当前的Layout所在的渲染上下文是activity name对应的那个activity,如果这个activity在manifest文件中设置了Theme,那么ADT的Layout Editor会根据这个Theme来渲染你当前的Layout。就是说如果你设置的MainActivity设置了一个Theme.Light(其他的也可以),那么你在可视化布局管理器里面看到的背景啊控件啊什么的就应该是Theme.Light的样子。仅用于给你看所见即所得的效果而已。
105.androidstudio 导入libs后要同步一下才可以用
106.fragment + butterknife 的使用
othersetting-&Compiler → Annotation Processors. Check “Enable annotation processing”.
02-04 15:55:46.426
/com.jetsun.hbfc E/InputEventReceiver: Exception dispatching input event.
02-04 15:55:46.426
/com.jetsun.hbfc E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
02-04 15:55:46.506
/com.jetsun.hbfc E/MessageQueue-JNI: java.lang.RuntimeException: native typeface cannot be made
at android.graphics.Typeface.(Typeface.java:175)
at android.graphics.Typeface.createFromAsset(Typeface.java:149)
at com.jetsun.hbfc.activity.fragment.news.NewsFragment$1.onPageSelected(NewsFragment.java:74)
Custom Fonts in Android
http://sudharti.github.io/articles/custom-fonts-android/
Typeface tf = Typeface.createFromAsset(getActivity().getAssets(), “fonts/font_name.ttf”);
Typeface tf2 = Typeface.createFromAsset(getActivity().getAssets(), “fonts/font_name2.ttf”);
TextView tv = (TextView) findViewById(R.id.textview);
tv.setTypeface(tf); //Set Typeface
EditText et = (EditText) findViewById(R.id.edittext);
et.setTypeface(tf2);
110.PagerSlidingTabStrip
he view throws an exception if there are no tabs available to display. It would be great if the view failed gracefully or gave a
better error message.
/astuetz/PagerSlidingTabStrip/issues/69
114.http://jgilfelt.github.io/android-actionbarstylegenerator/
这个网站可以在线配置action bar的样式,支持holo、support v7、sherlock
在其它界面异常之后返回到FragmentActivity Fragment显示异常(重叠或不显示)解决方 …
问题描述详见:/thread--1.html
当然,问题没有解决掉,一直也很郁闷,今天花了点时间换了N多关键词来找,最后也忘了在哪里看到一个方法,死马当活马医的写上,居然好了。
解决方案是,在FragmentActivity里重写onSaveInstanceState,并且去掉super.onSaveInstanceState()即可。
原因:猜测应该是在二级界面抛了异常之后,应用在返回上级界面时会从onSaveInstanceState内读取FragmentActivity缓存的状态,所以导致Fragment全部显示(显示重叠)或者显示不出来。(只是猜测)
[代码]php代码:@Override protected void onSaveInstanceState(Bundle outState) { }
116.修复Android App中出现的重复菜单项及Fragment重叠
https://typeblog.net/tech//fix-duplicate-menu.html
fragment replace出现重叠
一般fragment的容器都是fragment,用到的方法:
FragmentManager fm = getActivity().getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.replace(R.id.container, fragment);
ft.addToBackStack(null);
ft.commit();
replace这个方法在fragment内部直接代入布局的id是不会有问题的,但是在外部比如Activitiy中用就会出现fragment叠加的问题。
有很多人说给每个fragment设置背景色或图片,但是我觉得额外费资源。
其实只要改成这样就好了,但这之中的原理又有谁懂呢?
/questions//android-replace-fragment-still-displays-some-of-the-replaced-fragment
transaction.replace(((ViewGroup)(getView().getParent())).getId(), fragment);
//通过activity 得到它的fM,通过tag指定到上级fragment,从而获取到其中的接口数据
if (getActivity().getSupportFragmentManager().findFragmentByTag(“videos”) instanceof QuickReturnInterface) {
mCoordinator = (QuickReturnInterface) getActivity().getSupportFragmentManager().findFragmentByTag(“news”);
throw new ClassCastException(“Parent container must implement the QuickReturnInterface”);
118.内存优化相关
ANDROID内存优化(大汇总)
http://blog.csdn.net/a/article/details/
119.PagerSlidingTabStrip
Changing the title of the adapter and notifyDatasetChanged does not work. #13
Call notifyDataSetChanged() on the PagerSlidingTabStrip instead.
Worked for me yesterday with data loaded from a CursorLoader.
120.Ubuntu下的屏幕录制软件RecordMyDesktop
sudo apt-get install gtk-recordmydesktop
***好之后该软件会在影音软件里面,打开就可以。然后可以选择需要录制的窗口,如果不选择的话就默认是用户在屏幕上的所有操作。点击“录制”就开始了,此时该软件隐藏在
上方的任务栏(红色圆圈),可以随时停止录制。得到的视频保存在主目录下,其格式为Ogg。如果需要把它转换为avi格式,可以***软件mencoder,命令如下:
sudo apt-get install mencoder
然后用下面的命令转换:
mencoder -ovc lavc -oac copy -lavcoptsvcodec=mpeg4 -o outfile.avi infile.ogv
ubuntu动态截图,制作GIF动画
Ubuntu 下, 如何录制 gif 格式的屏幕截图
1. *** gtk-recordmydesktop 来录制屏幕, *** mplayer ?视频***成单帧图片, *** imagemagick ?单帧图片压缩成一张 gif:
sudo apt-get install imagemagick mplayer gtk-recordmydesktop
2. 命令行下执行, 录制并保存文件为 out.ogv:
gtk-recordmydesktop
3. 执行如下命令? out.ogv ***成单帧图片:
mplayer -ao null out.ogv -vo jpeg:outdir=.
4. 执行如下命令?单帧图片压缩成 gif 图片:
convert *.jpg out.gif
5. 执行如下命令? gif 图片进行压缩:
convert out.gif -fuzz 10% -layers Optimize optimized.gif
Live Like You're Dying And Never Stop Tying
121.一个ListView中会创建很多个convertview,并不是所有的都复用的,比如同一屏显示的肯定都是不一样的convertview。
122.性能优化
框架的选择。volley【尽量google支持的或者原生的】
【没有采用反射技术的,比如greendao使用的是code generation。而不是注解】
为什么greenDao使用的是code generation,而不是注解?
对于greenDao,代码生成是非常合理的。在Android平台上,基于注解的解决方式是有缺陷的:它们不得不依赖于元数据的解析和反射。特别是反射,会显著降低ORM工具的性能。另一方面,greenDao会为Android生成优化过的代码。这些生成的代码完全避免了反射。这也是greenDao如此快的主要原因。另一个优势是大小。
greenDao的核心lib是非常小的(在100K以下,包括单元测试)。这是因为对于一些ORM的内部逻辑都在generator中,而不是在核心库中。
greenDao包含了:DaoCore,DaoGenerator和DaoTest。DaoCore是需要你加入到android项目中的,在Apache License 2版本以下是许可的。
DaoGenerator是java程序,负责实体的生成,DAO和其它的文件。DaoTest是单元测试用例额,确保了greenDao本身和其稳定性。
DaoGenerator 和DaoTest 在GPL V3以下是可用的。这些许可条款可以满足大部分的开发者使用。
123.Lazy Loading
lazy不是翻译成懒,差不多算延迟、推迟的意思。
是说不在初始化时loading,而是推迟到必须loading时才进行loading。
124.android-stuido
could not save application settings:java.util.zip.zipexception:incorrect header check
/p/android/issues/detail?id=56190
It looks like there's a corrupted cache.
To work around this, invoke File & Invalidate Caches.
If you can't start Android Studio at all, try going to the cache directory (its location depends on your platform) and delete it, then start Studio.
125.Android.gitignore
/github/gitignore/blob/master/Android.gitignore
/local.properties
/.idea/workspace.xml
/.idea/libraries
# Built application files
# Files for the Dalvik VM
# Java class files
# Generated files
# Gradle files
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
# Log Files
126.NDK With Android Studio
/blog//ndk-with-android-studio/
相关搜索:
相关阅读:
相关频道:
Android教程最近更新

参考资料

 

随机推荐