
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (12)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (3546)
-
ffmpeg, video-clips do not always end at the specified '-to' value
21 mars 2023, par query-01Within the batch file below, I randomly experience a video-clip that will not truncate/end at the value entered for
-to
. That said, if I have four files joined, then output tooutput.mp4
, at least one file will not end at the specified-to
value, yet the other adjoining clips will have complied with their specified-to
value.

@echo off
Setlocal EnableDelayedExpansion
Rem "C:\Program Files\Bulk Rename Utility\Bulk Rename Utility.exe" %CD%
for /F "delims=" %%i in ('dir /B /O *.mp4') do (
 set f=%%i
 "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "!f!"
 set /p ss="Enter hh:mm:ss: "
 set /p t="Enter Duration: "
 ffmpeg -i "!f!" -ss !ss! -to !t! -c:v copy -c:a aac _"!f!"
)

for /F "delims=" %%i in ('dir /B /O _*.mp4') do @echo file '%%i' >> clips.txt
set /p fn="Enter A Filename:"
ffmpeg -safe 0 -f concat -i clips.txt -c:v copy -c:a aac !fn!.mp4



All of the video-clips are processed by the original system and remain un_touched before they are handled by this script.


What am I doing incorrectly, and/or, what should I be looking for within the affected video-clip, which would cause this behavior ?


I am using ffmpeg version 2021-11-10-git-44c65c6cc0-full_build-www.gyan.dev on Windows 10 Home, Version : 22H2


Respectfully.


-
ffmpeg, random video-clip(s) not ending at the specified -to [value]
21 mars 2023, par query-01Windows 10 Home, Version : 22H2


ffmpeg version 2021-11-10-git-44c65c6cc0-full_build-www.gyan.dev


The Issue : Within the .bat below, I randomly experience a video-clip that will not truncate/end —at the value entered for
-to
. That said, if I have four files joined, then output to —> output.mp4, at least one file will not end at the specified-to [value]
, yet the other adjoining clips will have complied with their specified-to [value]
.

All of the video-clips are processed by the original system and remain un_touched —until this .bat (below).


What am I doing incorrectly, and/or, what should I be looking for within the affected video-clip, that would cause this behavior ?


Setlocal EnableDelayedExpansion
::"C:\Program Files\Bulk Rename Utility\Bulk Rename Utility.exe" %CD%
for /F "delims=" %%i in ('dir /B /O *.mp4') do (
set f=%%i
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "!f!"
set /p ss="Enter hh:mm:ss: "
set /p t="Enter Duration: "
ffmpeg -i "!f!" -ss !ss! -to !t! -c:v copy -c:a aac _"!f!"

)

for /F "delims=" %%i in ('dir /B /O _*.mp4') do @echo file '%%i' >> clips.txt
set /p fn="Enter A Filename:"
ffmpeg -safe 0 -f concat -i clips.txt -c:v copy -c:a aac !fn!.mp4

)



Respectfully


-
Problem compiling libsrt for ffmpeg, library not found using pkg-config
3 juin 2022, par KodsamaI am trying to build ffmpeg and dependencies from sources (as it will be used from a container on aws) but I have hard time with ffmpeg and pkg-config.


I compile static libraries, among which libsrt from sources and put generated files to well defined directories. pkg-config finds srt without problem but ffmpeg doesn't for some reason (see output below).


Here is how it looks like :


Build code (I extracted the interesting parts, other libraries are built as well, I added prints to be able to see what happens) :


echo "*** Building libsrt ***"
cd $BUILD_DIR/srt*
make distclean
PKG_CONFIG_PATH="$TARGET_DIR/lib/pkgconfig" \
 PATH="$BIN_DIR:$PATH" \
 cmake -G "Unix Makefiles" \
 -DCMAKE_INSTALL_PREFIX="$TARGET_DIR" \
 -DCMAKE_INSTALL_LIBDIR="$TARGET_DIR/lib" \
 -DCMAKE_INSTALL_INCLUDEDIR="$TARGET_DIR/include" \
 -DCMAKE_INSTALL_BINDIR="$BIN_DIR" \
 -DENABLE_SHARED:bool=off \
 -DENABLE_C_DEPS:bool=on \
 -DENABLE_STATIC:bool=on
make -j $jval
make install
echo '========================================================================'
pwd
echo "$TARGET_DIR"
echo "$BUILD_DIR"
echo 'target_dir=' && ls "$TARGET_DIR"
echo 'lib=' && ls "$TARGET_DIR/lib"
echo 'lib/pkgconfig=' && ls "$TARGET_DIR/lib/pkgconfig"
echo 'bin_dir=' && ls "$BIN_DIR"
echo 'include=' && ls "$TARGET_DIR/include"
echo 'path=' && echo $PATH
pkg-config --modversion srt
export PKG_CONFIG_PATH="$TARGET_DIR/lib/pkgconfig":$PKG_CONFIG_PATH


