GStreamer Miscellaneous

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GStreamer Miscellaneous

GStreamer Miscellaneous

Dumping the pipeline elements into a image file

# On target, run the pipeline

$ export GST_DEBUG_DUMP_DOT_DIR=<folder where dot files are created>

$ gst-launch playbin2 uri=file://${avi}

$ # Move the .dot files to a host machine (scp, etc)


# On Host

dot <dot file> -Tpng -o out.png

# dot command is part the the graphviz package

Querying which elements are being used on a gst-launch commandGST_DEBUG=GST_ELEMENT_FACTORY:3 gst-launch playbin2 uri=file://`pwd`/<media file>
Interrupting a gst-launch process running in the background

kill -INT $PID

# where $PID is the process ID

Using only SW codecs

# Backup and remove

$ find /usr/lib/gstreamer-0.10 -name "libmfw*" | grep -v sink | xargs tar cvf /libmfw_gst.tar

$ find /usr/lib/gstreamer-0.10 -name "libmfw*" | grep -v sink | xargs rm

# Run your pipeline. This time SW codecs are used

$ gst-launch playbin2 uri=file://`pwd`/media_file

# To 'install' FSL plugins again, just untar the file

$ cd / && tar xvf libmfw_gst.tar && cd -

# then run your pipeline. This time HW codecs are used

$ gst-launch playbin2 uri=file://`pwd`/media_file


Labels (2)
Comments

The instructions for 'Using only SW codecs' don't work for me.  I have a SabreSD board with i.MX6Q CPU and 4.0.0 version of the Linux SDK with patched ffmpeg plugins installed.  Here is my output:

root@freescale ~$ gst-launch playbin2 uri=file:///root/RecordedTs-coreel-720p5994.ts

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: No decoder available for type 'video/mpegts, systemstream=(boolean)true, packetsize=(int)188'.

Additional debug info:

gsturidecodebin.c(867): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0

ERROR: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20: Your GStreamer installation is missing a plug-in.

Additional debug info:

