工作命令行积累 shell

df -h
du -h --max-depth=1 /root/gst
imagefreeze






#include <execinfo.h>
#include <stdio.h>
#include <stdlib.h>
#define PRINT_BT \
({ \
void *array[BT_MAX] = {0}; \
size_t size = 0; \
char **string = NULL; \
size_t i; \
size = backtrace(array,BT_MAX); \
fprintf(stderr,"The X API backtrce obtained: %d stack frames.\n",size); \
string = backtrace_symbols(array,size); \
if(string == NULL) \
{fprintf(stderr,"error: backtrace_symbols return NULL !"); \
abort();} \
for(i=0; i<size; i++) \
{fprintf(stderr," %s \n",string[i]);} \
free(string); \
string = NULL;\
abort(); \
})




journalctl -af
dlogutil
wrt-launcher -l/s t8j6HTRpuz.MediaPlayer
/opt/usr/media


cancel commit:
git reset HEAD~
merge commit:
git rebase -i commitid


ivi image:  
linux-ftp.jf.intel.com/pub/mirrors/tizen/snapshots/tizen/ivi/ivi-release
http://linux-ftp.jf.intel.com/pub/mirrors/tizen/releases/daily/tizen/ivi/ivi/


ivi camera:
gst-launch-1.0 v4l2src num-buffers=50 ! image/jpeg,width=1280,height=720 ! filesink location=1.jpg
gst-launch-1.0 v4l2src device=/dev/video0 ! tee name=vsrc vsrc. ! queue ! autovideoconvert ! video/x-raw,format=YV12 ! vaapisink vsrc. ! queue ! autovideoconvert  !  video/x-raw,format=YV12 ! jpegenc ! filesink location=test.jpg


./v4l2-ctl --help
./v4l2-ctl --list-formats
./v4l2-ctl --list-framesizes=YUYV
v4l2-ctl --list-frameintervals=width=800,height=600,pixelformat=YUYV


root@weichangzhi:~/multimedia/simple-camera# v4l2-ctl --list-framesizes=MJPG
ioctl: VIDIOC_ENUM_FRAMESIZES
    Size: Discrete 640x480
    Size: Discrete 160x90
    Size: Discrete 160x120
    Size: Discrete 176x144
    Size: Discrete 320x180
    Size: Discrete 320x240
    Size: Discrete 352x288
    Size: Discrete 432x240
    Size: Discrete 640x360
    Size: Discrete 800x448
    Size: Discrete 800x600
    Size: Discrete 864x480
    Size: Discrete 960x720
    Size: Discrete 1024x576
    Size: Discrete 1280x720
    Size: Discrete 1600x896
    Size: Discrete 1920x1080


root@weichangzhi:~/multimedia/simple-camera# v4l2-ctl --list-framesizes=YUYV
ioctl: VIDIOC_ENUM_FRAMESIZES
    Size: Discrete 640x480
    Size: Discrete 160x90
    Size: Discrete 160x120
    Size: Discrete 176x144
    Size: Discrete 320x180
    Size: Discrete 320x240
    Size: Discrete 352x288
    Size: Discrete 432x240
    Size: Discrete 640x360
    Size: Discrete 800x448
    Size: Discrete 800x600
    Size: Discrete 864x480
    Size: Discrete 960x720
    Size: Discrete 1024x576
    Size: Discrete 1280x720
    Size: Discrete 1600x896
    Size: Discrete 1920x1080
    Size: Discrete 2304x1296
    Size: Discrete 2304x1536




valgrind --tool=memcheck --leak-check=full ./simple-encoder -o 3.h264 /root/Videos/testencode/example.y4m  2>&1 | tee /root/log/memcheck.log


y4mcolorbars | simple-encoder/ yuvplay






encoder:
dd if=xx.yuv of=onefrmae.yuv bs=width*hegith*1.5 count=1
gst-launch-1.0 -v  v4l2src device=/dev/video0 num-buffers=1 !   video/x-raw,width=1280,height=720 ! vaapiencodeh264  ! filesink location=test.h264gst-launch-1.0 -v playbin uri=file:///test.h264


