Jun
7
2012
multiple VOB file with multiple audio tracks into avi
we want to have only VOB 4 to 7
for i in `seq 4 7`; do c=`ls VTS_0$i*| grep VOB| grep -v _0.VOB | tr “\n” ” “`;cat $c > $i.VOB;done
for i in `seq 4 7`;do ffmpeg -i $i.VOB -vcodec libxvid -y -acodec libmp3lame -ac 2 -map 0:0 -map 0:2 -map 0:1 -vb 2M -ar 44100 -ab 128 $i.avi;done
Comments Off on multiple VOB file with multiple audio channels | posted in bash, ffmpeg
May
18
2012
xterm -fn 9×15
list of fonts available : xlsfonts
letters belonging to a given font: xfd
Comments Off on font’s in xterm | posted in bash
May
18
2012
fdisk -ul image.img
You must set cylinders.
You can do this from the extra functions menu.
Disk image-sda: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
image.img * 63 78140159 39070048+ 7 HPFS/NTFS
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(4863, 254, 63)
# mount -o loop,offset='''32256''' -t auto image.img mnt/
JFFS2
-----
#!/bin/bash
if [ $# -eq 0 ]; then
echo $0 JFFS2_IMAGE_FILE
exit
fi
modprobe mtdram total_size=44576 erase_size=128
modprobe mtdblock
dd if="$1" of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 m
———
cat /proc/mtd for information of mtd device
.——————-
unpack: rootfs
cat rootfs.gz | lzma -d | cpio -id -H newc
or
cat rootfs.gz | gunzip -c | cpio -id -H newc
pack:
dd if=/dev/zero of=rootfs1 bs=1k count=8192
mke2fs -q -F -m 0 -i 1024 rootfs1
mkdir -p rfs
sudo mount -t ext2 -o loop rootfs1 rfs
cd rfs
tar –exclude=”*/lib*\.a” –exclude=”*/man/*” –exclude=”*/include/*” -cpf – * | \
sudo tar -C rfs -xf –
// sudo chown -h -R 0:0 rfs
find ./rfs | cpio -o -H newc | gzip -9 > rootfs.gz
sudo umount rfs
//gzip -9 -c rootfs1 > rootfs.gz
better to unpack with
cpio -id --no-absolute-filenames
or you will smash your linux…
Comments Off on mount image file’s partition | posted in bash, linux
May
16
2012
auspacken:
gunzip < initrd.img | cpio -i –make-directories
einpacken:
find ./ | cpio -H newc -o > initrd.cpio
gzip initrd.cpio
mv initrd.cpio.gz initrd.img
———-
vmlinuz:
od -t x1 -A d vmlinuz | grep "1f 8b 08"
0008322 1b 00 1f 8b 08 00 d5 c2
dd bs=1 skip=8324 if=vmlinuz | zcat > vmlinux_extract
Comments Off on initrd auspacken / einpacken | vmlinuz | posted in bash
May
16
2012
AW: p910nd – Daemon kann nicht gestartet werden
na leute, habt ihr es hinbekommen?
also, hier zwei dinge die ihr nach dem kompilieren noch machen müsst:
wenn ihr das init.d startscript nutzen wollt: einfach startproc weglöschen
und jetzt zu dem wichtigerem teil, da nach geht es nämlich immer noch nicht…
ihr müsst schauen, dass auch alle Pfade existieren (zu finden in den man pages), bir mir fehlte:
/var/lock/subsys/
var/lock war zwar da, aber subsys nicht…
hoffe, es hilft dem einen oder anderen…
bis dahin,
OO
Comments Off on p910nd not starting ? | posted in bash
May
13
2012
EXT="m4a";
a=`echo $1 | sed -s "s/\.m4a//g"`;
DIR="mp3"
if [ ! -d "$DIR" ]; then
mkdir mp3
fi
echo "#############################################"
echo converting $a
echo command: ffmpeg -i "$1" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date="2012" -metadata copyright="" "mp3/$a.mp3"
echo "#############################################"
#ffmpeg -i "$1" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y "$a.mp3"
ffmpeg -i "$1" -id3v2_version 3 -write_id3v1 1 -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y -metadata date="2012" "mp3/$a.mp3"
#echo ffmpeg -i "$1" -map_metadata 0:g:0 -acodec libmp3lame -ar 44100 -ab 224k -y "$a.mp3"
Windows |
iTunes (Info tab) |
id3v2.3 |
ffmpeg key |
ffmpeg example |
Title |
Title |
TIT2 |
title |
-metadata title=”Adagio for Strings” |
Subtitle |
Description (Video tab) |
TIT3 |
TIT3 |
-metadata TIT3=”Op. 91″ |
Rating |
n/a |
n/a |
n/a |
n/a |
Comments |
Comments |
COMM |
n/a |
not implemented |
Contributing artists |
Artist |
TPE1 |
artist |
-metadata artist=”Yo Yo Ma/London Symphony” |
Album artist |
Album Artist |
TPE2 |
album_artist |
-metadata album_artist=”London Symphony” |
Album |
Album |
TALB |
album |
-metadata album=”String Classics” |
Year |
Year |
TYER |
date |
-metadata date=”2012″ |
# |
Track Number |
TRCK |
track |
-metadata track=”3/12″ (means track number 3 of 12) |
Genre |
Genre |
TCON |
genre |
-metadata genre=”Classical” |
Publisher |
n/a |
TPUB |
publisher |
-metadata publisher=”London Publishing” |
Encoded by |
n/a |
TENC |
encoded_by |
-metadata encoded_by=”Telarc” |
Author URL |
n/a |
WOAR |
n/a |
not implemented |
Copyright (Not Editable) |
n/a |
TCOP |
copyright |
-metadata copyright=”℗ Telarc” |
Composers |
n/a |
TCOM |
composer |
-metadata composer=”J.S. Bach” |
Conductors |
n/a |
TPE3 |
performer |
-metadata performer=”T. S. Miles” |
Group description |
Grouping |
TIT1 |
TIT1 |
-metadata TIT1=”The Classics” |
Mood |
n/a |
n/a |
n/a |
n/a |
Part of set |
Disc Number |
TPOS |
disc |
-metadata disc=”1/2″ (means disc number 1 of 2) |
Initial key |
n/a |
TKEY |
TKEY |
-metadata TKEY=”G” |
Beats-per-minute |
BPM |
TBPM |
TBPM |
-metadata TBPM=”120″ |
Part of a compilation |
Part of a compilation |
TCMP |
TCMP |
-metadata TCMP=”1″ (either blank = false or 1 = true) |
*table source: http:// jonhall. info / how_to / create_id3_tags_using_ffmpeg
well done dude. 🙂
use as script:
or .flac
echo "" > con_vert.sh;chmod 755 con_vert.sh;ls *.m4a| while read line; do echo ./convert.sh \"$line\" >> con_vert.sh;done;./con_vert.sh ;rm con_vert.sh;
Comments Off on ffmpeg and copy metatag from flac to mp3 – incl converting | posted in bash
Feb
23
2012
aclocal
Autoconf
Automake
Automake –missing………
Shtools – automake to be installed
Comments Off on Configure script missing? | posted in bash
Feb
8
2012
udevadm info -a -p $(udevadm info -q path -n )
or
udevadm info --attribute-walk --name /dev/input/event2
or for HD
udevadm info --attribute-walk --name /dev/sdb1
or for testing rules:
udevadm test --action=add /sys/block/sdb/sdb1 #/block/sdb/sdb1 might also work
ofr info:
udevadm info -a -p /sys/block/sdb
find infos and update /etc/udev/rules.d/31-rulename
example_:
ATTRS{maxchild}=="0"
ATTRS{quirks}=="0x0"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{authorized}=="1"
ATTRS{manufacturer}=="X10 Wireless Technology Inc"
ATTRS{product}=="USB Receiver"
Comments Off on udev rules | posted in bash
Feb
8
2012
cat > /etc/apt/sources.list < < EOF
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
> EOF
Comments Off on can’t apt-get with ubuntu 9.x anymore? here are the old deb’s | tags: linux | posted in bash
Feb
1
2012
Umgebautes schoko fondue zum ätzen mit e3chlorid by oktay 🙂
Comments Off on Diy etching wanne | posted in bash