
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (97)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (7134)
-
How can I use FFMpeg with PHP in a Vagrant environment ?
31 juillet 2015, par curtisblackwellI’ve got this working on a DigitalOcean server, but I can’t seem to get it working locally.
My Vagrant box is ubuntu/trusty64. When I ssh into the machine to check out the permissions of the
ffmpeg
binary, it’s664
. I tried runningchmod 755 ffmpeg
(w/ and w/osudo
), but it has no effect and outputs no response. I’m the owner, sochown
wouldn’t make any difference (but also doesn’t work, w/ or w/osudo
). Outside of the Vagrant machine, the file permissions are755
and owned by me, though that doesn’t seem to matter.The binaries are static builds from a site linked to on the official FFMpeg site’s download page.
Running
cat /etc/*-release
on both the remote DO server and the Vagrant machine returns the same result :DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
NAME="Ubuntu"
VERSION="14.04.2 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.2 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"When attempting to execute the binary through PHP on the Vagrant machine (with
exec()
), I get a126
exit code.What else should I try to get this working ?
-
Capture desktop screens including audio with ffmpeg
9 mars 2019, par klausAfter referring to the official documentation and one other blog post, I now have following script :
A="$(pacmd list-sources | grep -PB 1 "analog.*monitor>" | head -n 1 | perl -pe 's/.* //g')"
F="/home/enan/Videos/$(date --iso-8601=minutes | perl -pe 's/[^0-9]+//g').mkv"
V="$(xdpyinfo | grep dimensions | perl -pe 's/.* ([0-9]+x[0-9]+) .*/$1/g')"
ffmpeg -video_size "$V" -framerate 25 -f x11grab -i :0.0 -f pulse -i "$A" -f pulse -i default \
-filter_complex amerge -ac 1 -preset veryfast "$F"Basically that script results into the following command :
ffmpeg -video_size 1366x768 -framerate 25 -f x11grab -i :0.0 -f pulse -ac 2 -i default output.mkv
In this case, with
-ac 2
, the audio that gets added with the captured video is of some mic. I’m using a laptop and don’t have a mic, so I don’t exactly know which device the outside sounds get added from but it does. But no audio from the main audio that I can hear through the headphone jack doesn’t get added to the video.If I use
-ac 1
instead, the video now gets the outside audio as well as the internal audio. That’s good. But how do I restrict the video to only add internal audio, not add audio gotten from mic or something similar.I don’t know if it’ll help, but adding it anyway. From
man mpv
:-ac[:stream_specifier] channels (input/output,per-stream)
Set the number of audio channels. For output streams it is set by
default to the number of input audio channels. For input streams this
option only makes sense for audio grabbing devices and raw demuxers and
is mapped to the corresponding demuxer options. -
FFMPEG memory leak on FLV video frame decoding
10 août 2014, par Michael IVI am decoding FLV video on Windows using FFMPEG latest dev version(20140810) .Monitoring memory consumption of my program process I found the memory footprint constantly increasing.I do packet deallocation and also tried to delete and then reallocate the AVFrame anew on each decode.But it doesn’t help.I read on some threads people pointing out there is an internal memory leak in H264 decoder but I have seen no official confirmation of it nor any solution.
Here is how I decode a frame :AVPacket packet;
av_read_frame(_ifmt_ctx, &packet);
if (packet.stream_index == _in_video_stream->index)
{
int isGotVideoFrame = 0;
// Decode video frame
ret = avcodec_decode_video2(_dec_in_video_ctx, _src_video_frame,
&isGotVideoFrame, &packet);
if (1 == isGotVideoFrame)
{
sws_scale(_sws_ctx, (const uint8_t * const*) _src_video_frame->data,
_src_video_frame->linesize, 0,_inVideoHeight,
_dst_video_frame->data, _dst_video_frame->linesize);
uint8_t* dest = new uint8_t[_numBytes];
memcpy(dest, _dst_video_frame->data[0], _numBytes);
av_free_packet(&packet);
_frames_cache.push_back(dest);
}
av_frame_unref(_src_video_frame);
av_frame_free(&_src_video_frame);
_src_video_frame = av_frame_alloc();
}Then in another place on each frame I delete ’dest’ from the vector :
uint8_t * fr = _frames_cache.front();
_frames_cache.erase(_frames_cache.begin());
delete [] fr ;