gstdecodebin2.c(3233): gst_decode_bin_expose (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:

no suitable plugins found

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Freeing pipeline ...

root@freescale ~$ gst-launch playbin2 uri=file:///root/sample_mpeg4.mp4

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: No decoder available for type 'audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)1290, rate=(int)32000, channels=(int)2'.

Additional debug info:

gsturidecodebin.c(867): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0

ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The autovideosink element is not working.

Additional debug info:

gstplaysink.c(1353): gen_video_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Freeing pipeline ...

Try these steps:

rm .gstreamer-0.10/registry.arm.bin # this is done to force plugins reloading

gst-inspect | grep ff # To check if ffmpeg plugins are there

gst-launch playbin2 ....

Actually, you may need the Freescale video sinks, so do not move/remove these. Let me know if it works.

Leo

Ok, I removed all libmfw_* EXCEPT libmfw_gst_isink.so and libmfw_gst_v4lsink.so and that works. Thanks.

I have updated the recipe! Thanks!

Leo

%3CLINGO-SUB%20id%3D%22lingo-sub-1117877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CTABLE%20border%3D%221%22%20class%3D%22jiveBorder%22%20style%3D%22border%3A%201px%20solid%20%23000000%3B%20width%3A%20100%25%3B%22%3E%3CTBODY%3E%3CTR%3E%3CTH%20style%3D%22text-align%3A%20center%3B%20background-color%3A%20%236690bc%3B%20color%3A%20%23ffffff%3B%20padding%3A%202px%3B%22%20valign%3D%22middle%22%3E%3C%2FTH%3E%3CTH%20style%3D%22text-align%3A%20center%3B%20background-color%3A%20%236690bc%3B%20color%3A%20%23ffffff%3B%20padding%3A%202px%3B%22%20valign%3D%22middle%22%3E%3C%2FTH%3E%3C%2FTR%3E%3CTR%3E%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%22%3E%3CSTRONG%3EDumping%20the%20pipeline%20elements%20into%20a%20image%20file%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20On%20target%2C%20run%20the%20pipeline%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20export%20GST_DEBUG_DUMP_DOT_DIR%3D%3CFOLDER%20where%3D%22%22%20dot%3D%22%22%20files%3D%22%22%20are%3D%22%22%20created%3D%22%22%3E%3C%2FFOLDER%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%24%7Bavi%7D%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20%23%20Move%20the%20.dot%20files%20to%20a%20host%20machine%20(scp%2C%20etc)%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%3CBR%20style%3D%22color%3A%20%23000000%3B%22%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20On%20Host%20%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3Edot%20%3CDOT%20file%3D%22%22%3E%20-Tpng%20-o%20out.png%3C%2FDOT%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20dot%20command%20is%20part%20the%20the%20graphviz%20package%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3C%2FTD%3E%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%22%3E%3CSTRONG%3EQuerying%20which%20elements%20are%20being%20used%20on%20a%20gst-launch%20command%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3EGST_DEBUG%3DGST_ELEMENT_FACTORY%3A3%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%60pwd%60%2F%3CMEDIA%20file%3D%22%22%3E%3C%2FMEDIA%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%22%3E%3CSTRONG%3EInterrupting%20a%20gst-launch%20process%20running%20in%20the%20background%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3Ekill%20-INT%20%24PID%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20where%20%24PID%20is%20the%20process%20ID%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3CSPAN%20style%3D%22color%3A%20%23000080%3B%22%3E%3CSTRONG%3EUsing%20only%20SW%20codecs%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FTD%3E%3CTD%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20Backup%20and%20remove%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20find%20%2Fusr%2Flib%2Fgstreamer-0.10%20-name%20%22libmfw*%22%20%7C%20grep%20-v%20sink%20%7C%20xargs%20tar%20cvf%20%2Flibmfw_gst.tar%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20find%20%2Fusr%2Flib%2Fgstreamer-0.10%20-name%20%22libmfw*%22%20%7C%20grep%20-v%20sink%20%7C%20xargs%20rm%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20Run%20your%20pipeline.%20This%20time%20SW%20codecs%20are%20used%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%60pwd%60%2Fmedia_file%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20To%20'install'%20FSL%20plugins%20again%2C%20just%20untar%20the%20file%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20cd%20%2F%20%26amp%3B%26amp%3B%20tar%20xvf%20libmfw_gst.tar%20%26amp%3B%26amp%3B%20cd%20-%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%23%20then%20run%20your%20pipeline.%20This%20time%20HW%20codecs%20are%20used%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%24%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%60pwd%60%2Fmedia_file%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E%3C%2FTD%3E%3CTD%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1117877%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX6_All%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMultimedia%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20GStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117882%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20updated%20the%20recipe!%20Thanks!%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ELeo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117881%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20GStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117881%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOk%2C%20I%20removed%20all%20libmfw_*%20EXCEPT%20libmfw_gst_isink.so%20and%20libmfw_gst_v4lsink.so%20and%20that%20works.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20GStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117880%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EActually%2C%20you%20may%20need%20the%20Freescale%20video%20sinks%2C%20so%20do%20not%20move%2Fremove%20these.%20Let%20me%20know%20if%20it%20works.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ELeo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20GStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117879%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETry%20these%20steps%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CBLOCKQUOTE%3E%0A%3CP%3Erm%20.gstreamer-0.10%2Fregistry.arm.bin%20%23%20this%20is%20done%20to%20force%20plugins%20reloading%3C%2FP%3E%0A%3CP%3Egst-inspect%20%7C%20grep%20ff%20%23%20To%20check%20if%20ffmpeg%20plugins%20are%20there%3C%2FP%3E%0A%3CP%3Egst-launch%20playbin2%20....%20%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1117878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20GStreamer%20Miscellaneous%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117878%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20instructions%20for%20'Using%20only%20SW%20codecs'%20don't%20work%20for%20me.%26nbsp%3B%20I%20have%20a%20SabreSD%20board%20with%20i.MX6Q%20CPU%20and%204.0.0%20version%20of%20the%20Linux%20SDK%20with%20patched%20ffmpeg%20plugins%20installed.%26nbsp%3B%20Here%20is%20my%20output%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eroot%40freescale%20~%24%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%2Froot%2FRecordedTs-coreel-720p5994.ts%3C%2FP%3E%3CP%3ESetting%20pipeline%20to%20PAUSED%20...%3C%2FP%3E%3CP%3EPipeline%20is%20PREROLLING%20...%3C%2FP%3E%3CP%3EWARNING%3A%20from%20element%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%3A%20No%20decoder%20available%20for%20type%20'video%2Fmpegts%2C%20systemstream%3D(boolean)true%2C%20packetsize%3D(int)188'.%3C%2FP%3E%3CP%3EAdditional%20debug%20info%3A%3C%2FP%3E%3CP%3Egsturidecodebin.c(867)%3A%20unknown_type_cb%20()%3A%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%3C%2FP%3E%3CP%3EERROR%3A%20from%20element%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%2FGstDecodeBin2%3Adecodebin20%3A%20Your%20GStreamer%20installation%20is%20missing%20a%20plug-in.%3C%2FP%3E%3CP%3EAdditional%20debug%20info%3A%3C%2FP%3E%3CP%3Egstdecodebin2.c(3233)%3A%20gst_decode_bin_expose%20()%3A%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%2FGstDecodeBin2%3Adecodebin20%3A%3C%2FP%3E%3CP%3Eno%20suitable%20plugins%20found%3C%2FP%3E%3CP%3EERROR%3A%20pipeline%20doesn't%20want%20to%20preroll.%3C%2FP%3E%3CP%3ESetting%20pipeline%20to%20NULL%20...%3C%2FP%3E%3CP%3EFreeing%20pipeline%20...%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eroot%40freescale%20~%24%20gst-launch%20playbin2%20uri%3Dfile%3A%2F%2F%2Froot%2Fsample_mpeg4.mp4%3C%2FP%3E%3CP%3ESetting%20pipeline%20to%20PAUSED%20...%3C%2FP%3E%3CP%3EPipeline%20is%20PREROLLING%20...%3C%2FP%3E%3CP%3EWARNING%3A%20from%20element%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%3A%20No%20decoder%20available%20for%20type%20'audio%2Fmpeg%2C%20mpegversion%3D(int)4%2C%20framed%3D(boolean)true%2C%20stream-format%3D(string)raw%2C%20level%3D(string)2%2C%20base-profile%3D(string)lc%2C%20profile%3D(string)lc%2C%20codec_data%3D(buffer)1290%2C%20rate%3D(int)32000%2C%20channels%3D(int)2'.%3C%2FP%3E%3CP%3EAdditional%20debug%20info%3A%3C%2FP%3E%3CP%3Egsturidecodebin.c(867)%3A%20unknown_type_cb%20()%3A%20%2FGstPlayBin2%3Aplaybin20%2FGstURIDecodeBin%3Auridecodebin0%3C%2FP%3E%3CP%3EERROR%3A%20from%20element%20%2FGstPlayBin2%3Aplaybin20%2FGstPlaySink%3Aplaysink0%3A%20The%20autovideosink%20element%20is%20not%20working.%3C%2FP%3E%3CP%3EAdditional%20debug%20info%3A%3C%2FP%3E%3CP%3Egstplaysink.c(1353)%3A%20gen_video_chain%20()%3A%20%2FGstPlayBin2%3Aplaybin20%2FGstPlaySink%3Aplaysink0%3C%2FP%3E%3CP%3EERROR%3A%20pipeline%20doesn't%20want%20to%20preroll.%3C%2FP%3E%3CP%3ESetting%20pipeline%20to%20NULL%20...%3C%2FP%3E%3CP%3EFreeing%20pipeline%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-28-2012 02:21 PM
Updated by: