
Recherche avancée
Autres articles (20)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (6542)
-
Unable to link against FFmpeg libaries
2 mars 2023, par CodyI tried to build this, but always got link-time error.



#include <libavutil></libavutil>log.h> 
int main(int argc, char *argv[])
{
 ::av_log_set_flags(AV_LOG_SKIP_REPEATED);
 return 0;
}




My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...



$ ./configure --prefix=/usr/local --disable-static --enable-shared \
> --extra-ldflags='-Wl,-rpath=/usr/local/lib'




The link-error is as follows.



$ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \
> -Wl,-rpath=/usr/local/lib \
> $(pkg-config --cflags --libs libavutil)
/tmp/ccKzgEFb.o: In function `main':
foo.cpp:(.text+0x17): undefined reference to `av_log_set_flags(int)'
collect2: error: ld returned 1 exit status




where the output of
pkg-config
is...


$ pkg-config --cflags --libs libavutil
-I/usr/local/include -L/usr/local/lib -lavutil




The
objdump
shows that the shared object libavutil.so does haveav_log_set_flogs
inside.


$ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep 'av_log_set_flags'
000260f0 g DF .text 0000000a LIBAVUTIL_54 av_log_set_flags




Please note that the
g++
command used to build the above application had a linker option-Wl,-rpath=/usr/local/lib
, though it still doesn't work. Also, I've tried to monitor withinotifywait
if the other version provided by the distro were called. They were not, and the one being opened during execution ofg++
was /usr/local/lib/libavutil.so.


Summary :



- 

-
/usr/local/lib/libavutil.so does have the symbol.
-
-rpath
was used to force to link against the shared library. -
Why link-time error ? T_T









Any suggestion or information would be highly appreciated ! Thanks !



REEDIT :
ffplay
works fine andldd
shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries.

-
-
Unable to link against FFmpeg libaries
28 octobre 2015, par CodyI tried to build this, but always got link-time error.
#include <libavutil></libavutil>log.h>
int main(int argc, char *argv[])
{
::av_log_set_flags(AV_LOG_SKIP_REPEATED);
return 0;
}My distro is Debian GNU/Linux 8 (jessie). The FFmpeg was built by myself, and the configure command was...
$ ./configure --prefix=/usr/local --disable-static --enable-shared \
> --extra-ldflags='-Wl,-rpath=/usr/local/lib'The link-error is as follows.
$ g++ foo.cpp -D__STDC_CONSTANT_MACROS -Wall \
> -Wl,-rpath=/usr/local/lib \
> $(pkg-config --cflags --libs libavutil)
/tmp/ccKzgEFb.o: In function `main':
foo.cpp:(.text+0x17): undefined reference to `av_log_set_flags(int)'
collect2: error: ld returned 1 exit statuswhere the output of
pkg-config
is...$ pkg-config --cflags --libs libavutil
-I/usr/local/include -L/usr/local/lib -lavutilThe
objdump
shows that the shared object libavutil.so does haveav_log_set_flogs
inside.$ objdump --dynamic-syms /usr/local/lib/libavutil.so | grep 'av_log_set_flags'
000260f0 g DF .text 0000000a LIBAVUTIL_54 av_log_set_flagsPlease note that the
g++
command used to build the above application had a linker option-Wl,-rpath=/usr/local/lib
, though it still doesn’t work. Also, I’ve tried to monitor withinotifywait
if the other version provided by the distro were called. They were not, and the one being opened during execution ofg++
was /usr/local/lib/libavutil.so.Summary :
-
/usr/local/lib/libavutil.so does have the symbol.
-
-rpath
was used to force to link against the shared library. -
Why link-time error ? T_T
Any suggestion or information would be highly appreciated ! Thanks !
REEDIT :
ffplay
works fine andldd
shows it use /usr/local/lib/libavutil.so. So, the libraries seems not broken, and the problem becomes how to build my own codes to use the libraries. -
-
How to work with data received from streaming services in my Java application ?
24 novembre 2020, par gabriel garciaI'm currently trying to develop an "streaming client" as a way to organize multiple stream services (twitch, yt, mitele...) in a single desktop application written in Java.


It basically relies on streamlink (which relies in ffmpeg) thanks to all it's features so my project could be defined as a frontend for streamlink.


Straight to the point, one of the features I'd like to add it is the option to programatically record streams in the background and showing this video stream to the user when it's requested. Since there's also the possibility that the user wants to watch the stream without recording it, I'm forced to work with all that byte-like data sent from those streaming sources.


So, the problem is basically that I do not know much about video coding/decoding/muxing/demuxing nor video theory like container structure, video formats and such.


But the idea is to work with all the data sent from the stream source (let's say twitch, for example), read this bytes (I'm not sure what kind of information is sent to the client nor format) from the
java.lang.Process
'sstdout
and then present it to the client.

Here's another problem : I don't know how to play video streams in JavaFX and I don't think it's even supported right now. So I would have to extract each frame and sound associated from the
stdout
and show them to the user each time a new frame is received (oups, another problem since I don't know when does each frame starts/ends since I'm reading eachstdout
's line).

As a summary :


- 

- What kind of data am I receiving from the streaming source ?
- How can I know when does each frame starts/stops ?
- How can I extract the image and sound from each frame ?








I hope I'm not asking too much and that you could shed some light upon my darkness.