Курт Lestrat Amadeus

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Курт Lestrat Amadeus » Интернет и оформлеие » pwcview,MP4TRACK,ossplay


pwcview,MP4TRACK,ossplay

Сообщений 1 страница 10 из 10

1

Usage: pwcview [ options ]

Options:
-?               Display this help message
-h               Run in headless mode
-p               Enable webcam snapshot button
-k               Add time date string to picture

-x               Create window without frame
-y               Use IYUV overlay instead of YV12 overlay
-z               Create the video surface in system memory (SDL_SWSURFACE)
-a               Always use video surface (SDL_ANYFORMAT)
-b <bpp>         Bits per pixel to setup SDL video surface with (default: 0)

-r               Enable motion detection recording
-m               Show detected motion
-j <command>     Command to execute when motion is detected (default: none)
-g <interval>    Minimum time in seconds between motion commands (default: 60)
-u <sensitivity> Motion detection sensitivity (default: 1000)
-t <threshold>   Motion detection threshold (default: 1)
-l <frames>      Recording margin (default: 15)

-c <count>       Number of jpeg snapshots to take (default: 0 (-1=unlimited))
-i <interval>    Jpeg snapshot interval in milliseconds (default: 3000)
-q <quality>     Quality of jpeg output image (range: 0-100, default: 75)
-o <outfile>     Filename for jpeg output (default: /tmp/%Y%m%d%H%M%S.jpg)
-e <command>     Command to execute after each snaphot (default: none)

-d <device>      Video device to open (default: /dev/video0)
-s <size>        Video size to use (default: sif)
-f <fps>         Video framerate to use (default: 5)

See the pwcview(1) man page for details

MEncoder SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer Team
Reading from stdin...
success: format: 0  data: 0x0 - 0x0
rawvideo file format detected.
[V] filefmt:26  fourcc:0x30323449  size:320x240  fps:15.000  ftime:=0.0667
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4])
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================

Flushing video frames.

0

2

примеры

pwcview -kr -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o KurtLestratAmadeus.avi
pwcview -r -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o балахон.avi
pwcview -hr -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o motion.avi
pwcview -r -v -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o KurtLestratAmadeus.avi

перевод
еревод

Открыть|Закрыть

Использование: pwcview [возможности] Возможности:-? Покажет это сообщение помощи-h Управляемый в безголовом способе-p, Позволяют webcam кнопку снимка-k, Добавляют вереница даты времени к фотографии Окно Create-x без структуры-y Использует наклейку IYUV вместо наклейки YV12-z, Создают видео поверхность в памяти системы (SDL_SWSURFACE)-a, Всегда используют видео поверхность (SDL_ANYFORMAT)-b <bpp> Биты в пиксел к установке поверхность видео SDL с (неплатеж: 0) -r Позволяют обнаружение движения, делающее запись-m, Шоу обнаружило движение-j <команда> Команда, чтобы выполнить, когда движение обнаружено (неплатеж: ни один)-g <интервал> время Минимума в секундах между командами движения (неплатеж: 60)-u <чувствительность> чувствительность обнаружения Движения (неплатеж: 1000)-t <пороговый> порог обнаружения Движения (неплатеж: 1)-l <структуры>, Делающие запись края (неплатеж: 15) -c <счет> Число jpeg снимков, чтобы взять (неплатеж: 0 (-1=unlimited))-i <интервал> интервал снимка Jpeg в миллисекундах (неплатеж: 3000)-q <качественное> Качество jpeg изображения продукции (диапазон: 0-100, неплатеж: 75)-o <outfile> Имя файла для jpeg продукции (неплатеж:/tmp / % Y%m%d%H%M%S.jpg)-e <команда> Команда, чтобы выполнить после каждого snaphot (неплатеж: ни один) -d <устройство> устройство Видео, чтобы открыть (неплатеж:/dev/video0)-s <размер> Видео измеряют, чтобы использовать (неплатеж: sif)-f <fps> Видео framerate, чтобы использовать (неплатеж: 5) См. pwcview (1) страница человека для деталей MEncoder SVN-r32577-snapshot-4.2.1 (C) 2000-2010 MPlayer TeamReading от stdin ... успех: формат: 0 данных: 0x0 - 0x0rawvideo обнаруженный формат файла. [V] filefmt:26 fourcc:0x30323449 size:320x240 fps:15.000 ftime: = 0.0667Opening видео фильтр: [расширитесь, osd=1] Расширяются:-1 x-1,-1;-1, osd: 1, аспект: 0.000000, вокруг: 1

