Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! capsfilter name=mycapsfilter caps=video/x-raw,width=1280,height=720 ! valve name=valve drop=0 ! queue2 ! x264enc tune=zerolatency ! queue ! mp4mux name=m ! filesink location=/tmp/file.mp4 alsasrc device=hw:2,0 ! audioconvert ! audioresample ! lamemp3enc target=1 bitrate=64 cbr=true ! queue ! m.
- Setting pipeline to PAUSED ...
- Pipeline is live and does not need PREROLL ...
- Setting pipeline to PLAYING ...
- New clock: GstAudioSrcClock
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-buffer-time = 200000
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-latency-time = 10000
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstLameMP3Enc:lamemp3enc0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- Redistribute latency...
- /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstCapsFilter:mycapsfilter.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstValve:valve.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstQueue2:queue2-0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstQueue2:queue2-0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstValve:valve.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstCapsFilter:mycapsfilter.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstLameMP3Enc:lamemp3enc0.GstPad:src: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- RING BUFFER:
- $ gst-launch-1.0 -v -e v4l2src device=/dev/video0 ! capsfilter name=mycapsfilter caps=video/x-raw,width=1280,height=720 ! valve name=valve drop=0 ! queue2 ring-buffer-max-size=8192 ! x264enc tune=zerolatency ! queue ! mp4mux name=m ! filesink location=/tmp/file.mp4 alsasrc device=hw:2,0 ! audioconvert ! audioresample ! lamemp3enc target=1 bitrate=64 cbr=true ! queue ! m.
- Setting pipeline to PAUSED ...
- Pipeline is live and does not need PREROLL ...
- Setting pipeline to PLAYING ...
- New clock: GstAudioSrcClock
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-buffer-time = 200000
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: actual-latency-time = 10000
- /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:src: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstLameMP3Enc:lamemp3enc0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioResample:audioresample0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = "audio/x-raw\,\ layout\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ format\=\(string\)S16LE\,\ channels\=\(int\)1"
- Redistribute latency...
- /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstCapsFilter:mycapsfilter.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstValve:valve.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstQueue2:queue2-0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstValve:valve.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstCapsFilter:mycapsfilter.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1"
- /GstPipeline:pipeline0/GstLameMP3Enc:lamemp3enc0.GstPad:src: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- /GstPipeline:pipeline0/GstMP4Mux:m.GstPad:audio_0: caps = "audio/mpeg\,\ mpegversion\=\(int\)1\,\ mpegaudioversion\=\(int\)1\,\ layer\=\(int\)3\,\ channels\=\(int\)1\,\ rate\=\(int\)44100"
- ERROR: from element /GstPipeline:pipeline0/GstX264Enc:x264enc0: GStreamer error: negotiation problem.
- Additional debug info:
- gstvideoencoder.c(1463): gst_video_encoder_chain (): /GstPipeline:pipeline0/GstX264Enc:x264enc0:
- encoder not initialized
- EOS on shutdown enabled -- waiting for EOS after Error
- Waiting for EOS...
Add Comment
Please, Sign In to add comment