
Recherche avancée
Autres articles (36)
-
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (4696)
-
Ubuntu - Compile only ffmpeg.c from ffmpeg source
29 août 2016, par ArlindI’m experimenting with the ffmpeg.c file from the ffmpeg source code but every time I want to test what I’ve changed it takes about 15-20 mins to compile the whole thing. Is there a way to compile only the ffmpeg.c file (which is the only file I’m making changes) ?
-
Start service with start-stop-daemon on Ubuntu 16.04 with timeout
26 février 2018, par TopperI have /etc/init.d/stream proces with start/stop/restart options.
It’s run ffmpeg with daemon options taken from /etc/default/stream DAEMON_OPTIONS.
Start at background (-b) crate pid (/var/run/stream/stream.pid) etc.How could I add timeout 60 seconds to be sure that stream will be forcebly stopped if exceed 60 sek. timeout ?
Can’t run "—exec timeout 60 ffmpeg" because service runs only timeout command.
I’m I missing something or try to use wrong command ?
-
Ffmpeg library compilation .(without pkg-config) in linux ubuntu
2 novembre 2023, par Mohideen IrfanI have been trying to use ffmpeg libraries in my C code. But when i compile those libraries using pkg-config tool in linux terminal it works. But when i directly linked all the necessary libraries , it won't work. I even specified the library path in -L flag and LD_LIBRARY_PATH. even included the -I flag correctly. But when i use pkg-config it works, if i use directly it wont work. I also export LD_LIBRARY_PATH.


here is my C program Sample.c :


#include 
#include <libavformat></libavformat>avformat.h>


int main(int argc, char *argv[]) {
 if (argc < 2) {
 printf("Please provide a video file as an argument.\n");
 return -1;
 }

// av_register_all();

 AVFormatContext *pFormatCtx = NULL;
 if (avformat_open_input(&pFormatCtx, argv[1], NULL, NULL) != 0) {
 printf("Could not open the file.\n");
 return -1;
 }

 if (avformat_find_stream_info(pFormatCtx, NULL) < 0) {
 printf("Could not find stream information.\n");
 return -1;
 }

 av_dump_format(pFormatCtx, 0, argv[1], 0);

 avformat_close_input(&pFormatCtx);

 return 0;
}



here is the package file of libavformat.pc :


prefix=/home/mohideen-ts205/ffmpeg_build
exec_prefix=${prefix}
libdir=/home/mohideen-ts205/ffmpeg_build/lib
includedir=/home/mohideen-ts205/ffmpeg_build/include

Name: libavformat
Description: FFmpeg container format library
Version: 60.17.100
Requires: libavcodec >= 60.32.102, libswresample >= 4.13.100, libavutil >= 58.30.100
Requires.private: 
Conflicts:
Libs: -L${libdir} -lavformat -lm -latomic -lz -lgnutls -pthread -lgmp -lunistring -lidn2 -latomic -lhogweed -lgmp -lnettle -ltasn1 -lp11-kit
Libs.private: 
Cflags: -I${includedir}



libavutil.pc :


prefix=/home/mohideen-ts205/ffmpeg_build
exec_prefix=${prefix}
libdir=/home/mohideen-ts205/ffmpeg_build/lib
includedir=/home/mohideen-ts205/ffmpeg_build/include

Name: libavutil
Description: FFmpeg utility library
Version: 58.30.100
Requires: 
Requires.private: 
Conflicts:
Libs: -L${libdir} -lavutil -pthread -lva-drm -lva -lva-x11 -lva -lvdpau -lX11 -lm -lva -latomic -lX11 -lpthread -lxcb -lXau -lXdmcp
Libs.private: 
Cflags: -I${includedir}



And here the command :
with pkg config- working one :


gcc -o sample sample.c $(pkg-config --libs libavutil libavformat libavcodec)



without it directly linking :


gcc -o my_program -I/home/mohideen-ts205/ffmpeg_build/include -L/home/mohideen-ts205/ffmpeg_build/lib -lavformat



NOTE : I even tried to copy all the library files mentioned in libavutil.pc and libavformat.pc, but still i am getting this undefined reference error. what kind of problem it is.


/usr/bin/ld: /tmp/ccoCfZjA.o: in function `main':
sample.c:(.text+0x63): undefined reference to `avformat_open_input'
/usr/bin/ld: sample.c:(.text+0x8b): undefined reference to `avformat_find_stream_info'
/usr/bin/ld: sample.c:(.text+0xc3): undefined reference to `av_dump_format'
/usr/bin/ld: sample.c:(.text+0xcf): undefined reference to `avformat_close_input'
collect2: error: ld returned 1 exit status