==========================================================================, Открывая видео декодер: [сырой] СЫРОЙ Несжатый VideoMovie-аспект неопределен - нет предизмеряющий applied.videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4]) Выбранный видео кодер-декодер: [rawi420] vfm: сырье (СЫРОЙ I420)

0

3

PWCVIEW
Section: General Commands (1)
NAME
pwcview - view video, create jpeg snapshots and alter settings of a webcam controlled by the pwc(4) driver.
SYNOPSIS

pwcview [options]
DESCRIPTION
The pwcview utility is used to view the video, create jpeg snapshots, and alter the settings of a webcam controlled by the pwc(4) driver.
COMMAND LINE OPTIONS
General options:



-
Display help message
-h
Run pwcview in headless mode (without the gui)
-p
Enable webcam snapshot button (only works with the FreeBSD pwc driver and not with all cameras)
-k
Add time date string to picture.


Device options:



-d -file ... -device
Selects the video device to open. The default is /dev/video0
-s -file ... -size
Sets the webcam's video size. The default is sif. Can be one of 'sqcif', 'qsif', 'qcif', 'sif', 'cif' or 'vga', for an image size of resp. 128x96, 160x120, 176x144,320x240, 352x288 and 640x480 (of course, only for those cameras that support these resolutions).
-f -file ... -fps
Sets the webcam's frame rate. The default is 5. Should be in the range of 5-30.


JPEG output options:



-c -file ... -count
Number of automatic jpeg snapshots to take. Set this to -1 for unlimited automatic jpeg snapshots. The default is 0
-i -file ... -interval
Automatic jpeg snapshot interval in milliseconds. The default is 3000
-q -file ... -quality
Quality of jpeg output images, range 0-100. The default is 75
-o -file ... -outfile
Filename of the jpeg output images. This is a string that is passed to the strftime(3) function and thus can contain the format specifiers as documented in the strftime(3) man page. The default is /tmp/%Y%m%d%H%M%S.jpg
-e -file ... -command
Command to execute after each jpeg snapshot. This command will be executed with the filename of the jpeg image as it's only command line argument. If you want to execute a command that requires multiple arguments, you can create a wrapper shell script. The default is not to execute any command.


Motion detection options:



-r
Enable motion detection recording. When this option is specified pwcview will write all raw YUV420P frames that have a number of blocks with motion in them that is higher than threshold to stdout. For this option to work you must redirect stdout to a file or pipe it to another command (e.g. mencoder )
-m
Show detected motion. When this option is specified the regions in the picture in which motion is detected are displayed in negative.
-j -file ... -command
Command to execute when motion is detected. The default is not to execute any command.
-g -file ... -interval
Minimum time in seconds between motion commands. The default is 60 seconds.
-u -file ... -sensitivity
Motion detection sensitivity. The lower you set this the more sensitive. The default is 1000.
-t -file ... -threshold
Motion detection threshold. The number of blocks (a block is 8x8 pixels) that must have motion in them before any of the actions motion record, motion fullscreen or motion beep is taken. The default is 1.
-l -file ... -frames
Recording margin. The number of extra frames that are written to stdout after the last frame that had motion in it. The default is 15.


Video display options:



-x
Create window without frame
-y
Use IYUV overlay instead of YV12 overlay
-z
Create the video surface in system memory (SDL_SWSURFACE)
-a
Always use video surface (SDL_ANYFORMAT)
-b -file ... -bpp
Bits per pixel to setup video surface with. The default is 0, which means to use the current display bits per pixel.

MOTION DETECTION
pwcview can also detect motion in the webcam's image and write the frames with motion in them to stdout so you can for example encode them with mencoder to MPEG4.

Sometimes it can be useful to exclude some areas in the picture from motion detection. With pwcview you can use the m key to enter motion mask editing mode. In motion mask editing mode you can add areas to exclude from motion detection with the mouse. In motion mask editing mode masked areas are displayed in negative.

