
Recherche avancée
Autres articles (64)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...)
Sur d’autres sites (8191)
-
FFmpeg can't read a video stream, but VLC reads it fine
21 mai 2022, par J.DoeI have a video stream that I can access using VLC, but can't access with ffmpeg. This used to work before I moved onto using a new computer (but with same camera).


This is the ffprobe command (made up IP addr) :


ffprobe -hide_banner -rtsp_transport tcp "rtsp://root:pass@12.34.567.890:80/axis-media/media.amp?event=on&eventtopic=onvif:VideoSource/MotionAlarm/."


It returns


rtsp://root:pass@12.34.567.890:80/axis-media/media.amp: Invalid data found when processing input



I've not found very much on this problem :


- 

- I've tried turning it off and on again
- I looked through this github issue but there were no solutions
- I know it supports TCP since it's the same command as when it worked last time.








Any ideas how I can get ffmpeg to read the stream ?


Edit : Output of -report below, I'm afraid it's not very helpful :


ffprobe started on 2022-05-21 at 06:27:54
Report written to "ffprobe-20220521-062754.log"
Log level: 48
Command line:
ffprobe -hide_banner -report -rtsp_transport tcp 
"rtsp://root:pass@IPADDR:80/axis-media/media.amp? 
event=on&eventtopic=onvif:VideoSource/MotionAlarm/."
[tcp @ 0000023967a2f8c0] No default whitelist set
[tcp @ 0000023967a2f8c0] Original list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Interleaved list of addresses:
[tcp @ 0000023967a2f8c0] Address IPADDR port 80
[tcp @ 0000023967a2f8c0] Starting connection attempt to IPADDR port 80
[tcp @ 0000023967a2f8c0] Successfully connected to IPADDR port 80
rtsp://root:pass@IPADDR:80/axis-media/media.amp?event=on&eventtopic=onvif:VideoSource/MotionAlarm/.: Invalid data found when processing input



-
"Undefined referance to function" while linking ffmpeg [duplicate]
19 mai 2022, par user19068953I'm trying to link ffmpeg on ubuntu, i downloaded ffmpeg source and added to my lib/ffmpeg library then ran ./configure, i created a cmake on my project directory and one inside ffmpeg dir. The cmake compiles just fine but when i run make it just gives me an error saying Undefined referance to avformat_alloc_context(), it says this for all functions but the structs, typedefs and defines compile just fine. Here are my files :


./cmake :


cmake_minimum_required(VERSION 3.14)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(Interview C CXX)

add_definitions(-DGL_SILENCE_DEPRECATION)

SET(EXECUTABLE_OUTPUT_PATH ${dir}/bin )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin )

file(GLOB_RECURSE SOURCE_FILES 
 ${CMAKE_SOURCE_DIR}/src/*.c
 ${CMAKE_SOURCE_DIR}/src/*.cpp
 # last resort
 ${CMAKE_SOURCE_DIR}/lib/ffmpeg/*/*.c
)
 
# Add header files
file(GLOB_RECURSE HEADER_FILES 
 ${CMAKE_SOURCE_DIR}/src/*.h
 ${CMAKE_SOURCE_DIR}/src/*.hpp
 # last resort
 ${CMAKE_SOURCE_DIR}/lib/ffmpeg/*/*.h
)

list(APPEND SOURCES
 src/main.cpp
 src/vipch.h
 src/VideDecoder.cpp
 src/VideoDecoder.h
 src/Application.cpp
 src/Application.h
 src/OpenGLRender.cpp
 src/OpenGLRender.h
 src/Layer.h
 src/Layer.cpp

 # last resort
 lib/ffmppeg/*/*.h
 lib/ffmppeg/*/*.c
)
add_executable(Interview src/main.cpp)

# ffmpeg linking -----------------------------------------------


add_library(ffmpeg STATIC IMPORTED)
add_subdirectory(lib/ffmpeg)

target_include_directories(Interview PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg)

link_directories(${CMAKE_SOURCE_DIR}/lib)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")



The cmake files are a bit messy since i am trying to figure this out.
./lib/ffmpeg/cmake :


cmake_minimum_required(VERSION 3.14)
project(ffmpeg)

list(APPEND SOURCES
 libavformat/avformat.h
 libavformat/avformat.c
)

file(GLOB_RECURSE SOURCE_FILES 
 ${CMAKE_SOURCE_DIR}/*/*.c
) 
# Add header files
file(GLOB_RECURSE HEADER_FILES 
 ${CMAKE_SOURCE_DIR}/*/*.h
)

include_directories(${CMAKE_SOURCE_DIR}/libavformat)
link_directories(${CMAKE_SOURCE_DIR}/libavformat)



and my main file that i run my test src/main.cpp :


extern "C"{
 #include <libavformat></libavformat>avformat.h>
}

#include <iostream>
int main(int argc, char* argv[]) {
 AVFormatContext* context; 
 context = avformat_alloc_context();
 std::cout << context << std::endl;
}
</iostream>


Again, no problem when using type's like AVFormatContext and defines but when i use a function like avformat_alloc_context it gives of this error (the source files are inside ffmpeg, i can inspect them with ctrl right-click on VSCode) :


/usr/bin/ld: CMakeFiles/Interview.dir/src/main.cpp.o: in function main': main.cpp: 
 (.text+0x4e): undefined reference to avformat_alloc_context' collect2: error: ld returned 1 
 exit status make[2]: *** [CMakeFiles/Interview.dir/build.make:84: bin/Interview] Error 1 
 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/Interview.dir/all] Error 2 make: *** 
 [Makefile:84: all] Error 2