gst-launch-0.10 v4l2src device=/dev/video0 ! video/x-raw-yuv,width=176,height=144 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! mp4mux ! queue ! filesink location=176x144.mp4


gst-launch-0.10 -v  filesrc location=/root/Videos/testencode/320x240.mp4 ! qtdemux ! h264parse ! vaapidecode ! vaapidownload ! video/x-raw-yuv ! filesink location=320x240.nv12
dd if=320x240.nv12 of=320x240-30.nv12 bs=115200 count=30


gst-launch-1.0 filesrc location=example.y4m ! y4mdec ! vaapiencode_mpeg2 ! filesink location=1.example.mpeg2


webkit:
sudo cp ~/gbs-bin/depanneur-bc /usr/bin/depanneur && gbs build -A i586 --noinit --incremental -B /home/halley/a-phone-debug/gbs-root-rsa-webkit/
objcopy --strip-all ./BuildWK2-i386/usr/lib/libewebkit2.so.0.11.47 && sdb push ./BuildWK2-i386/lib/libewebkit2.so.0.9.84  /usr/lib/


sudo gbs build -A i586  --noinit  --incremental -B /home/weichangzhi/sda2/gbs-root; objcopy -S BuildWK2-i386/usr/lib/libewebkit2.so.0.11.47 ; scp BuildWK2-i386/usr/lib/libewebkit2.so.0.11.47 [email protected]:/usr/lib


MiniBrowser http://halley-sandy.sh.intel.com/share/ivi/web-video/test-720.html
cat /etc/tizen-release


 MiniBrowser http://yongchao-chen.sh.intel.com
#
vi /etc/xdg/weston/weston.ini 
[output]
name=VGA1 mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync


gbs build -A i586 -B /root/wayland/gbs-root/simple-player/ -D /root/wayland/code/build.conf --include
. /etc/bashrc
 rpm -ivh --nodeps *.rpm --froce
 gbs build --incremental -A i586 -B /root/ivi/gbs-root/gst-vaapi
sudo gbs build -A i586 --include-all --overwrite


tizen:tz.odcshare.org
ssh tizen:gerrit ls-projects|grep wayland | grep xxx
git clone tizen:profile/wayland/xxx
git checkout tizen_2.0


git push tizen:profile/wayland/simple-player tizen_2.0:tizen_2.0
gbs submit -m "add simple-player"




ivi:
ssh halley@halley-sandy ha
ssh tizengerrit gerrit ls-projects
git clone tizengerrit:platform/upstream/wayland
gbs chroot .


gst-launch-1.0 is in gstreamer-utils




#fix the sda/sdb issue
1.after install image to disk /dev/sda
2.boot from hard disk
3."A start  job is running for dev-sdb1 . devide"  --> then plugin your usb disk
4.mount /dev/sda2 /mnt  #(fdisk -l /dev/sda, /dev/sda2 is not shown)
5. sudo vi /mnt/etc/fstab  # change sdb to sda




weston log:
commit /etc/inittab #s2:12345:respawn:/sbin/launchweston > /var/log/weston.log 2>&1
reboot
export WAYLAND_DEBUG=1
/sbin/launchweston > weston.log 2>&1
/usr/app/org.tizen.indicator/bin/indicator
/usr/app/org.tizen.simple-player/bin/simple-player


#ubuntu version
lsb_release -a




#install ivi
dpkg -i bmap_tool.deb


#kill pid
pkill -9 eflplayer


#input way
Go to the menu:
System >> Preferences >> Startup Applications
Click the button: Add
Name: IBus daemon
Command: /usr/bin/ibus-daemon -d
Comment: start IBus daemon when Gnome starts 


#camera preview
gst-launch v4l2src ! autovideosink


tsocks git clone git://gitorious.org/gst-plugins-vaapi/gst-plugins-vaapi.git
#remove ^M
dos2unix


#iso image
startup disk creator


#coredump
ulimit -c unlimited
ulimit unlimited
./gst-camera
gdb ./gst-camera core
bt
where