To add an area to the motion mask: move the mouse pointer to the top left position of the area that you want to exclude and left click then move your mouse pointer to the bottom right position of the area that you want to exclude and left click again. You can repeat this as many times as you want.

To remove areas from the motion mask do the same but this time use the right mouse button. To clear the entire mask press the middle mouse button.

You can save the motion mask with the w key. Each time pwcview starts it will look for the mask file in the current directory and automatically load it.

To leave motion mask editing mode press the m key again.
KEYBOARD CONTROLS

Besides the keys used for the menu system the following keys can be used:



f
Toggle fullscreen mode.
p
Take a manual jpeg snapshot.
q
Quit the application.
m
Enter/leave motion mask editing mode.
w
Saves motion mask to pwcview.msk in current directory.
space
Freeze/unfreeze picture.

MENU SYSTEM
With pwcview you can alter various settings of your webcam. It provides a menu like structure where you specify what setting you want to alter with the up arrow and down arrow. The current menu item and thus the setting to alter will then be displayed in the title bar.

The following settings of the webcam can be altered:



framerate
Use the left arrow and right arrow to change the webcam's frame rate.
brightness
Use the left arrow and right arrow to change the webcam's brightness.
contrast
Use the left arrow and right arrow to change the webcam's contrast.
saturation
Use the left arrow and right arrow to change the webcam's saturation.
gamma
Use the left arrow and right arrow to change the webcam's gamma.
gain control
Use the enter key to switch between auto and manual gain control. Use the left arrow and right arrow in manual mode to change the webcam's gain control.
shutter speed
Use the enter key to switch between auto and manual shutter speed. Use the left arrow and right arrow in manual mode to change the webcam's shutter speed.
white balance
Use the enter key to switch between auto, manual, indoor, outdoor and fluorescent white balance. Use the left arrow and right arrow in manual mode to change the webcam's red gain and blue gain.
contour
Use the enter key to switch between auto and manual contour. Use the left arrow and right arrow in manual mode to change the webcam's contour.
dnr mode
Use the enter key to switch between the webcam's various modes of dynamic noise reduction.
backlight compensation
Use the enter key to switch the webcam's backlight compensation on/off.
anti flicker mode
Use the enter key to switch the webcam's anti flicker mode on/off.
color mode
Use the enter key to switch the webcam to color or black and white mode (FreeBSD only)
compression
Use the left arrow and right arrow to change the webcam's compression level.
save user settings
Use the enter key to save the current webcam settings to the webcam's EEPROM.
restore user settings
Use the enter key to load the current webcam settings from the webcam's EEPROM.
restore factory settings
Use the enter key to load the current webcam settings from the factory defaults.
led on
Use the left arrow and right arrow to change the webcam's led on time.
led off
Use the left arrow and right arrow to change the webcam's led off time.


The following settings of pwcview can be altered:



time date string
Use the enter key to toggle the addition of a time date string to the picture. (command line equivalent -k)
scaling
Use the enter key to switch between none, double and full scaling.
motion record
Use the enter key to enable/disable motion recording (command line equivalent -r)
motion fullscreen
Use the enter key to enable/disable going to full screen mode when motion is detected.
motion beep
Use the enter key to enable/disable the speaker beep when motion is detected.
motion show
Use the enter key to toggle the display of motion in negative (command line equivalent -m)
motion command interval
Use the left arrow and right arrow to change the motion command interval (command line equivelant -g)
motion sensitivity
Use the left arrow and right arrow to change the motion detection sensitivity (command line equivalent -u)
motion threshold
Use the left arrow and right arrow to change the motion detection threshold (command line equivalent -t)
recording margin
Use the left arrow and right arrow to change the recording margin (command line equivalent -l)

VIDEODISPLAY
pwcview uses the SDL library to display the video of your webcam. The default video mode used by pwcview is in general the most efficient, but this is very much dependent on the capabilities of your video card. If it doesn't quite work the way you want it to, you can tune the video settings with any of the command line options listed in the "Video display options" section at the beginning of this man page. See the SDL_SetVideoMode(3) man page for exact details.
EXAMPLES
Set the webcam to vga mode at 15 fps and execute the firefox command whenever a jpeg snapshot is taken:

