
Recherche avancée
Autres articles (76)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (13544)
-
capture image from IP camera through ffmpeg in command line or opencv getting a gray image
4 décembre 2015, par rockycaiNow I have a IP camera. I tried to get a image through ffmpeg (like this : ffmpeg -rtsp_transport tcp -i "my rtsp stream address" -y -f image2 test.jpg ).That’s OK ! Or I tried to do this through opencv,no problem too.But when I open the stream in vlc,At the same time,I tried to capture the image ,oh,I just got a gray image.
why ? if I open the stream in vlc two times,that’s also OK ! If capturing the image and view the rtsp stream together,just got a gray image.Is the reason of IP camera ?normal imagegray image -
undefind reference to symbol 'avpriv_tak_parse_streaming@@LIBAVCODEC_FFMPEG_56'
29 septembre 2019, par DJI_loverI recently compiled some ffmpeg code, but there were some compilation errors. I’ve solved some of them, but I don’t know how to solve the error below(Picture 1) . I’ve followed some online solutions to add option ’-lavcodec-ffmpeg’ after GCC but can’t solve this problem.I’ve been confused by it for several days.Could someone who konw the solution tell me how to fix this,I will be grateful.I use ubuntu 16.04 and I’ve installed n4.2dev version from ffmpeg git source and the standard libavcodec-ffmpeg56 as well as standard libav*-dev. My gcc version is 5.5.0 (Picture 2) .Thanks
Update1:To prevent the picture 1 from not showing, I put out the error text here:
/usr/bin/ld : /usr/local/lib/libavformat.a(takdec.o) : undefined reference to symbol ’avpriv_tak_parse_streaminfo@@LIBAVCODEC_FFMPEG_56’
/usr/lib//libavcodec-ffmpeg.so.56 : error adding symbols : DSO missing from command line
collect2 : error : ld returned 1 exit status
CMakeFiles/simple_opencv_streaming.dir/build.make:145 : recipe for target ’simple_opencv_streaming’ failed
make2 : * [simple_opencv_streaming] Error 1
CMakeFiles/Makefile2:67 : recipe for target ’CMakeFiles/simple_opencv_streaming.dir/all’ failed
make1 : * [CMakeFiles/simple_opencv_streaming.dir/all] Error 2
Makefile:83 : recipe for target ’all’ failed
make : *** [all] Error 2Update2 : My CMAKElist.txt :
project(simple_opencv_streaming)
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set ( CMAKE_EXE_LINKER_FLAGS_RELEASE "$CMAKE_EXE_LINKER_FLAGS_RELEASE -pthread -lavcodec-ffmpeg")
set(CMAKE_CXX_FLAGS_RELEASE "$CMAKE_CXX_FLAGS_RELEASE -O3 -std=c++11 -Wall")
set ( CMAKE_EXE_LINKER_FLAGS_DEBUG "$CMAKE_EXE_LINKER_FLAGS_DEBUG -fsanitize=address -fsanitize=undefined")
set(CMAKE_CXX_FLAGS_DEBUG "$CMAKE_CXX_FLAGS_DEBUG -std=c++11 -Wall -O0 -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -D__FORTIFY_SOURCE=2 -rdynamic -DDEBUG")
find_package(OpenCV REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Test Concurrent)
get_target_property(QtCore_location Qt5::Core /usr/lib/x86_64-linux-gnu/)
include(CMakeToolsHelpers OPTIONAL)
include_directories($OpenCV_INCLUDE_DIRS)
add_subdirectory(streamer)
add_executable(simple_opencv_streaming main.cpp)
find_library(AVCODEC_LIBRARY avcodec)
find_library(AVFORMAT_LIBRARY avformat)
find_library(AVUTIL_LIBRARY avutil)
find_library(SWSCALE_LIBRARY swscale)
MESSAGE($AVFORMAT_LIBRARY)
target_link_libraries(simple_opencv_streaming streamer $OpenCV_LIBS $AVCODEC_LIBRARY $AVFORMAT_LIBRARY $AVUTIL_LIBRARY $SWSCALE_LIBRARY Qt5::Core)
-
ffmpeg ip camera error invalid data found when processing the input
4 décembre 2022, par mehdiI want to capture images from a remote ip camera (Dahua) using ffmpeg.
I am able to ping the camera ip and see it live on my browser.


Using this command :


ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:password@172.28.56.237:37777" -vframes 1 test.jpg



gives this result :


Splitting the commandline.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-i' ... matched as input url with argument 'rtsp://admin:password@172.28.56.237:37777/live'.
Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'.
Reading option 'test.jpg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://admin:password@172.28.56.237:37777/live.
Successfully parsed a group of options.
Opening an input file: rtsp://admin:password@172.28.56.237:37777/live.
[tcp @ 0x5563a5c4b540] No default whitelist set
[tcp @ 0x5563a5c4b540] Original list of addresses:
[tcp @ 0x5563a5c4b540] Address 172.28.56.237 port 37777
[tcp @ 0x5563a5c4b540] Interleaved list of addresses:
[tcp @ 0x5563a5c4b540] Address 172.28.56.237 port 37777
[tcp @ 0x5563a5c4b540] Starting connection attempt to 172.28.56.237 port 37777
[tcp @ 0x5563a5c4b540] Successfully connected to 172.28.56.237 port 37777
rtsp://admin:password@172.28.56.237:37777/live: Invalid data found when processing input




in the camera settings the ports are :


tcp: 37777
udp: 37778
rtsp: 554



I also tried below commands, but the result was the same error :


ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:admin110@172.28.56.237:37777/live" -vframes 1 test.jpg




ffmpeg -loglevel debug -i "rtsp://admin:admin110@172.28.56.237:554/live" -vframes 1 test.jpg

result: Server returned 404 not found



I tried this in arch linux and windows and got the same error.