echo "*** Building FFmpeg ***"
cd $BUILD_DIR/FFmpeg*
make distclean
PATH="$BIN_DIR:$PATH" \
 ./configure \
 --prefix="$TARGET_DIR" \
 --pkg-config-flags="--static" \
 --extra-cflags="-I$TARGET_DIR/include -I$TARGET_DIR/usr/local/include -I/usr/local/cuda/include" \
 --extra-ldflags="-L$TARGET_DIR/lib -L$TARGET_DIR/usr/local/lib -L/usr/local/cuda/lib64" \
 --extra-libs="-Wl,-Bstatic -lharfbuzz -lfreetype -lpng -lz -lbz2 -Wl,-Bdynamic -lm -ldl -lpthread -lsrt -lssl -lcrypto" \
 --extra-ldexeflags="-Wl,-Bstatic" \
 --nvccflags="-gencode arch=compute_75,code=sm_75 -O2" \
 --bindir="$BIN_DIR" \
 --enable-pic \
 --enable-ffplay \
 --enable-fontconfig \
 --enable-frei0r \
 --enable-gpl \
 --enable-version3 \
 --enable-libass \
 --enable-libfribidi \
 --enable-libfdk-aac \
 --enable-libfreetype \
 --enable-libmp3lame \
 --enable-libopenjpeg \
 --enable-libopus \
 --enable-libsoxr \
 --enable-libspeex \
 --enable-libtheora \
 --enable-libvidstab \
 --enable-libvorbis \
 --enable-libvpx \
 --enable-libwebp \
 --enable-libx264 \
 --enable-libx265 \
 --enable-libxvid \
 --enable-libzimg \
 --enable-nonfree \
 --enable-openssl \
 --enable-cuda-nvcc \
 --enable-cuvid \
 --enable-nvenc \
 --enable-libsrt \
 --enable-libnpp || tail -n 100 ${HOME}/build/FFmpeg*/ffbuild/config.log

PATH="$BIN_DIR:$PATH" make -j $jval
make install



This what I get printed in the logs (I put [...] to take away parts which are not relevant) :


[...]
[100%] Built target srt-file-transmit
Install the project...
-- Install configuration: "Release"
-- Installing: /codebuild/output/ffmpeg/target/lib/libsrt.a
-- Installing: /codebuild/output/ffmpeg/target/include/srt/version.h
-- Installing: /codebuild/output/ffmpeg/target/include/srt/srt.h
-- Installing: /codebuild/output/ffmpeg/target/include/srt/logging_api.h
-- Installing: /codebuild/output/ffmpeg/target/include/srt/access_control.h
-- Installing: /codebuild/output/ffmpeg/target/include/srt/platform_sys.h
-- Installing: /codebuild/output/ffmpeg/target/include/srt/udt.h
-- Installing: /codebuild/output/ffmpeg/target/lib/pkgconfig/haisrt.pc
-- Installing: /codebuild/output/ffmpeg/target/lib/pkgconfig/srt.pc
-- Installing: /codebuild/output/ffmpeg/bin/srt-live-transmit
-- Up-to-date: /codebuild/output/ffmpeg/bin/srt-live-transmit
-- Installing: /codebuild/output/ffmpeg/bin/srt-file-transmit
-- Up-to-date: /codebuild/output/ffmpeg/bin/srt-file-transmit
-- Installing: /codebuild/output/ffmpeg/bin/srt-tunnel
-- Up-to-date: /codebuild/output/ffmpeg/bin/srt-tunnel
-- Installing: /codebuild/output/ffmpeg/bin/srt-ffplay
========================================================================
/codebuild/output/ffmpeg
/codebuild/output/ffmpeg/target
/codebuild/output/ffmpeg/build

target_dir=
bin
etc
include
lib
share
ssl
var

lib=
cmake
[...]
libsrt.a
libssl.a
[...]
pkgconfig

lib/pkgconfig=
[...]
haisrt.pc
[...]
libcrypto.pc
libssl.pc
[...]
openssl.pc
[...]
srt.pc
[...]

bin_dir=
[...]
srt-ffplay
srt-file-transmit
srt-live-transmit
srt-tunnel
[...]

include=
[...]
srt
[...]

path=
/root/.cargo/bin:/root/miniconda3/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/codebuild/user/bin
1.4.3
========================================================================
*** Building FFmpeg ***
ERROR: srt >= 1.3.0 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
tail: cannot open '/root/build/FFmpeg*/ffbuild/config.log' for reading: No such file or directory

[Container] 2021/06/09 15:03:22 Command did not exit successfully ./build.sh exit status 1
[Container] 2021/06/09 15:03:22 Phase complete: BUILD State: FAILED
[Container] 2021/06/09 15:03:22 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: ./build.sh. Reason: exit status 1



Any idea what can be wrong ?


Thanks !