
Recherche avancée
Autres articles (15)
-
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (4401)
-
Latency and frame break using Hikvison using OpenCV
24 septembre 2024, par Arjun ManiWhen I try reading frames from Hikvision camera, I face latency and frame break, from OpenCV, but it works fine with
ffmpeg
, and if I use any other camera, like axis, it works, fine but in Hikvision, I have some issue, so if someone has solved this issue, can please share me to solve

I need to resolve this issue.


import cv2


import cv2

# RTSP URL
rtsp_url = "rtsp://admin:okulr123@192.168.0.64:554/Streamings/channels/101"

# Create a VideoCapture object
cap = cv2.VideoCapture(rtsp_url)

# Check if the connection is opened
if not cap.isOpened():
 print("Error: Couldn't open the video stream")
 exit()

# Read frames in a loop
while True:
 ret, frame = cap.read()

 # Check if frame was successfully captured
 if not ret:
 print("Error: Couldn't read frame")
 break

 # Display the frame
 cv2.imshow('RTSP Stream', frame)

 # Break the loop if 'q' key is pressed
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break

# Release the VideoCapture object and close windows
cap.release()
cv2.destroyAllWindows()




-
include/c++/4.6.3/bits/stl_algobase.h:329 : undefined reference to
27 novembre 2013, par user3041105My program is fails to compile with this error when I use my own account but when use the root account it compiles successfully. I have installed boost, ffmpeg and opencv.
The errors are as follows :
=== linking: release/DenseTrack ===
g++ -L/opt/lib -L/home/huangng/software/boost/lib -L/home/huangng/software/opencv/lib -L/home/huangng/software/ffmpeg/lib -pipe -Wall -O3 -ggdb -o release/DenseTrack .build_release/DenseTrack.o -lboost_program_options -lboost_regex -lboost_system -lboost_filesystem -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lavformat -lavdevice -lavutil -lavcodec -lswscale
.build_release/DenseTrack.o: In function `main':
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:103: undefined reference to `IplImagePyramid::rebuild(IplImageWrapper)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:307: undefined reference to `IplImagePyramid::rebuild(IplImageWrapper)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:56: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:58: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:60: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:62: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
/home/huangng/lab/dense_trajectory_release_v1.1/DenseTrack.cpp:68: undefined reference to `IplImagePyramid::rebuild(IplImageWrapper)'
.build_release/DenseTrack.o: In function `IplImagePyramid':
/home/huangng/lab/dense_trajectory_release_v1.1/./opencv/IplImagePyramid.hpp:34: undefined reference to `IplImagePyramid::init(CvSize, int, int, double)'
.build_release/DenseTrack.o: In function `__copy_m<const>':
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:343: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
.build_release/DenseTrack.o: In function `__copy_m':
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:343: undefined reference to `IplImageWrapper::operator=(IplImageWrapper const&)'
collect2: ld returned 1 exit status
make: *** [release/DenseTrack] Error 1
</const> -
Including the switch "-hls_flags temp_files" while encoding to HLS does nothing
24 juillet 2019, par cloudhornI’m trying to disable access to video segment files while they are still being converted. This is to stop my web-page from loading the unfinished segments.
One solution that appeals to me is using the ’-hls_flags temp_files’ option that (according to the docs) initiates segments with the name ’filename.tmp’, and renames them only once the segment is complete. This is opposed to the standard ffmpeg behaviour where unfinished segments have the same name as the completed ones.
Problem is I can’t get ’-hls_flags temp_files’ to do anything. Converting a video with :
ffmpeg -i aerial.mov -g 60 -keyint_min 60 -sc_threshold 0 -f HLF -hls_time 2 -hls_list_size 0 -hls_flags temp_file aerial.m3u8
produces the exact same output as running the same command line without ’-hls_flags temp_file’. Does anyone have experience using ’temp_file’ ?
EDIT : Issue was solved by getting a static git build of ffmpeg, instead of the latest (4.1.1) release build I had, as pointed out by user Gyan :
Micro version of release should be ignored. git master is branched off for minor and major bumps. Minor upgrades only have security fixes for the most part. Get a static git build. Get one from the left column at johnvansickle.com/ffmpeg