
Recherche avancée
Autres articles (72)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
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 (...)
Sur d’autres sites (10857)
-
Libsourcey : Segmentation fault
12 décembre 2018, par Iranna PattarI am running WebRTC Native Video Recorder demo Application,but getting Segmentation fault (core dumped).
here is the cmake command :
cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_SHARED_LIBS=OFF -DBUILD_MODULES=OFF -DBUILD_APPLICATIONS=OFF \
-DBUILD_SAMPLES=ON -DBUILD_TESTS=OFF -DWITH_WEBRTC=ON -DWITH_FFMPEG=ON -DBUILD_MODULE_base=ON \
-DBUILD_MODULE_crypto=ON -DBUILD_MODULE_http=ON -DBUILD_MODULE_json=ON -DBUILD_MODULE_av=ON \
-DBUILD_MODULE_net=ON -DBUILD_MODULE_socketio=ON -DBUILD_MODULE_symple=ON -DBUILD_MODULE_stun=ON \
-DBUILD_MODULE_turn=ON -DBUILD_MODULE_util=ON -DBUILD_MODULE_uv=ON -DBUILD_MODULE_webrtc=ON \
-DBUILD_SAMPLES_webrtc=ON -DWEBRTC_INCLUDE_DIR=/home/ubuntu/temp/webrtc-22215-ab42706-linux-x64/include \
-DWEBRTC_LIBRARIES=/home/ubuntu/temp/webrtc-22215-ab42706-linux-x64/lib/ \
-DWEBRTC_ROOT_DIR=/home/ubuntu/temp/webrtc-22215-ab42706-linux-x64 \
-DBUILD_MODULE_openssl=ON -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_LIBRARIES=/usr/local/ssl/lib/ \
-DOPENSSL_INCLUDE_DIR=/usr/local/ssl/include/openssl/and Resolution is 640*480 , bit rate 128000, profile level is 3.2 .
[libx264 @ 0x7f63dc001600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 LZCNT BMI1
[libx264 @ 0x7f63dc001600] profile High, level 3.2
Segmentation fault (core dumped)I have tried to track with gdb and backtrace but couldnt find
[libx264 @ 0x7fffa4001600] profile High, level 3.2
Thread 19 "IncomingVideoSt" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd76fd700 (LWP 21381)]
0x00000001000001e0 in ?? ()
bt
#0 0x00000001000001e0 in ?? ()
#1 0x00007ffff5380c6c in x264_stack_align () from /usr/lib/x86_64-linux-gnu/libx264.so.155
#2 0x00007fffd76f710c in ?? ()
#3 0x00007fffd76f7110 in ?? ()
#4 0x0000000000000000 in ?? ()How to resolve this error ?
-
encoding video with HEVC codec in opencv (ffmpeg)
8 décembre 2020, par 404pioI have read documentation(https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu and https://docs.opencv.org/master/d2/de6/tutorial_py_setup_in_ubuntu.html) about opencv and ffmpeg, so I have compiled both parts. And when I call :


import cv2
writer = cv2.VideoWriter('test.mkv', cv2.VideoWriter_fourcc(*'HEVC'), 30, (1080, 1920))



or


import cv2
writer = cv2.VideoWriter('test.mp4', cv2.VideoWriter_fourcc(*'HEVC'), 30, (1080, 1920))



I'm getting following error
OpenCV: FFMPEG: tag 0x43564548/'HEVC' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
. What is interesting, it works with h264 codec, previous version without compiling doesn't support h264. Do I have problem with ffmpeg or opencv ?

I have docker image as follows :


FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y --fix-missing && \
 apt-get install -y git cmake gcc g++ build-essential curl \
 vim wget unzip yasm python3-dev \
 python3-numpy libavcodec-dev libavformat-dev \
 libswscale-dev libpng-dev libjpeg-dev libwebp-dev && \
 rm -rf /var/lib/apt/lists/*

# compile ffmpeg
RUN apt-get install -y autoconf automake build-essential cmake \
 git-core libass-dev libfreetype6-dev \
 libgnutls28-dev libsdl2-dev libtool \
 libunistring-dev libva-dev libvdpau-dev \
 libvorbis-dev libxcb1-dev \
 libxcb-shm0-dev libxcb-xfixes0-dev \
 pkg-config texinfo wget yasm \
 zlib1g-dev libx264-dev libx265-dev libnuma-dev && \
 mkdir -p ~/ffmpeg_sources && \
 cd ~/ffmpeg_sources && \
 git -C x265_git pull 2> /dev/null || git clone --depth 1 https://bitbucket.org/multicoreware/x265_git && \
 cd x265_git/build/linux && \
 cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED=off ../../source && \
 make && \
 make install && \
 cd ~/ffmpeg_sources && \
 wget -q -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
 tar xjf ffmpeg-snapshot.tar.bz2 && \
 cd ffmpeg && \
 PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
 --prefix="$HOME/ffmpeg_build" \
 --pkg-config-flags="--static" \
 --extra-cflags="-I$HOME/ffmpeg_build/include" \
 --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
 --extra-libs="-lpthread -lm" \
 --bindir="/usr/local/bin" \
 --enable-gpl \
 --enable-gnutls \
 --enable-libass \
 --enable-libfreetype \
 --enable-libvorbis \
 --enable-libx264 \
 --enable-libx265 \
 --enable-nonfree && \
 PATH="$HOME/bin:$PATH" make && \
 make install && \
 hash -r && \
 rm -rf /var/lib/apt/lists/*

# compile opencv
RUN mkdir -p ~/opencv_sources && \
 git clone --depth 1 --branch 4.5.0 https://github.com/opencv/opencv.git ~/opencv_sources && \
 mkdir -p ~/opencv_sources/build && cd ~/opencv_sources/build && \
 cmake -D WITH_FFMPEG=ON ../ &&
 make && make install



-
FFMPEG and FFPlay can access rtsp stream from one ip, but from other ip, it can't
28 mai 2022, par CrearThe situation is kind of complex. I was archiving several CCTV camera feeds (rtsp, h264, no audio) through OpenCV, which worked but the CPU utilization was too high and started to lose some frames time by time.


To reduce the CPU utilization, I started to use FFMPEG to skip the decoding and encoding processes, which worked perfectly on my home machine. However, when I connected to my university VPN and tried to deploy it on our lab server, FFmpeg couldn't read any frame, ffplay couldn't get anything either. However, OpenCV, VLC Player and IINA Player could still read and display the feed.


In Summary,


1 FFMPEG/ffplay


1.1 can only read the feed from my home network(Wi-Fi, optimum)


1.2 from other two networks, the error message says : "Could not find codec parameters for stream 0 (Video : h264, none) : unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options"


2 IINA/VLC Player, OpenCV
These tools can get the video all the time.


I'm wondering whether it's related to some specific port access, that the ffmpeg required but the others don't. I'd appreciate it if anyone can provide any suggestions.


As references, the tested ffplay command is simple :


ffplay 'the rtsp address'



Thanks



Update


More tests have been performed.


By specifying rtsp_transport as TCP, ffplay can play the video, but FFmpeg can't access the video. (In the beginning, when both FFmpeg and ffplay worked through my home network, it was UDP)
The FFmpeg command is as follows :


ffmpeg -i rtsp://the_ip_address/axis-media/media.amp -hide_banner -c:v copy -s 1920x1080 -segment_time 00:30:00 -f segment -strftime 1 -reset_timestamps 1 -rtsp_transport tcp "%Y-%m-%d-%H-%M-%S_Test.mp4"



Please help...