
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (63)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (12443)
-
FFMPEG hangs when trying to receive rtp/udp stream
22 décembre 2016, par NathanKI am trying to receive a udp stream encoded as h264. The exact command I am using is :
ffmpeg -v 9 -loglevel 99 -re -i "udp://239.192.1.2:1234" outfile.h264
The output I receive is :
ffmpeg version 3.2.2-1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.2.1 (Debian 6.2.1-5) 20161124
configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-libopencv --enable-frei0r --enable-libx264 --enable-chromaprint --enable-shared
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input url with argument 'udp://@239.192.1.2:1234'.
Reading option 'outffff.h264' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url udp://@239.192.1.2:1234.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: udp://@239.192.1.2:1234.
[udp @ 0x7f6638a36280] No default whitelist set
[udp @ 0x7f6638a36280] end receive buffer size reported is 131072
[AVIOContext @ 0x7f6638a56840] Statistics: 0 bytes read, 0 seeksThe problem with this is, obviously, that the ffmpeg process isn’t detecting any incoming packets on that address which causes the process to hang.
I am, however, able to receive the stream using vlc, so I know that the packets are arriving. Here is a link to a similar problem.I thought, perhaps, it was a problem with reverse path filtering (as is mentioned in the link), but rp_filter is not set in /etc/sysctl.conf. I’m not quite sure what to do from here, any help is appreciated.
Edit : I removed the @, however this changes nothing.
The vlc command that works is :
vlc --miface eth1 rtp://@239.192.1.2:1234
-
Advice with ffmpeg creating clips out of a video
5 décembre 2016, par Janx from VenezuelaFirst of all I’m pretty new at this of video transcoding. I’m trying to use ffmpeg to create a 10 second clip out of a much larger video source, all this in a Node.js application using fluent-ffmpeg. My code goes something like :
var command = ffmpeg().input(<sourcepath>).native().seekInput(<desiredstartpoint>)
.duration(10)
.on('start', function(commandLine){ // do some database persistence
}).on('progress',function(e){ // refresh a kill timeout
}).on('error',function(e){ // clean up the mess
}).on('end',function(e){ // success
}).save(<clipdestinationpath>);
</clipdestinationpath></desiredstartpoint></sourcepath>Which usually translates into something like :
ffmpeg -re -ss <desiredstartpoint> -i <sourcepath> -y -t 10 <clipdestinationpath>
</clipdestinationpath></sourcepath></desiredstartpoint>What’s happening is that sometimes the process seems to ’hang’ and I have to manually kill the ffmpeg process (a batch console that appears on windows) for the node process to continue and the ’error’ callback to trigger. Same happens if I run the ffmpeg command manually on a CMD. It usually starts to :
frame= xxx fps= yy q=x.x size= xxxKb time=00:00:0x.xx bitrate=xx.xxkbits/s
frame= xxx fps= yy q=x.x size= xxxKb time=00:00:0x.xx bitrate=xx.xxkbits/s
frame= xxx fps= yy q=x.x size= xxxKb time=00:00:0x.xx bitrate=xx.xxkbits/sUntil is suddenly does it no more, and its hanged.
I do have some fail-overs :
-
On the progress callback, I keep track of a timeout kill action, for when it hangs up, if there’s more than N seconds without activity, I call the kill like
command.kill();
-
The other thing that I do is to decrement the desiredStartPoint by one (1) second at the time for up to five (5) seconds (greater than zero of course), and try again. Eventually the clip generates right, but it is so random... Sometimes it works like a charm, on the very first (1st) try it creates the clip all is OK to go.
So my question is :
- Do you see anything here that I might be missing ? Do I have to consider other variables ? like keyframes, fps, advanced stuffs like that ?
I’ve also noticed that this happens more frequently on video sources recorded at high bitrate frequencies... I really don’t know men.
-
-
Convert video in background
27 novembre 2016, par RoiEXI found this question which is the same question I have, but with the small but important difference, that I’m using Windows so cronjobs are no thing.
I basically want to convert a video in PHP, but don’t want the PHP script to hang up until the conversion is finished and instead return immediately.My current code :
if ($videoext !== "mp4") {
exec ( "./ffmpeg.exe -i " . $inputFile. " " . $outputFile/*without extension*/ . ".mp4" );//convert to useable format
if (! in_array ( $videoext, $GLOBALS ['fileextensions'] )) {//Unsupported extension
unlink ( $inputFile);//delete if not useful
}
}I’m using PHP7 with XAMPP for windows
Any help is appreciatedEDIT : I know that pthreads exist, but I’m not sure if they do what I’d expect them to do and too stupid to get them working on my XAMPP installation