Wednesday, December 25, 2013

Changing out soundtrack with ffmpeg. Example of moving ogg soundtrack to matroska (mkv)

Matroska file format (mkv) is specified with -f matroskaoption. It should be supported by ffmpeg (version 0.7.3) in Ubuntu 11.10.

Use ffmpeg -formats for a list of supported file formats.

To merge specific streams (audio or video) from several files use -i option for each input and -map input_index[:stream_index]. For example, the following command merges the first stream of the first input with the second input and keeps the codecs:
 
ffmpeg -i input.mkv -i input_audio.ogg -map 0:0 -map 1 -vcodec copy -acodec copy output.mkv


http://ffmpeg.gusari.org/viewtopic.php?f=25&t=611
 
ubuntu video conversion
 
http://ubuntuguide.org/wiki/Video_Conversion#FFMPEG
 

Monday, December 9, 2013

disabling warnings in MS VS

Used to have to do this, this posting shows how to do a bad practice.  It does however have an example of how to disable warnings in c++ on VS.

// document here exactly why you can not use strncpy_s
#pragma warning( push )
#pragma warning( disable : 4996 )
// your code that uses strncpy instead of strncpy_s
#pragma warning( pop ) 
 
how-to-achieve-strncpy-functionality-with-strncpy-s-function

Friday, November 15, 2013

Windows USB drivers for Galaxy Note 2 SGH-T889 phone



Drivers from samsung for my Note 2 phone

http://phones-usb-drivers.blogspot.com/2013/05/download-samsung-sgh-t889-galaxy-note.html

http://downloadcenter.samsung.com/content/SW/201212/20121217102504170/Samsung_USB_Driver_for_Mobile_Phones_v1.5.14.0.exe

Hopefully will allow ADB connect up from development laptop.

raspberry pi jtag

This example is for using an raspberry pi as a run control, not for using jtag ON the raspberry pi.  An example below is for debugging arm devices.

http://blog.oxplot.com/debrick-wrt54gl-raspberrypi/

TJTAG part copied here for reference.

UPDATE: TJTAG with RPi support is now available and it’s preferred to this version.
The updated README should have all the information you need to build this on Pi and let it help save your day. But if you’re lazy like me, here’s a quick guide:
  1. Connect the boards as per the wiring diagram above.
  2. Power up your router.
  3. On your Pi:
    $ cd ~
    $ git clone https://github.com/oxplot/hairydairymaid-wrt54g-pi
    $ cd hairydairymaid-wrt54g-pi
    $ CFLAGS='-D RASPPI' make
    $ ./wrt54g -probeonly
    
    If it gets stuck, try adding /noemw option.
There are many guides elsewhere describing how to use this tool to restore your router to an operational state. For more just google for it. There is a document that comes with this program as well (not written by me)—be sure to read it before doing anything.

Lauterbach spec for arm jtag interface.

http://www2.lauterbach.com/pdf/arm_app_jtag.pdf

Here is a link to an example ARM debug port spec.

http://www.pjrc.com/arm/pdf/doc/ARM_debug.pdf

http://www.pjrc.com/arm/pdf/doc/ARM_debug.sup.pdf 

More examples (not for this rpi example, but for standalone jtag)
from:  http://www.edaboard.com/thread10814.html

For JTAG dongle look simple Wiggler:
http://www.elektroda.pl/eboard/viewt...hlight=wiggler
http://www.elektroda.pl/eboard/viewt...hlight=wiggler
http://jtag-arm9.sourceforge.net/hardware.html




and free OCD Commander (Windows and Linux)
http://www.elektroda.pl/eboard/viewt...hlight=wiggler
http://www.ocdemon.net/ocd_dbgr.exe
Free GNU Toolkits for OCDemonTM BDM/JTAG Devices
http://www.ocdemon.com/

Look:
http://www.ocdemon.net/Merchant2/mer..._Code=Software
http://www.ocdemon.net/flsh_pgm.exe


http://www.embedinfo.com/English/Pro...programmer.asp

Embest Online Flash Programmer 2190K
http://www.embedinfo.com/chinese/dow.../FlashProg.zip

Embest Online Flash Programmer user guide 430K
http://www.embedinfo.com/english/dow...rogrammerE.chm



Wednesday, November 13, 2013

jor1k