kill -s SIGSEGV pid
echo "/home/app/corefile/core-%e-%p" >/proc/sys/kernel/core_pattern
echo "1" > /proc/sys/fs/suid_dumpable
echo "1" > /proc/sys/kernel/core_uses_pid




totem --gst-debug=*:3 --gst-debug-no-color 2>&1 | tee /root/log/  
export GST_DEBUG=vaapi*:5
--gst-debug=vaapi*=3,clutter*:3
totem --gst-debug=vaapi*:5 --gst-debug-no-color 
--gst-debug-no-color


./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu  --enable-encoders CFLAGS=-g 
export GST_DEBUG_DUMP_DOT_DIR=/root/log/dump
gst-launch playbin2 uri=file:///
dot -Tsvg -o pipeline.svg /root/log/dump/totem-prerolled.dot


hw
preview:
gst-launch-0.10 v4l2src device=/dev/video1 ! vaapiupload ! vaapisink


record:
gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! mp4mux ! queue ! filesink location=test.mp4


photo:




sw
preview:
gst-launch-0.10 v4l2src device=/dev/video1 ! xvimagesink 


record:
gst-launch-0.10 v4l2src device=/dev/video1 ! tee name=vsrc vsrc. ! queue ! timeoverlay ! xvimagesink  vsrc. ! queue  ! ffmpegcolorspace ! theoraenc ! oggmux ! queue ! filesink location=test.mp4


photo:
gst-launch-0.10 v4l2src device=/dev/video1 ! tee name=vsrc vsrc. ! queue ! xvimagesink vsrc. ! queue ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg






#
you can backup your package list and reinstall it with one commend, if reinstall is required
   # backup pkg list on ubuntu
    dpkg --get-selections >~/package.selections
    # restore pkg on another ubuntu
    apt-get update && dpkg --set-selections </home/halley/package.selections-overlay && apt-get dselect-upgrade


dpkg -S gst-launch-0.10
dpkg -l |grep clutter


apt-cache searce va-dev 


env |grep gst


ufw disable


Ctrl+Alt+F1
xinit 
startx




#set root
/etc/lightdm/lightdm.conf
    greeter-show-manual-login=true
    allow-guest=false


sudo passwd root


#display
export DISPLAY=:0.0


grep -rin "gst" *


mount /dev/sda1 /work
ubuntu software center ->ibus安装
ibus-setup
ibus-daemon -drx
alsamixer
  1 Section "Device"
  2    Identifier    "Configured Video Device"
  3 EndSection
  4 
  5 Section "Monitor"
  6    Identifier    "Configured Monitor"
  7    Modeline "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
  8 EndSection
  9 
 10 Section "Screen"
 11    Identifier    "Default Screen"
 12    Monitor        "Configured Monitor"
 13    Device        "Configured Video Device"
 14    SubSection "Display"
 15    Modes "1366x768" "1024x768"
 16    EndSubSection
 17 EndSection        




git log -stat --after="2012-09-25"
# show detail
git log -p 


uanme -a//i686/i386  32bit     x86_64  64bit


~/.bashrc 
/etc/profile
export PATH=$PATH:/root/gst/


#download source code and build
apt-get source totem
apt-get build-dep totem
dpkg-buildpackage -us -uc -rfakeroot          //first


make ;make install




systemseting->all settings ->notwork proxy
proxy.cd.intel.com : 911


/etc/tsocks.conf
server=10.7.211.16#(proxy.jf.intel.com)
server_port = 1080


apt-get install autoconf automake libtool


apt-get remove libval


Tools->Intelnet options > browing history ->setting->view file 




/etc/profile 
export GST_DEBUG_FILE=/root/log/gst.log


ps -aux |grep vaapi


find . -mtime -1


# ~/.vimrc
set number
set hlsearch
set tabstop=4
set ignorecase
set incsearch


set nonu


:set ts=4
:set expandtab
:%retab!




:set ts=4
:set noexpandtab
:%retab!








sudo apt-get install gstreamer0.10-plugins-bad libgstreamer-plugins-bad0.10-dev libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev




