Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL occured while opening videos in scripts/extract_optical_flow.sh #10

Closed
GBJim opened this issue Sep 7, 2016 · 14 comments
Closed

Comments

@GBJim
Copy link

GBJim commented Sep 7, 2016

Hi guys :)

I encountered a similar problem to #6, the following are the error message.

2016-09-07 02:44:23,873 FATAL [default] Check failed: [video_stream.isOpened()] Cannot open video stream "/root/data/UCF-101/SalsaSpin/v_SalsaSpin_g22_c04.avi" for optical flow extraction.
2016-09-07 02:44:23,873 WARN [default] Aborting application. Reason: Fatal log at [/root/temporal-segment-networks/lib/dense_flow/src/dense_flow_gpu.cpp:15]

All the videos prompted the same error message.

The video path is correct, but it just can't open the video.
The openCV came from the TSN installation package, it should be okay.
Any suggestion to solve this problem?

@yjxiong
Copy link
Owner

yjxiong commented Sep 7, 2016

If the video path is surely correct, one remaining issue might be the OpenCV is compiled without VideoIO support. Please cd into the build folder of OpenCV 3rd-party/opencv-2.4.12/build/ and run the command cmake ..

In the output lines, please try to find the section about VideoIO. On my workstation, it shows something like

--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.2.1)
--     FFMPEG:                      YES
--       codec:                     YES (ver 54.35.0)
--       format:                    YES (ver 54.20.4)
--       util:                      YES (ver 52.3.0)
--       swscale:                   YES (ver 2.1.1)
--       resample:                  NO
--       gentoo-style:              YES

@GBJim
Copy link
Author

GBJim commented Sep 7, 2016

Thank you for the quick response @yjxiong!

Just like you said, my openCV didn't support the Video I/O.
The problem is solved after I ran apt-get install libopencv-dev and thecmake .. command to re-install openCV

@124399839
Copy link

@yjxiong ,The openCV came from the TSN installation package, it should be okay.
excute scripts/extract_optical_flow.sh ,the log as follows:

2018-07-24 18:44:43,119 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal
2018-07-24 18:44:43,119 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583]
2018-07-24 18:44:43,142 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal
2018-07-24 18:44:43,142 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583]
305 v_WritingOnBoard_g20_c05 done

Any suggestion to solve this problem?

@Ivy-blooming
Copy link

@yjxiong ,The openCV came from the TSN installation package, it should be okay.
excute scripts/extract_optical_flow.sh ,the log as follows:

2018-07-24 18:44:43,119 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal
2018-07-24 18:44:43,119 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583]
2018-07-24 18:44:43,142 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal
2018-07-24 18:44:43,142 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583]
305 v_WritingOnBoard_g20_c05 done

Any suggestion to solve this problem?

I meet the same problem as you,could you solve this problem and share with me how to solve it?

@liuglen
Copy link

liuglen commented Feb 27, 2019

@Ivy-blooming Have you solved the problem?

@niveditarahurkar
Copy link

niveditarahurkar commented May 15, 2019

@yjxiong @GBJim I am seeing the same issue. So I did install apt-get install libopencv-dev and did cmake .. But still see the same.
make -j32 fixed it

@niveditarahurkar
Copy link

niveditarahurkar commented May 15, 2019

I am trying to run -
scripts/extract_optical_flow.sh /home/nirahurk/temporal-segment-networks/src_folder/ /home/nirahurk/temporal-segment-networks/out_folder/ 1
I have taken just 5 sample videos from UCF101 in my src_folder:
v_SkateBoarding_g25_c01 v_SkateBoarding_g25_c02 v_SkateBoarding_g25_c03 v_SkateBoarding_g25_c04 v_SkateBoarding_g25_c05
I get the output:
4 v_SkateBoarding_g25_c01 done
3 v_SkateBoarding_g25_c03 done and so on..
But my out_folder --> out_folder/v_SkateBoarding_g25_c01# is empty.

My parameters look right:
('flow_type: ', 'tvl1') ('reading videos from folder: ', '/home/nirahurk/temporal-segment-networks/src_folder') ('selected extension of videos:', 'avi') ('total number of videos found: ', 5)

@nanhui69
Copy link

nanhui69 commented Sep 9, 2019

@124399839 @Ivy-blooming Have you solved that problems ? if you have done it ,how did you do it?

@Ivy-blooming
Copy link

Ivy-blooming commented Nov 14, 2019 via email

@Light--
Copy link

Light-- commented Dec 13, 2019

i still got this problem, but my video io seems ok?

--   Video I/O:
--     DC1394:                      YES (ver 2.2.4)
--     FFMPEG:                      YES
--       avcodec:                   YES (ver 58.54.100)
--       avformat:                  YES (ver 58.29.100)
--       avutil:                    YES (ver 56.31.100)
--       swscale:                   YES (ver 5.5.100)
--       avresample:                YES (ver 2.1.0)
--     GStreamer:                   
--       base:                      YES (ver 1.8.3)
--       video:                     YES (ver 1.8.3)
--       app:                       YES (ver 1.8.3)
--       riff:                      YES (ver 1.8.3)
--       pbutils:                   YES (ver 1.8.3)
--     libv4l/libv4l2:              NO
--     v4l/v4l2:                    NO
--     gPhoto2:                     YES

@blowing-wind
Copy link

我遇到了同样的问题,最后发现是磁盘空间满了。

@TitaniumOne
Copy link

@Light-- @niveditarahurkar @Ivy-blooming Hello, I met the same problem, have you solved it? Thank you!

@TitaniumOne
Copy link

I installed Dockers to solve this problem

------------------ 原始邮件 ------------------ 发件人: "nanhui69"<notifications@github.com>; 发送时间: 2019年9月9日(星期一) 下午2:41 收件人: "yjxiong/temporal-segment-networks"<temporal-segment-networks@noreply.github.com>; 抄送: "✨🍓"<1363837225@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [yjxiong/temporal-segment-networks] FATAL occured while opening videos in scripts/extract_optical_flow.sh (#10) @124399839 @Ivy-blooming Have you solved that problems ? if you have done it ,how did you do it? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

I use the docker too, but it does not work.

@smj0411
Copy link

smj0411 commented May 31, 2022

@yjxiong ,The openCV came from the TSN installation package, it should be okay. excute scripts/extract_optical_flow.sh ,the log as follows:

2018-07-24 18:44:43,119 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal 2018-07-24 18:44:43,119 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583] 2018-07-24 18:44:43,142 FATAL [default] CRASH HANDLED; Application has crashed due to [SIGSEGV] signal 2018-07-24 18:44:43,142 WARN [default] Aborting application. Reason: Fatal log at [/home/project/temporal-segment-networks/lib/dense_flow/include/easylogging++/src/easylogging++.h:5583] 305 v_WritingOnBoard_g20_c05 done

Any suggestion to solve this problem?

I meet the same problem as you,could you solve this problem and share with me how to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests