artoolkitx icon indicating copy to clipboard operation
artoolkitx copied to clipboard

ARVideo: failed to put GStreamer into PAUSED state!

Open DouglasCBO opened this issue 7 years ago • 4 comments

Hi,

I'm trying to run the square tracking example in Ubuntu 16.04 with a recorded AVI video file using the Gstreamer module, but that error in the title occurs.

I set vconf in the source code to the following: -module=GStreamer filesrc location=sample.avi ! decodebin ! ffmpegcolorspace ! capsfilter caps=video/x-raw,format=rgb,bpp=24 ! identity name=artoolkit ! fakesink

I have some experience with the ARToolKit, but on gstreamer library I'm a newbie. I make this string based on the documentation presented in the Wiki and this page: http://artoolkit.sourceforge.net/apidoc/video/

I tried many other configuration strings, but the "less-worse" case was that.

I thanks for any help.

DouglasCBO avatar Jul 20 '18 23:07 DouglasCBO

You should use this documentation: https://github.com/artoolkitx/artoolkitx/wiki/artoolkitX-video-module-configuration-reference

let me know how it goes

ThorstenBux avatar Jul 21 '18 02:07 ThorstenBux

Hi @ThorstenBux,

Thanks for the answer.

I already followed this documentation too, however, for the gstreamer¹ module this doc only says to set -module=GStreamer and to spec the configuration string, following the gst_launch syntax. Futhermore, the see more link is pointing to the Wiki, I thought it would help to write the string. So, I've tried other sources, including the gstreamer's documentation, but unsuccessful.

¹ https://github.com/artoolkitx/artoolkitx/wiki/artoolkitX-video-module-configuration-reference#ar_video_module_gstreamer

DouglasCBO avatar Jul 21 '18 04:07 DouglasCBO

The Gstreamer module is in need of maintenance and I’m not sure if it functions correctly at all. I basically just pulled in the source from ARToolKit5 without any updates.

If you have a choice, I would recommend using the v4l2 module instead. Otherwise, I guess we could ask the Gstreamer community for some input.

philip-lamb avatar Jul 21 '18 06:07 philip-lamb

Ok @philip-lamb

Thanks for the answer.

I understand, but I really need run ARToolkitx with a video file and, as far as I know, for Linux based systems, only gstreamer can do that.

I'll keep trying, maybe on Windows. Anyway, please let me know for any progress made on this issue.

DouglasCBO avatar Jul 21 '18 15:07 DouglasCBO