1.git clone rul
2.git checkout branch
3.git pull


cd /home/cc/gstreamer-vaapi/
git clean -xdf
tsocks git pull
./autogen.sh --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --enable-wayland=0
make && make install


 gst-launch-0.10 playbin2 video-sink="vaapisink sync=false"  uri=file:///home/weichangzhi/MR2_TANDBERG_E.264


mplayer -nosound -fps 1000 -vo vaapi -va vaapi MR2_TANDBERG_E.264






Environment setup:
1. All Gstreamer core code:
Gstreamer, git://anongit.freedesktop.org/gstreamer/gstreamer, branch to origin/0.10
gst-plugins-base,  git://anongit.freedesktop.org/gstreamer/gst-plugins-base, branch to origin/0.10
gst-plugin-good, git://anongit.freedesktop.org/gstreamer/gst-plugins-good, branch to origin/0.10
gst-plugins-bad, git://anongit.freedesktop.org/gstreamer/gst-plugins-bad, branch to origin/0.10


2. Libva:
git://anongit.freedesktop.org/vaapi/libva, branch to origin/staging


3. Intel-driver:
git://anongit.freedesktop.org/vaapi/intel-driver, branch to origin/staging


4. Gst-vaapi,
<1>  QA test source code:
git://bee.sh.intel.com/git/media/gstreamer-vaapi, branch to qa
         <2>  upstream source code:
            git://gitorious.org/vaapi/gstreamer-vaapi.git
         QA normally test <1>.  To bug 55301, you need install <2> to check whether it¡¯s fixed.


Gstreamer, after built, you need 


$export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-0.10  #(if you prefix to /opt/xxx/, the path should be /opt/xxx/ lib/gstreamer-0.10)


./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu






autoconf automake autopoint flex bison libdrm-dev libx11-dev libxext-dev  libxfixes-dev  gtk-doc-tools
 


gst-launch-0.10 filesrc location=/home/meego/Videos/noaudio-404kbps-320x240-14.985fps-h264-MID_H264.mp4 ! qtdemux ! MixVideoDecoder !                 vasurfaceconvert ! "video/x-raw-rgb" ! ffmpegcolorspace ! xvimagesink
gst-launch-0.10 filesrc location=/home/meego/Videos/noaudio-404kbps-320x240-14.985fps-h264-MID_H264.mp4 ! qtdemux ! MixVideoDecoder !                 vasurfaceconvert ! ffmpegcolorspace ! xvimagesink


gst-launch-0.10 filesrc location=/home/meego/Videos/kauai_720p_H.264_AAC_6708Kbps_30FPS_5m30s.mp4 ! qtdemux name=demux ! MixVideoDecoder !            vaimagesink demux. ! queue ! lpedec_aac ! lpesink








1. export GST_DEBUG_DUMP_DOT_DIR=/path/to/save/dot/file


2. gst-launch playbin2 uri=file:///path/to/video/file


3. dot -Tsvg -o pipeline.svg /path/to/save/dot/file/xxxx.dot ## Then you got the graph for the whole pipeline; dot is a   binary in graphviz pkg




git push bee  :heads/ivi-branch


git init-db
git add *
git commit -a -m "init-db"
git clean -dxf
git remote add bee ssh://[email protected]/git/media/simple-player 
git remote -v
git push bee --all  
git push bee


git config --global core.editor vim
git config --global user.name yyfrankyy
git config --global user.email [email protected]
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto


git format-patch commitid
git am name.patch


git remote add gw git://gitorious.org/vaapi/gstreamer-vaapi.git
git fetch gw 
git checkout -b gw-master gw/master
git checkout master
git rebase gw-master




git apply -v --check 0001.patch


 apt-get install apt-file
 apt-file update
 apt-file search mx/mx.h
 dpkg -L libmx-dev
 pkg-config --cflags mx-1.0


gconf-editor
ps -ef |grep gst
lsof -p 123 
lsof filename
gparted






/boot/grub/grub-cfg
update-grub


nm -D gstvaapi.so


