Category: Uncategorized

ffmpeg and ffplay for logitech webcam

These command works on windows and capture video using my logitech C920 webcam

Save viewcam to a file, becareful, windows media play may not able to play mp4 in a very clean windows. You can save it to avi.

ffmpeg -f dshow -i video="Logitech HD Pro Webcam C920" -c copy -y c:\users\peter\desktop\a.mp4

Save viewcam video and play it using ffplay, but it has few seconds delay

ffmpeg -f dshow -i video="Logitech HD Pro Webcam C920" -c copy -y c:\users\peter\desktop\a.mp4 -c:v copy -copytb 1 -an -f mjpeg udp://127.0.0.1:1234/ | ffplay -f mjpeg p-rpbesize 32 udp://127.0.0.1:1234

Just play it by ffplay

ffmpeg -f dshow -i video="Logitech HD Pro Webcam C920" -c:v copy -copytb 1 -an -f mjpeg udp://127.0.0.1:1234/ | ffplay -f mjpeg -probesize 32 udp://127.0.0.1:1234

https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=2421

read count : 20

ELF-dependency-walker is a tool to view the dependencies of an ELF object/executable

ELF-dependency-walker is a tool to view the dependencies of an ELF object/executable, you can use it to analyst what libraries is an ELF depending to. If you are doing operating system development and trying to port a library from linux to your os, first thing you know is that you need to know how deep of that library is depending to. It is complete open source and free to use. Just download it from https://sourceforge.net/projects/elf-dependency-walker/ and run it by

java -jar elf-dependency-walker-XXX.jar

elf1

elf2

read count : 174

enable paste command in xterm for mac and linux

MAC:

enable paste command in xterm for mac, create ~/.Xdefaults

*VT100.translations: #override  Meta <KeyPress> V:  insert-selection(PRIMARY, CUT_BUFFER0) \n

Linux:
edit /etc/X11/app-defaults/XTerm , add “*selectToClipboard: true" to the bottom, highlight is copy text, shift-insert is paste.

read count : 9

Enable peter-swing theme in netbeans

Edit : /Applications/NetBeans/NetBeans 8.0.2.app/Contents/Resources/NetBeans/etc/netbeans.conf

Change the line to:


netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true --laf com.peterswing.white.PeterSwingWhiteLookAndFeel -cp:p ~/peter-swing-20150709.jar"

read count : 83