pwcview -s vga -f 15 -e firefox

Take one automatic jpeg snapshot image using the default sif resolution, save it as foo.jpg and then exit:

pwcview -h -c 1 -o foo.jpg

Run pwcview in headless mode with the webcam set to 320x240@15fps, add a time date string to the picture, write the frames in which motion is detected to stdout and encode them with mencoder to motion.avi:

pwcview -hkr -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o motion.avi
SEE ALSO

The Linux PWC Documentation Project:

pwc(4), SDL_SetVideoMode(3), strftime(3)
COPYRIGHT
This is free software licensed under the GPLv2; There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Copyright (C) 2006-2007        Raaf

0

4

MP4TRACK
Section: General Commands (1)
NAME
mp4track - manual page for mp4track - MP4v2 1.9.1
SYNOPSIS
mp4track [OPTION]... [PARAMETERS]... ACTION file...
DESCRIPTION
For each mp4 file specified, perform the specified ACTION. An action must be specified. Some options are not applicable to some actions.

ACTIONS

--list
list all tracks in mp4
--enabled BOOL
set trak.tkhd.flags (enabled bit)
--inmovie BOOL
set trak.tkhd.flags (inMovie bit)
--inpreview BOOL
set trak.tkhd.flags (inPreview bit)
--layer NUM
set trak.tkhd.layer
--altgroup NUM
set trak.tkhd.alternate_group
--volume FLOAT
set trak.tkhd.volume
--width FLOAT
set trak.tkhd.width
--height FLOAT
set trak.tkhd.height
--language CODE
set trak.mdia.mdhd.language
--hdlrname STR
set trak.mdia.hdlr.name
--udtaname STR
set trak.udta.name.value
--udtaname-remove
remove trak.udta.name atom
--colr-list
list all colr-boxes in mp4
--colr-add
add colr-box to a video track
--colr-set
set colr-box parms
--colr-remove
remove colr-box from track
--pasp-list
list all pasp-boxes in mp4
--pasp-add
add pasp-box to a video track
--pasp-set
set pasp-box parms
--pasp-remove
remove pasp-box from track

PARAMETERS

--track-any
act on any/all tracks
--track-index IDX
act on track index IDX
--track-id ID
act on track id ID
--colr-parms CSV
where CSV is IDX1,IDX2,IDX3
--colr-parm-hd
equivalent to --colr-parms=1,1,1
--colr-parm-sd
equivalent to --colr-parms=6,1,6
--pasp-parms CSV
where CSV is hSPACING,vSPACING

OPTIONS

-z, --optimize
optimize mp4 file after modification
-y, --dryrun
do not actually create or modify any files
-k, --keepgoing
continue batch processing even after errors
-o, --overwrite
overwrite existing files when creating
-f, --force
force overwrite even if file is read-only
-q, --quiet
equivalent to --verbose 0
-d, --debug NUM
increase debug or long-option to set NUM
-v, --verbose NUM
increase verbosity or long-option to set NUM
-h, --help
print brief help or long-option for extended help
--version
print version information and exit

DEBUG LEVELS (for raw mp4 file I/O)

0
supressed
1
add warnings and errors (default)
2
add table details
3
add implicits
4
everything

VERBOSE LEVELS

0
warnings and errors
1
normal informative messages (default)
2
more informative messages
3
everything

0

5

ossplay
Section: General Commands (1)
NAME
ossplay - Open Sound System playback program. 
SYNOPSIS
ossplay [-FRhlvq] [-S secs ] [ -c channels ] [ -d devname ]
      [ -f fmtname | ? ] [ -g gain ] [ -o playtarget | ? ]
      [ -s rate ] filename | - ...

DESCRIPTION
ossplay plays raw PCM, Microsoft RIFF (.wav), Sun ULaw (.au), Mac AIFF (.aif) and other types of audio files. By default the application will try to determine the audio file's format and play audio based on the stored inforation about sample format, number of channels and sampling rate.
OPTIONS

