Closed chanwitkepha closed 7 months ago
Hi @chanwitkepha ,
Could you upgrade to version 1? (https://www.pipeless.ai/docs/v1/getting-started), it is more stable than version 0. You can find the installation details at: https://www.pipeless.ai/docs/docs/v1/getting-started/installation
Hi @miguelaeh
Now I upgrade to version 1.2 and test again according to https://www.pipeless.ai/docs/v1/getting-started
pipeless init my_first_project --template scaffold
cd my_first_project
pipeless start --stages-dir .
Then I SSH to another terminal and run command
pipeless add stream --input-uri "http://192.168.10.31:800/Gate1-Camera4-2023-11-24_0855_0930_REC.mp4" --output-uri "file:///home/devteam/output/output.mp4" --frame-path "my-stage"
It seems work well.
devteam@test-11236:~/my_first_project$ pipeless start --stages-dir .
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] ⚙️ Loading stages from .
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] ⏳ Loading stage 'my_stage' from ./my-stage
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/pre-process.py
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-pre_process
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/process.py
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-process
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/post-process.py
[2023-12-02T23:47:31Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-post_process
[2023-12-02T23:47:31Z INFO pipeless_ai::config::adapters::rest] REST adapter running
[2023-12-02T23:47:31Z INFO warp::server] Server::run; addr=127.0.0.1:3030
[2023-12-02T23:47:31Z INFO warp::server] listening on http://127.0.0.1:3030
[2023-12-02T23:47:53Z INFO pipeless_ai::dispatcher] New stream entry detected, creating pipeline
[2023-12-02T23:47:53Z ERROR pipeless_ai::gst::utils] Failed to create component nvvidconv of type nvvidconv
[2023-12-02T23:47:56Z INFO pipeless_ai::input::pipeline] Using SystemMemory
[2023-12-02T23:47:56Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id 99c3fe0b-e00e-4ef1-aab6-88172e4be02c. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190;
[2023-12-02T23:47:56Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id 99c3fe0b-e00e-4ef1-aab6-88172e4be02c. Tags: taglist, datetime=(datetime)2023-11-24T02:33:41Z, encoder=(string)"vlc\ 3.0.20\ stream\ output", container-format=(string)"ISO\ MP4/M4A";
[2023-12-02T23:47:56Z INFO pipeless_ai::pipeline] Tags updated to: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190;
[2023-12-02T23:47:56Z INFO pipeless_ai::pipeline] Tags updated to: taglist, datetime=(datetime)2023-11-24T02:33:41Z, encoder=(string)"vlc\ 3.0.20\ stream\ output", container-format=(string)"ISO\ MP4/M4A";
[2023-12-02T23:47:56Z INFO pipeless_ai::input::pipeline] Dynamic source pad video_0 caps: video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:3:5:1, framerate=(fraction)25/1
[2023-12-02T23:47:56Z INFO pipeless_ai::pipeline] New input caps. Creating output pipeline for caps: video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:3:5:1, framerate=(fraction)25/1
.............................................................
devteam@test-11236:~/my_first_project$ ls -l /home/devteam/output/
total 348
-rw-rw-r-- 1 devteam devteam 353810 Dec 2 23:48 output.mp4
devteam@test-11236:~/my_first_project$
However if change --output-uri to screen (same as getting start) it have error.
pipeless add stream --input-uri "http://192.168.10.31:800/Gate1-Camera4-2023-11-24_0855_0930_REC.mp4" --output-uri "screen" --frame-path "my-stage"
devteam@test-11236:~/my_first_project$ pipeless start --stages-dir .
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] ⚙️ Loading stages from .
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] ⏳ Loading stage 'my_stage' from ./my-stage
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/pre-process.py
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-pre_process
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/process.py
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-process
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Loading hook from ./my-stage/post-process.py
[2023-12-02T23:58:23Z INFO pipeless_ai::stages::parser] Creating stateless hook for my_stage-post_process
[2023-12-02T23:58:23Z INFO pipeless_ai::config::adapters::rest] REST adapter running
[2023-12-02T23:58:23Z INFO warp::server] Server::run; addr=127.0.0.1:3030
[2023-12-02T23:58:23Z INFO warp::server] listening on http://127.0.0.1:3030
[2023-12-02T23:59:26Z INFO pipeless_ai::dispatcher] New stream entry detected, creating pipeline
[2023-12-02T23:59:26Z ERROR pipeless_ai::gst::utils] Failed to create component nvvidconv of type nvvidconv
[2023-12-02T23:59:29Z INFO pipeless_ai::input::pipeline] Using SystemMemory
[2023-12-02T23:59:30Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190;
[2023-12-02T23:59:30Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, datetime=(datetime)2023-11-24T02:33:41Z, encoder=(string)"vlc\ 3.0.20\ stream\ output", container-format=(string)"ISO\ MP4/M4A";
[2023-12-02T23:59:30Z INFO pipeless_ai::pipeline] Tags updated to: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190;
[2023-12-02T23:59:30Z INFO pipeless_ai::pipeline] Tags updated to: taglist, datetime=(datetime)2023-11-24T02:33:41Z, encoder=(string)"vlc\ 3.0.20\ stream\ output", container-format=(string)"ISO\ MP4/M4A";
[2023-12-02T23:59:30Z INFO pipeless_ai::input::pipeline] Dynamic source pad video_0 caps: video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:3:5:1, framerate=(fraction)25/1
[2023-12-02T23:59:30Z INFO pipeless_ai::pipeline] New input caps. Creating output pipeline for caps: video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:3:5:1, framerate=(fraction)25/1
[2023-12-02T23:59:30Z WARN pipeless_ai::output::pipeline] Taginject element not found in the pipeline
[2023-12-02T23:59:30Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)36450989, maximum-bitrate=(uint)36450989;
[2023-12-02T23:59:30Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)36450989;
[2023-12-02T23:59:31Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)41582578;
[2023-12-02T23:59:32Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)62044676;
[2023-12-02T23:59:32Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)63859182;
[2023-12-02T23:59:34Z INFO pipeless_ai::pipeline] Tags updated to: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)36450989, maximum-bitrate=(uint)36450989;
[2023-12-02T23:59:34Z WARN pipeless_ai::output::pipeline] Taginject element not found, skipping tags update.
[2023-12-02T23:59:34Z WARN pipeless_ai::output::pipeline] Taginject element not found in the pipeline
[2023-12-02T23:59:34Z INFO pipeless_ai::pipeline] Tags updated to: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)36450989;
[2023-12-02T23:59:34Z WARN pipeless_ai::output::pipeline] Taginject element not found, skipping tags update.
[2023-12-02T23:59:34Z WARN pipeless_ai::output::pipeline] Taginject element not found in the pipeline
[2023-12-02T23:59:35Z INFO pipeless_ai::pipeline] Tags updated to: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)15214705, maximum-bitrate=(uint)41582578;
[2023-12-02T23:59:35Z WARN pipeless_ai::output::pipeline] Taginject element not found, skipping tags update.
[2023-12-02T23:59:35Z WARN pipeless_ai::output::pipeline] Taginject element not found in the pipeline
[2023-12-02T23:59:35Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)10318561, maximum-bitrate=(uint)63859182;
[2023-12-02T23:59:35Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)10318561, maximum-bitrate=(uint)162271172;
[2023-12-02T23:59:35Z INFO pipeless_ai::input::pipeline] New tags for input gst pipeline with id abca9c74-644d-4594-8850-cba64840be53. Tags: taglist, video-codec=(string)"H.264\ \(High\ Profile\)", language-code=(string)en, bitrate=(uint)23889190, minimum-bitrate=(uint)6316243, maximum-bitrate=(uint)162271172;
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
pipeless: ../../src/xcb_io.c:175: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted (core dumped)
Hi @chanwitkepha ,
Thanks or the detailed information. I am not able to reproduce it on my environment, which is also Ubuntu 22.04. However, it seems to be a problem related to X11 multithreading, since using files it works, I would say it is related to the Gstreamer autovideosink
plugin.
Could you try to stop Pipeless, export the following variable, and start it again?
export GST_GL_XINITTHREADS=1
In case that doesn't work, could share the output of the following commands?:
sudo X -version
xvinfo | grep version
Hi @chanwitkepha ,
Thanks or the detailed information. I am not able to reproduce it on my environment, which is also Ubuntu 22.04. However, it seems to be a problem related to X11 multithreading, since using files it works, I would say it is related to the Gstreamer
autovideosink
plugin.Could you try to stop Pipeless, export the following variable, and start it again?
export GST_GL_XINITTHREADS=1
In case that doesn't work, could share the output of the following commands?:
sudo X -version xvinfo | grep version
Thank you for your help. I will try it again.
Hi @chanwitkepha ,
I see you closed the issue, did the above work? Please let me know so we can improve documentation or add it by default.
According to Document in https://www.pipeless.ai/docs/docs/v0/getting-started
When I use command
pipeless run
it showsERROR - OUTPUT - Unable to set the pipeline to the playing state.
Please suggest. How to solve this error. Thank you.
Detail is i the Text below
Operating System: Ubuntu 22.04.3 LTS
pip install pipeless-ai pipeless-ai-cli
Install Dependencies (GStreamer)
My config.yaml
Output when
pipeless run
When I change log_level to
DEBUG
My Nginx Web Server Access Log
192.168.11.236 - - [03/Dec/2023:00:16:37 +0700] "GET /Gate1-Camera4-2023-11-24_0855_0930_REC.mp4 HTTP/1.1" 200 21669061 "-" "GStreamer souphttpsrc 1.20.3 libsoup/2.74.2