readelf -s gstvaapi.so


 make clean


#This cleans up all build files (binaries, objects etc.) from the tree.


 make distclean


#This cleans out all files from the build and from configure's output too.


 make maintainer-clean


#This deletes all the files autogen.sh will produce so the tree is clean to be put into a revision-control system (like CVS, SVN or GIT for example).




zypper search emotion
zyper pa|grep emotion
zypper install emotion


cd /root/tizen/platform;
mount -n --bind /dev ./dev;
mount -n --bind /proc ./proc;
cp /etc/resolv.conf ./etc/resolv.conf


















ssh-keygen -t rsa






after install os ,we need do:
1.update-grub2
2.config network
systemseting->all settings ->notwork proxy
proxy.cd.intel.com : 911
3.sudo apt-get update
4.apt-get install vim tsocks
5.config root
/etc/lightdm/lightdm.conf
greeter-show-manual-login=true
allow-guest=false


sudo passwd root
reboot 
repeat 1-4
 config tsocks

    /etc/tsocks.conf
server=10.7.211.16#(proxy.jf.intel.com)
server_port = 1080
6.input method:
ubuntu software center ->ibus安装
ibus-setup
ibus-daemon -drxi
language support-> keyboard input method system-> ibus


add-apt-repository ppa:shawn-p-huang/ppa
apt-get update
apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase
alsamixer
7.install software
you can backup your package list and reinstall it with one commend, if reinstall is required
  # backup pkg list on ubuntu
    dpkg --get-selections >~/package.selections
    # restore pkg on another ubuntu
    apt-get update && dpkg --set-selections </home/halley/package.selections-overlay && apt-get dselect-upgrade
8.config vim
~/.vimrc


set number
set hlsearch
set tabstop=4
set ignorecase
set incsearch


9.vim /etc/profile 
mount /dev/sda3 /sda3
10.ssh rsa
cp /sda3/root/.ssh /root/.ssh -r
11.config git
git config --global core.editor vim
git config --global user.name Wei,changzhi
git config --global user.email [email protected]
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto


12. clone code
tsocks git clone git://anongit.freedesktop.org/gstreamer/gstreamer
tsocks git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-base
tsocks git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-good
tsocks git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-bad
tsocks git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-ugly
tsocks git clone git://anongit.freedesktop.org/vaapi/libva            
tsocks git clone git://anongit.freedesktop.org/vaapi/intel-driver
tsocks git clone git://gitorious.org/gst-plugins-vaapi/gst-plugins-vaapi.git 


13.compile
./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu  --enable-encoders


14.test
gst-launch-0.10 playbin2 video-sink="vaapisink sync=false"  uri=file:///home/weichangzhi/MR2_TANDBERG_E.264
15.config sourceinsight
cp /sda3/root/Downloads/sourceinsight3.5/  /root/Downloads -rf
wine /root/Downloads/sourceinsight3.5/Source\ Insight3.5/Si35Setup.exe
cp      /sda3/root/Source\ Insight/Settings/GLOBAL.CF3  /root/Source\ Insight/Settings/GLOBAL.CF3


16.link
ln -s /sda3/tips /tips
ln -s /sda3/root/Videos /root/Videos


17.cp player camera


18.set resolution
vim /etc/X11/xorg.conf
1 Section "Device"
  2     Identifier    "Configured Video Device"
  3 EndSection
  4 
  5 Section "Monitor"
  6     Identifier    "Configured Monitor"
  7     Modeline "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
  8 EndSection
  9 
 10 Section "Screen"    
 11     Identifier    "Default Screen"
 12     Monitor        "Configured Monitor"
 13     Device        "Configured Video Device"
 14     SubSection "Display"
 15     Modes "1366x768" "1024x768"
 16     EndSubSection
 17  EndSection
18.begin work










export LD_LIBBARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0














gstlaunchvaapiencode:


hw
preview:
gst-launch-0.10 v4l2src device=/dev/video1 ! vaapiupload ! vaapisink


record:
gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4


gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! mp4mux name=mux ! queue ! filesink location=test.mp4 sync=true alsasrc provide-clock=false  ! queue ! taginject tags=/"title=camerarecorder/" ! ffenc_aac ! mux. vsrc. ! queue ! fakesink name=screen-shot


gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! avimux ! queue ! filesink location=test.avi sync=true
gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! flvmux ! queue ! filesink location=test.flv sync=true vsrc. ! queue ! fakesink name=screen-shot


photo:
gst-launch-0.10 v4l2src device=/dev/video1 ! tee name=vsrc vsrc. ! queue ! xvimagesink vsrc. ! queue ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg




sw
preview:
gst-launch-0.10 v4l2src device=/dev/video1 ! xvimagesink 


record:
gst-launch-0.10 v4l2src device=/dev/video1 ! tee name=vsrc vsrc. ! queue ! timeoverlay ! xvimagesink  vsrc. ! queue  ! ffmpegcolorspace ! theoraenc ! oggmux ! queue ! filesink location=test.mp4


photo:
gst-launch-0.10 v4l2src device=/dev/video1 ! tee name=vsrc vsrc. ! queue ! xvimagesink vsrc. ! queue ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg


gst-launch-0.10 v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! tee name=vsrc vsrc. ! queue ! xvimagesink vsrc. ! queue ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg
gst-launch v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! xvimagesink
1920*1080,1280*720,800*600,320*240,640*480 ,176*144
gst-launch-0.10 playbin2 video-sink="vaapisink" uri=file:///




gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload  ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! video/x-surface ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4
gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload ! timeoverlay ! tee name=vsrc  ! queue ! video/x-surface ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4


gst-launch-0.10 v4l2src device=/dev/video1 ! queue ! vaapiupload  ! video/x-surface ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4




tizen:
gst-launch-0.10 v4l2src device=/dev/video0  ! queue  ! ffmpegcolorspace ! vaapisink


gst-launch-0.10 v4l2src device=/dev/video0 ! queue ! ffmpegcolorspace ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4


gst-launch-0.10 v4l2src device=/dev/video0 ! tee name=vsrc vsrc. ! queue ! xvimagesink vsrc. ! queue ! ffmpegcolorspace ! jpegenc ! filesink location=test.jpg


gst-launch-0.10 v4l2src device=/dev/video0   ! vaapisink
gst-launch-0.10 v4l2src device=/dev/video0  ! queue ! ffmpegcolorspace  ! video/x-surface ! timeoverlay ! tee name=vsrc  ! queue ! vaapisink vsrc. ! queue ! vaapiencodeh264 ! queue ! mp4mux ! queue ! filesink location=test.mp4




ivi:
preview:
gst-launch-1.0 v4l2src device=/dev/video0  num-buffers=500 ! autovideoconvert ! video/x-raw,format=NV12 ! vaapisink


photo:
gst-launch-1.0 v4l2src device=/dev/video0 ! tee name=vsrc vsrc. ! queue ! autovideoconvert ! video/x-raw,format=YV12 ! vaapisink vsrc. ! queue ! autovideoconvert  !  video/x-raw,format=YV12 ! jpegenc ! filesink location=test.jpg


record:
gst-launch-1.0 v4l2src num-buffers=50 ! image/jpeg,width=1280,height=720 ! vaapidecode ! vaapiencodeh264 ! qtmux faststart=true ! filesink location=test.mp4 


gst-launch-1.0 v4l2src num-buffers=50 ! image/jpeg,width=1280,height=720 ! vaapidecode ! tee name=vsrc vsrc. ! queue ! timeoverlay ! vaapisink vsrc. ! queue !  vaapiencodeh264 ! qtmux faststart=true ! filesink location=test.mp4 


gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=50 ! tee name=vsrc vsrc. ! queue ! autovideoconvert ! video/x-raw,format=NV12,width=1280,height=720 ! timeoverlay ! vaapisink vsrc. ! queue ! autovideoconvert  !  video/x-raw,format=NV12,width=1280,height=720 ! vaapiencodeh264 ! qtmux faststart=true ! filesink location=test1.mp4 














gst-luanch-play:
gst-launch-0.10 filesrc location=/root/Videos/wow.flv ! flvdemux ! h264parse ! ffdec_h264 ! xvimagesink


gst-launch-0.10 filesrc location=/root/Videos/wow.flv ! flvdemux ! h264parse ! ffdec_h264 ! vaapiupload ! vaapisink


gst-launch-0.10 playbin2 video-sink="xvimagesink" uri=file:///root/Videos/wow.flv


 gst-launch-0.10 filesrc location=/root/multimedia/camera/2013_04_19_10:41:18.ogg  ! oggdemux ! theoradec ! vaapisink


gst-launch-0.10 filesrc location=/root/Videos/H264_1280x720_frame5581.mpeg ! mpegdemux ! vaapidecode ! vaapidownload ! filesink location="1.yuv"


gst-launch-0.10 filesrc location=/root/Videos/H264_1280x720_frame5581.mpeg ! mpegdemux ! vaapidecode ! vaapisink


./eflplayer -o /root/videos/720p.mp4 -p5 -s 20 -a 25 -p5 -t 40


gst-launch-0.10 filesrc location=/root/Videos/wow.flv ! flvdemux ! h264parse ! vaapidecode ! clockoverlay  ! vaapisink
gst-launch-0.10 filesrc location=/root/Videos/wow.flv ! flvdemux ! h264parse ! vaapidecode ! timeoverlay  ! vaapisink
gst-launch-0.10 playbin2 uri=file:///root/Videos/1080p/AvatarMovieTrailer_1920x800.flv video-sink="fpsdisplaysink" 
gst-launch-0.10 filesrc location=/root/Videos/wow.flv ! flvdemux ! h264parse ! vaapidecode ! textoverlay text="Text" valign=top halign=left ! vaapisink




video chat


gst-launch-0.10 v4l2src queue-size=10 always-copy=false device="/dev/video0" ! image/jpeg,width=640,height=480,framerate=30/1 ! vaapidecode ! tee name=enc ! queue ! vaapiencodeh264 ! mpegtsmux ! rtpmp2tpay ! udpsink host="127.0.0.1" port=3000 enc. ! queue ! vaapisink sync=false


gst-launch-0.10 -v udpsrc port=3000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T-ES" ! rtpmp2tdepay ! mpegtsdemux ! vaapidecode ! vaapisink sync=false


gst-launch-1.0 v4l2src  device="/dev/video0" ! image/jpeg,width=640,height=480,framerate=30/1 ! vaapidecode ! tee name=enc ! queue ! vaapiencodeh264 ! mpegtsmux ! rtpmp2tpay ! udpsink host="127.0.0.1" port=3000 enc. ! queue ! vaapisink sync=false




gst-launch-0.10 v4l2src queue-size=10 always-copy=false device=/dev/video0 ! video/x-raw-yuv,width=640,height=480 ! autovideoconvert ! tee name=enc ! queue ! vaapiencodeh264 ! mpegtsmux ! rtpmp2tpay ! udpsink host="127.0.0.1" port=3000 enc. ! queue ! vaapisink sync=false


sw:
gst-launch-0.10 v4l2src queue-size=10 always-copy=false device="/dev/video0" ! image/jpeg,width=640,height=480,framerate=30/1 ! jpegdec ! tee name=enc ! queue ! ffenc_mpeg4 ! mpegtsmux ! rtpmp2tpay ! udpsink host="127.0.0.1" port=3000 enc. ! queue ! xvimagesink
gst-launch-0.10 -v udpsrc port=3000 caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)MP2T-ES" ! rtpmp2tdepay ! mpegtsdemux ! ffdec_mpeg4 ! xvimagesink




./segoplayer -o /root/Videos/1080p/AvatarMovieTrailer_1920x800.flv -p5 -s 20 -x 4 -p5 -x1 -p
./segoplayer -o /root/Videos/1080p/AvatarMovieTrailer_1920x800.flv -p5 -s 20 -a 25 -p5 -t 40


你可能感兴趣的:(工作命令行积累 shell)