Lieber Besucher, herzlich willkommen bei: Linux Forum Linux-Web.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 7 |
mencoder dvd://2 -o test3.avi -of avi \ -ofps 15 \ -vf-add scale=128:128 -vf-add expand=128:128:-1:-1:1 \ -srate 44100 \ -ovc xvid -xvidencopts bitrate=300:max_bframes=0:quant_type=h263:me_quality=0:aspect=4/3 \ -oac lavc -lavcopts acodec=mp2:abitrate=96 \ -ss 0:0:0:0 -endpos 0:0:10:0 -noodml |
Die gibt es immer, man muss nur wie ein Spion denken : So könntest Du z.B. einfach die mencoder-Binary mal eben umenennen und stattdessen ein ausführbares Script dort platzieren, welches z.B. folgenden Inhalt für die bash hätte:Zitat
Original von linuxerr
2. gibt es unter windows xp eine möglichkeit auszulesen, mit welchen optionen ein kommando gestartet wurde?
Quellcode |
|
1 2 3 4 |
#! /bin/bash echo -- "$@">/tmp/parameter.txt; echo "$0: please restore me!">/dev/stderr; exit 1; |
Quellcode |
|
1 |
exec mencoder_real "$@"; |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Zitat
Original von oziris
Erstmal könntest Du mit dem "file"-Programm vergleichen, ob zwischen Deiner neuen und den gängigen Dateien ein markanter Unterschied besteht.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
bash-3.1$ mencoder 1-Kriegskunst.avi -v -o /dev/null MEncoder dev-SVN-r28058-4.2.3 (C) 2000-2008 MPlayer Team CPU: AMD Duron(tm) Processor (Family: 6, Model: 3, Stepping: 1) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection. Configuration: --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/lib/co --win32codecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --realcod r=/usr/lib/codecs --mandir=/usr/man --enable-gui --enable-menu --enable-rad language=all --disable-ivtv --enable-runtime-cpudetection init_freetype get_path('font/font.desc') -> '/home/frank/.mplayer/font/font.desc' font: can't open file: /home/frank/.mplayer/font/font.desc Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 cha Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay [file] File size is 110585858 bytes STREAM: [file] 1-Kriegskunst.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x6976802 LAVF_check: AVI format AVI file format detected. list_end=0x186 ======= AVI Header ======= us/frame: 66666 (fps=15.000) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE frames total: 26277 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 128 x 128 ========================== list_end=0x120 ==> Found video stream: 0 [aviheader] Video stream found, -vid 0 ====== STREAM Header ===== Type: vids FCC: XVID (44495658) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 15/1 = 15.000 Start: 0 Len: 26277 Suggested BufferSize: 8052 Quality 0 Sample size: 0 ========================== Found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 128 biHeight 128 biPlanes 1 biBitCount 12 biCompression 1145656920='XVID' biSizeImage 24576 =========================== Regenerating keyframe table for MPEG-4 video. ======= Video Properties Header ======= Format: 0 VideoStandard: 0 VRefresh: 15 HTotal: 128 VTotal: 128 FrameAspect: 16384:12336 Framewidth: 128 Frameheight: 128 Fields: 1 == Field 0 description == CompressedBMHeight: 128 CompressedBMWidth: 128 ValidBMHeight: 128 ValidBMWidth: 128 ValidBMXOffset: 0 ValidBMYOffset: 0 VideoXOffsetInT: 0 VideoYValidStartLine: 0 ======================================= list_end=0x186 ==> Found audio stream: 1 [aviheader] Audio stream found, -aid 1 ====== STREAM Header ===== Type: auds FCC: P (50) Flags: 0 Priority: 0 Language: 0 InitialFrames: 20 Rate: 44100/1152 = 38.281 Start: 0 Len: 67063 Suggested BufferSize: 5760 Quality 0 Sample size: 0 ========================== Found 'wf', 18 bytes of 18 ======= WAVE Format ======= Format Tag: 80 (0x50) Channels: 2 Samplerate: 44100 avg byte/sec: 12020 Block align: 1152 bits/sample: 0 cbSize: 0 ========================================================================== list_end=0x1C0 hdr=Software size=38 Software : MEncoder Sherpya-MinGW-20060312-4.1.0 list_end=0x6809E3A Found movie at 0x100C - 0x6809E3A Reading INDEX block, 93340 chunks for 26277 frames (fpos=109092418). AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x146) Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=87270592 (26277) audio size=21057779 (67063) VIDEO: [XVID] 128x128 12bpp 15.000 fps 398.5 kbps (48.6 kbyte/s) Auto-selected AVI audio ID = 1 [V] filefmt:3 fourcc:0x44495658 size:128x128 fps:15.000 ftime:=0.0667 No audio encoder (-oac) selected. Select one (see -oac help) or use -nosoun Exiting... bash-3.1$ |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
bash-3.1$ mencoder test3.avi -v -o /dev/null MEncoder dev-SVN-r28058-4.2.3 (C) 2000-2008 MPlayer Team CPU: AMD Duron(tm) Processor (Family: 6, Model: 3, Stepping: 1) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled with runtime CPU detection. Configuration: --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --realcodecsdir=/usr/lib/codecs --mandir=/usr/man --enable-gui --enable-menu --enable-radio --language=all --disable-ivtv --enable-runtime-cpudetection init_freetype get_path('font/font.desc') -> '/home/frank/.mplayer/font/font.desc' font: can't open file: /home/frank/.mplayer/font/font.desc Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay [file] File size is 570950 bytes STREAM: [file] test3.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x8b646 LAVF_check: AVI format AVI file format detected. list_end=0x186 ======= AVI Header ======= us/frame: 66666 (fps=15.000) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE frames total: 151 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 128 x 128 ========================== list_end=0x120 ==> Found video stream: 0 [aviheader] Video stream found, -vid 0 ====== STREAM Header ===== Type: vids FCC: XVID (44495658) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 15/1 = 15.000 Start: 0 Len: 151 Suggested BufferSize: 3560 Quality 0 Sample size: 0 ========================== Found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 128 biHeight 128 biPlanes 1 biBitCount 12 biCompression 1145656920='XVID' biSizeImage 24576 =========================== Regenerating keyframe table for MPEG-4 video. ======= Video Properties Header ======= Format: 0 VideoStandard: 0 VRefresh: 15 HTotal: 128 VTotal: 128 FrameAspect: 16384:12336 Framewidth: 128 Frameheight: 128 Fields: 1 == Field 0 description == CompressedBMHeight: 128 CompressedBMWidth: 128 ValidBMHeight: 128 ValidBMWidth: 128 ValidBMXOffset: 0 ValidBMYOffset: 0 VideoXOffsetInT: 0 VideoYValidStartLine: 0 ======================================= list_end=0x186 ==> Found audio stream: 1 [aviheader] Audio stream found, -aid 1 ====== STREAM Header ===== Type: auds FCC: P (50) Flags: 0 Priority: 0 Language: 0 InitialFrames: 20 Rate: 44100/1152 = 38.281 Start: 0 Len: 383 Suggested BufferSize: 6000 Quality 0 Sample size: 0 ========================== Found 'wf', 18 bytes of 18 ======= WAVE Format ======= Format Tag: 80 (0x50) Channels: 2 Samplerate: 44100 avg byte/sec: 12000 Block align: 1 bits/sample: 0 cbSize: 0 ========================================================================== list_end=0x1B8 hdr=Software size=30 Software : MEncoder dev-SVN-r28058-4.2.3 list_end=0x894DE Found movie at 0x100C - 0x894DE Reading INDEX block, 534 chunks for 151 frames (fpos=562406). AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x146) Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=433689 (151) audio size=120058 (120058) VIDEO: [XVID] 128x128 12bpp 15.000 fps 344.6 kbps (42.1 kbyte/s) Auto-selected AVI audio ID = 1 [V] filefmt:3 fourcc:0x44495658 size:128x128 fps:15.000 ftime:=0.0667 No audio encoder (-oac) selected. Select one (see -oac help) or use -nosound. Exiting... bash-3.1$ |
Zitat
PS: Wenn Du ein ordentlicher Spion wärst, dann würdest Du natürlich statt der letzten Zeilen einfach folgendes benutzen:Weil sonst fliegt ja die Tarnung auf!
Quellcode
1 exec mencoder_real "$@";
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »linuxerr« (28.12.2009, 14:14)
Das hat doch nix mit den Containerformat zu tun:Zitat
Original von linuxerr
Zitat
Original von oziris
Erstmal könntest Du mit dem "file"-Programm vergleichen, ob zwischen Deiner neuen und den gängigen Dateien ein markanter Unterschied besteht.
naja, das file-kommando ist da nicht ausreichend, denn avi ist nur ein containerformat in das man alles mögliche packen kann.
Quellcode |
|
1 2 3 4 |
$ file black.avi black.avi: RIFF (little-endian) data, AVI, 32 x 32, 25.00 fps, video: uncompressed $ file ee_rmtv.avi ee_rmtv.avi: RIFF (little-endian) data, AVI, 480 x 480, 25.00 fps, video: DivX 5, audio: uncompressed PCM (stereo, 32000 Hz) |
Das müsste man dann ja umständlich compilieren und alles. Das ist ja unangenehm oder kann man da einfach ein .bat-Script für diesen cmd-Interpreter machen (weil das wird ja vielleicht ohne Dateiendung aufgerufen)?Zitat
Original von linuxerr
unter linux wäre mir das schon klar, das sind aber alles windows exe dateien.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
5,8c5 < Configuration: --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/lib/co < --win32codecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --realcod < r=/usr/lib/codecs --mandir=/usr/man --enable-gui --enable-menu --enable-rad < language=all --disable-ivtv --enable-runtime-cpudetection --- > Configuration: --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/codecs --xanimcodecsdir=/usr/lib/codecs --realcodecsdir=/usr/lib/codecs --mandir=/usr/man --enable-gui --enable-menu --enable-radio --language=all --disable-ivtv --enable-runtime-cpudetection 12c9 < Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 cha --- > Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) 14,15c11,12 < [file] File size is 110585858 bytes < STREAM: [file] 1-Kriegskunst.avi --- > [file] File size is 570950 bytes > STREAM: [file] test3.avi 19c16 < success: format: 0 data: 0x0 - 0x6976802 --- > success: format: 0 data: 0x0 - 0x8b646 28c25 < frames total: 26277 initial: 0 --- > frames total: 151 initial: 0 42,43c39,40 < Start: 0 Len: 26277 < Suggested BufferSize: 8052 --- > Start: 0 Len: 151 > Suggested BufferSize: 3560 78,79c75,76 < Start: 0 Len: 67063 < Suggested BufferSize: 5760 --- > Start: 0 Len: 383 > Suggested BufferSize: 6000 88,89c85,86 < avg byte/sec: 12020 < Block align: 1152 --- > avg byte/sec: 12000 > Block align: 1 93,98c90,95 < list_end=0x1C0 < hdr=Software size=38 < Software : MEncoder Sherpya-MinGW-20060312-4.1.0 < list_end=0x6809E3A < Found movie at 0x100C - 0x6809E3A < Reading INDEX block, 93340 chunks for 26277 frames (fpos=109092418). --- > list_end=0x1B8 > hdr=Software size=30 > Software : MEncoder dev-SVN-r28058-4.2.3 > list_end=0x894DE > Found movie at 0x100C - 0x894DE > Reading INDEX block, 534 chunks for 151 frames (fpos=562406). 103,104c100,101 < AVI video size=87270592 (26277) audio size=21057779 (67063) < VIDEO: [XVID] 128x128 12bpp 15.000 fps 398.5 kbps (48.6 kbyte/s) --- > AVI video size=433689 (151) audio size=120058 (120058) > VIDEO: [XVID] 128x128 12bpp 15.000 fps 344.6 kbps (42.1 kbyte/s) 108c105 < No audio encoder (-oac) selected. Select one (see -oac help) or use -nosoun --- > No audio encoder (-oac) selected. Select one (see -oac help) or use -nosound. |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
====== STREAM Header ===== Type: auds FCC: P (50) Flags: 0 Priority: 0 Language: 0 InitialFrames: 20 Rate: 44100/1152 = 38.281 Start: 0 Len: 67063 Suggested BufferSize: 5760 Quality 0 Sample size: 0 ========================== Found 'wf', 18 bytes of 18 ======= WAVE Format ======= Format Tag: 80 (0x50) Channels: 2 Samplerate: 44100 avg byte/sec: 12020 Block align: 1152 bits/sample: 0 cbSize: 0 |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
====== STREAM Header ===== Type: auds FCC: P (50) Flags: 0 Priority: 0 Language: 0 InitialFrames: 20 Rate: 44100/1152 = 38.281 Start: 0 Len: 383 Suggested BufferSize: 6000 Quality 0 Sample size: 0 ========================== Found 'wf', 18 bytes of 18 ======= WAVE Format ======= Format Tag: 80 (0x50) Channels: 2 Samplerate: 44100 avg byte/sec: 12000 Block align: 1 bits/sample: 0 cbSize: 0 |
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 7 8 9 |
#!/bin/bash mencoder dvd://2 -o test3.avi -of avi \ -ofps 15 \ -vf-add scale=128:128 -vf-add expand=128:128:-1:-1:1 \ -srate 44100 \ -af extrastereo=0 \ -ovc xvid -xvidencopts bitrate=300:max_bframes=0:quant_type=h263p:me_quality=0:aspect=4/3 \ -oac lavc -lavcopts acodec=mp2:abitrate=96 \ |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »linuxerr« (28.12.2009, 22:34)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »linuxerr« (29.12.2009, 00:01)
Benutzerinformationen überspringen
Prof. Dr. Schlaumeier
Wohnort: Mecklenburg, zur Entwicklungshilfe in Chemnitz/Sachsen ;-)
Quellcode |
|
1 2 3 4 5 6 |
mencoder ${1} -o ${2}.avi -of avi \ -ofps 15 \ -vf-add scale=128:128 -vf-add expand=128:128:-1:-1:1 \ -srate 44100 \ -ovc xvid -xvidencopts bitrate=288:max_bframes=0:quant_type=h263p:me_quality=0:aspect=4/3 \ -oac lavc -lavcopts acodec=mp2:abitrate=96 |