[root@armadillo840-0 (ttySC2) /home/ftp/pub]# cat Armadiilo_VideoOnsei.sh #!/bin/bash #if [[ -z $1 ]]; then # echo "wrong parameter." # echo "$0 [destination ip port]" # exit -1 #fi AV=/dev/video0 ALSA=hw:0,0 VIDEO_UDP_PORT=1002 width=320 height=240 gst-launch-1.0 -e \ v4l2src device=/dev/video0 \ ! image/jpeg,width=1280,height=720,framerate=60/1 \ ! jpegdec \ ! videoconvert \ ! video/x-raw,format=NV12,width=$width,height=$height,framerate=30/1 \ ! acmh264enc \ ! queue \ ! muxer.video_0 \ alsasrc device=$ALSA \ ! audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2 \ ! acmaacenc \ ! queue \ ! muxer.audio_0 \ qtmux name="muxer" ! filesink location=/sd/mnt/output.mp4 [root@armadillo840-0 (ttySC2) /home/ftp/pub]# sh -x Armadiilo_VideoOnsei.sh + AV=/dev/video0 + ALSA=hw:0,0 + VIDEO_UDP_PORT=1002 + width=320 + height=240 + gst-launch-1.0 -e v4l2src device=/dev/video0 ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! vide oconvert ! video/x-raw,format=NV12,width=320,height=240,framerate=30/1 ! acmh264enc ! queue ! muxer.video_0 alsas rc device=hw:0,0 ! audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2 ! acmaacenc ! queue ! muxer. audio_0 qtmux name=muxer ! filesink location=/sd/mnt/output.mp4 Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2812): gst_base_src_loop (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: streaming task paused, reason not-negotiated (-4) EOS on shutdown enabled -- waiting for EOS after Error Waiting for EOS... New clock: GstAudioSrcClock ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Internal data flow error. Additional debug info: gstbasesrc.c(2812): gst_base_src_loop (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: streaming task paused, reason not-negotiated (-4) ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error. Additional debug info: gstbasesrc.c(2812): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming task paused, reason not-negotiated (-4) Caught SIGSEGV accessing address 0x60 Spinning. Please run 'gdb gst-launch- 1.0 3711' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.