-v
Verbose output. Multiple invocations increase the level of verbosity.
-q
Quiet (no information printed).
-l
Loop playback indefinately.
-d<devname>
Select <devname> as the device (eg -d/dev/dsp2).
-s<rate>
Select the playback rate for raw PCM audio (eg -s48000).
-c<channels
Select the number of channels 1=mono 2=stereo, 4, 6, 8, etc.
-f<fmtname>
Select the input format (eg -fU8 or -fS16_BE).
-f?
Prints the list of supported format names.
-o<playtarget>
Selects the play target name if the device supports multiple play targets (such as front, rear, side).
-o?
Prints the list of available play targets.
-g<gain>
Amplify all played samples by percentage given as argument. 100 (default) means normal signal level, 200 means double level.
-F
Treat all input as raw PCM data.
-R
Disable redirection to virtual mixer engines and sample rate/format conversions. Should not be used unless absolutely necessary.
-S<secs>
Start playing at <secs> seconds from start of file. The argument can contain a fractional part (e.g. -S1.2)
-h
Display usage information.
INTERRUPT
Sending a SIGQUIT (Ctrl-\ in most terminals) will make ossplay stop playing the currently played file and skip to the next file.
NOTES
The ossplay executable is the same as the ossrecord executable. Behaviour is decided by the name used to invoke the program.
SEE ALSO
ossrecord(1), ossmix(1), ossxmix(1)
FILES
/usr/local/bin/ossplay
AUTHOR
4Front Technologies

0

6

pwcview -hr -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o motion.avi
pwcview -kr -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o Чугунок.avi
pwcview -r -x -s sif -f 15 | mencoder -demuxer rawvideo -rawvideo fps=15:w=320:h=240:i420 - -ovc lavc -lavcopts vcodec=mpeg4 -o балахон.avi

0

7

wiki.freebsd.org/WebcamCompat[/align [1] [align=center]The built-in microphone of newer Logitech webcams works with snd_uaudio(4) (tested with C210, C270 HD and C310 HD), but it requires the following command after an application (e.g. pwcview or skype) has opened the camera device (/dev/video0) for the first time: * usbconfig -d ugenX.Y do_request 0x22 0x01 0x100 0x86 0x03 0x80 0xBB 0x00 Replace "ugenX.Y" with your device, according to the output from "usbconfig" or "dmesg". You have to issue that command only once; it remains in effect until you unplug the camera. You can use the following command to test the microphone: * dd if=/dev/dspX.0 of=/dev/dspY.0 bs=64 Where "X" is the pcm number of the microphone, and "Y" is the pcm number of your normal playback device (speakers). The command "cat /dev/sndstat" lists all devices and their numbers. [2] When pwcview is run for the first time, it fails with this error message: * libv4l2: error converting / decoding frame data: v4l-convert: error parsing JPEG header: Not a JPG file ? Error reading from webcam: Input/output error However, when run for the second time, it works fine.

увеличить

0

8

при том что я сам не знал как делать и что всегда пишет ошибки подумал скинуть вот такое
очень полезно
если кто сталкивался

вот вы пользуетесь GTK

и  pwcview

что бы прибавить другое видео нужно сначало
взять размеры

у вас они
320x240

ставите любое видео на кодек (asp )любой я пробовал MPEG-4( Xvid)

заходите в фильтр  там нужно

в трасформации(Trasform)

выбрать MPleer relize

указать 320(ширина)240(высота)

Контейнер AVI

После ваше видео можно будет прилепить к другому с теми же размерами

Так же можно и другие кодеки

(регистрируйтесь задавайте вопросы буду рад подсказать)

что знаю всё подскажу

так же есть мои драмники

или же ваши  для Hydrogen

(пользуйтесь системами без вирусов! и тогда сможете сами делать программы!windows не относится к ним!)

Тот у кого не бывает вирусов тот гораздо продвинутее

0

9

прибавка
если вам пишет так

The H.263 encoder only accepts the following resolutions:
128 x 96
176 x 144
352 x 288
704 x 576
1408 x 1152

0

10

к сожалению этот кодек совсем не подходит к теме

то есть вам сложновато будет кодировать все видео

http://labs.divx.com/node/11681

но он как раз используется на моделях видео плеерах с записью

программа мпг но очень  своеобразная

(вопросы если есть отвечу)

0


Вы здесь » Курт Lestrat Amadeus » Интернет и оформлеие » pwcview,MP4TRACK,ossplay