javascript virtual linux notes for jor1k emulator.

https://github.com/s-macke/jor1k/wiki

requires vde2, virtual distributed ethernet package.

http://vde.sourceforge.net/

this requires libtool, libpcap-dev, libssl-dev to make.   make it on machine hosting the jork emulator.

This supports an ethernet adapter on the jor1k platform.

https://github.com/s-macke/jor1k/wiki/Network-support

http://www.benjamincburns.com/2013/11/10/jor1k-ethmac-support.html

Websockets (mentioned in network, tornado)

http://mbed.org/cookbook/Websockets-Server

Tuesday, November 12, 2013

Getting wireshark going on Snow Leopard



http://michaelgracie.com/2009/10/13/getting-wireshark-running-on-os-x-snow-leopard-10-6/

 tep 1
Download Wireshark from here. Mount the .dmg file.
Step 2
Drag the Wireshark application icon to the handy dandy Applications alias the fine developers at Wireshark provided for you in that disk image. Then, open up the Utilities folder in the disk image, and drag the ChmodBPF folder into the StartupItems alias sitting below it. After that, open up a new finder window and navigate to /usr/local/bin. Open up the Command Line folder in the disk image (under /Utilities) and drag those contents over to /usr/local/bin. You’ll probably have to authenticate at that point, so do so.
Step 3
Open up a terminal window and type in the following commands:
cd /Library/StartupItems
sudo chown -R root:wheel ChmodBPF

You’ll probably be asked to enter an su password. Do so. Then exit terminal.
Step 4
Go to Applications and click on Wireshark. When the application opens you’ll probably see a another window open up along with it containing a bunch of errors. Close that window. Next, select Edit then Preferences from the Wireshark application window. Select Name Resolution, and click the Edit button next to “SMI (MIB and PIB paths”. Click the new button, and enter /usr/share/snmp/mibs/ in the little Directory Path popup window. Click Apply, and then Close.
Step 5
Exit Wireshark and reboot.
All should be well in network protocol analyzer-ville.
Editor’s note: special thanks to Nick Kleinschmidt and Dan Hale for helping out here.
UPDATE: Please note that these instructions applied to Wireshark Version 1.2.2 (SVN Rev 29910), and several comments have suggested that newer versions of Wireshark may no longer support libSMI. For this issue I can only suggest checking the Wireshark user guide and/or the wiki.

running multiple instances of Yawcam



http://www.yawcam.com/forum/viewtopic.php?p=3923

running multiple instances of Yawcam

 by malun » Sat Jan 02, 2010 12:17 am
Yes, you are right, didn't think of that. Yawcam uses the settings located in the home directory for the user running Yawcam. There is however a workaround...

1) Install the first yawcam instance as usual and run it like usual.
2) Make a copy of the yawcam program directory (typically: C:\Program Files\Yawcam) and name the copy Yawcam2. You will now have two program directories for Yawcam:
C:\Program Files\Yawcam
and
C:\Program Files\Yawcam2
3) Create a new directory c:\yawcamsettings
4) Create a new directory c:\yawcamsettings\yawcam2

Now it's time to edit two files in here:
C:\Program Files\Yawcam2
If you are using windows xp or 2000 you can edit the files with notepad as usual, so jump to step 8 below.
If you are using windows vista or 7 you have to run the editor as an administrator, so continue at step 5.

5) Click on the windows start button and type "notepad" in the search field.
6) In the result list, right click on Notepad and choose "Run as administrator"
7) Now open the file in Notepad by clicking "File -> Open..." and browse to the file.

8) Edit the file C:\Program Files\Yawcam2\service_profile.cfg to contain one line like this:
C:\yawcamsettings\yawcam2
9) Edit the file C:\Program Files\Yawcam2\launcher.cfg
Add the word service on the last line. If it's correct the last line will end with: yawcam.Main service

10) Start the second instance of Yawcam by running:
C:\Program Files\Yawcam2\Yawcam.exe
This version will now use settings located here:
c:\yawcamsettings\yawcam2\.yawcam
Browse to this path and see that the .yawcam directry has been created.
11) You now want to create a text file disablerunningcheck.txt here:
c:\yawcamsettings\yawcam2\.yawcam\disablerunningcheck.txt
to get rid of the question when starting the second instance of Yawcam.


I hope the explanation was clear enough...

/malun