Edit :
I edited the cmake file but now im getting a different error :


find_path(AVCODEC_INCLUDE_DIR NAMES "avformat.h" PATHS 
${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg/libavformat)
find_library(AVCODEC_LIBRARY avformat)

link_directories(${CMAKE_SOURCE_DIR}/lib)

add_executable(Interview src/main.cpp)

target_include_directories(Interview PRIVATE ${AVCODEC_INCLUDE_DIR})
target_link_libraries(Interview PRIVATE avformat)

add_library(ffmpeg STATIC IMPORTED)
add_subdirectory(lib/ffmpeg)

target_include_directories(Interview PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/lib/ffmpeg)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")



Note : AVCODEC_LIBRARY returns notfound cmake error but just using avcodec in target_link_libraries somehow doesn't result in a cmake error, however when i run make like this it gives this error :


usr/bin/ld: cannot find -lavformat collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/Interview.dir/build.make:84: bin/Interview] Error 1 make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/Interview.dir/all] Error 2 make: *** [Makefile:84: all] Error 2



-
FFMPEG image capture only executes partially on cron
17 mai 2022, par C. ArdayfioI have the following shell script :


DailyScript.sh


#!/bin/sh
now="/Users/mydir/Downloads/LIDOPRO/Captures/$(date +'%Y_%m_%d_%I_%M_%p').jpg"
"/Users/mydir/Downloads/LIDOPRO/ffmpeg" -ss 0.5 -f avfoundation -framerate 30 -i "0" -frames:v 1 -t 1 "$now"



It produces an image through my FaceTime camera when I run the script manually in shell, as follows :


$ /Users/mydir/Downloads/LIDOPRO/DailyScript.sh



And the output I get is the following


ffmpeg version N-106916-ge71d5156c8-tessus Copyright (c) 2000-2022 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
 libavutil 57. 24.101 / 57. 24.101
 libavcodec 59. 28.100 / 59. 28.100
 libavformat 59. 23.100 / 59. 23.100
 libavdevice 59. 6.100 / 59. 6.100
 libavfilter 8. 38.100 / 8. 38.100
 libswscale 6. 6.100 / 6. 6.100
 libswresample 4. 6.100 / 4. 6.100
 libpostproc 56. 5.100 / 56. 5.100
[avfoundation @ 0x7f88f3004f00] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7f88f3004f00] Supported pixel formats:
[avfoundation @ 0x7f88f3004f00] uyvy422
[avfoundation @ 0x7f88f3004f00] yuyv422
[avfoundation @ 0x7f88f3004f00] nv12
[avfoundation @ 0x7f88f3004f00] 0rgb
[avfoundation @ 0x7f88f3004f00] bgr0
[avfoundation @ 0x7f88f3004f00] Overriding selected pixel format to use uyvy422 instead.
0: could not seek to position 63537.297
Input #0, avfoundation, from '0':
 Duration: N/A, start: 63536.797200, bitrate: N/A
 Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 640x480, 30 tbr, 1000k tbn
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8018000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8040000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8050000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8060000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8070000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8080000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f8090000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f80a0000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7f88f8008000] [swscaler @ 0x7f88f80b0000] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/Users/caineardayfio/Downloads/LIDOPRO/Captures/2022_05_17_12_57_PM.jpg':
 Metadata:
 encoder : Lavf59.23.100
 Stream #0:0: Video: mjpeg, yuvj422p(pc, progressive), 640x480, q=2-31, 200 kb/s, 30 fps, 30 tbn
 Metadata:
 encoder : Lavc59.28.100 mjpeg
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
frame= 1 fps=0.0 q=5.2 Lsize=N/A time=00:00:00.06 bitrate=N/A speed=0.232x 
video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



Everything works perfectly fine and the image is output.


So, I created a cron job to run the script automatically, as follows :


* * * * * /Users/caineardayfio/Downloads/LIDOPRO/DailyScript.sh 2> /tmp/error.txt 1> /tmp/output.txt



However, this cronjob does not actually work. No photo is produced and the script seems to execute, but only partially :
error.txt


ffmpeg version N-106916-ge71d5156c8-tessus Copyright (c) 2000-2022 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
 libavutil 57. 24.101 / 57. 24.101
 libavcodec 59. 28.100 / 59. 28.100
 libavformat 59. 23.100 / 59. 23.100
 libavdevice 59. 6.100 / 59. 6.100
 libavfilter 8. 38.100 / 8. 38.100
 libswscale 6. 6.100 / 6. 6.100
 libswresample 4. 6.100 / 4. 6.100
 libpostproc 56. 5.100 / 56. 5.100
[avfoundation @ 0x7fe5af104580] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7fe5af104580] Supported pixel formats:
[avfoundation @ 0x7fe5af104580] uyvy422
[avfoundation @ 0x7fe5af104580] yuyv422
[avfoundation @ 0x7fe5af104580] nv12
[avfoundation @ 0x7fe5af104580] 0rgb
[avfoundation @ 0x7fe5af104580] bgr0
[avfoundation @ 0x7fe5af104580] Overriding selected pixel format to use uyvy422 instead.



output.txt is empty


Does anyone know how to resolve this issue ? I'd like the image to be produced.