
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (36)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (4477)
-
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...


-
Stopped ffmpeg ip camera recording
25 août 2016, par Amit YadavI am using foscam ip camera. I want to record its stream in ts chunks and put no video screen when there is no stream available. I want to record 24 hrs video but I am not able to record it up to 24 hr. FFMPEG command stops inbetween. I am using below ffmpeg command
ffmpeg -rtsp_transport tcp -i rtsp ://username:password@192.168.0.68:554/videoMain -t 86400 -c:v copy -c:a copy -map 0 -f segment -segment_time 10 -strftime 1 -segment_list_type m3u8 -segment_list /home/user/Desktop/rec/del20160725111733.m3u8 -segment_format ts -y /home/user/Desktop/rec/%Y%m%d%H%M%S.ts
want no video screen like this http://www.electro-tech-online.com/customimages/2011/03/preview409-1.jpg
Or any other way to record stream using java code so that I have more control over stream to check if it is recording or not.