
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (52)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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
Sur d’autres sites (6560)
-
ERROR : "Cannot Find FFMPEG" on Google Cloud Compute Engine Debian Wheezy 7.8 Managed Instance even though it's installed
17 mai 2021, par DynamoBoosterI wrote a Node.JS application that uses the
fluent-ffmpeg
module to watermark videos uploaded on the platform. I pushed the code to a my Google Cloud Compute Engine project, and every time I getError : Cannot Find FFMPEG
. I ssh'd into the instance once it was created and ran these commands to installFFMPEG
before actually testing out the code. I am not sure what is causing the error because after this I am positive thatFFMPEG
is installed.


sudo apt-get update
sudo apt-get install -y ffmpeg
export FFMPEG_PATH="/usr/bin/ffmpeg"
export FFPROBE_PATH="/usr/bin/ffprobe"




Below is my FFMPEG code



function generate_thumbnail(name, path){
 logging.info("Generating Thumbnail");
 ffmpeg(path)
 .setFfmpegPath('/usr/bin/ffmpeg') 
 .setFfprobePath('/usr/bin/ffprobe')
 .on('end', function() {
 upload_thumbnail(name);
 logging.info("Thumbnail Generated and uploaded");
 return;
 })
 .on('error', function(err, stdout, stderr) {
 logging.info('ERROR: ' + err.message);
 logging.info('STDERR:' + stderr);
 })
 .on('start', function(commandLine) {
 logging.info(commandLine);
 })
 .screenshots({
 count: 1,
 filename: name + '_thumbnail.png',
 folder: 'public/images/thumbnails/'
 });
}



-
Clipping audio problem on ffmpeg live stream
20 mars 2019, par Ivan Bombash Stokicin 30-40% of the live stream i get some king of distortion or clipping in the streamed audio and i have no idea why, is is only because low hardware performance maybe ? I am running the stream on a Raspberry pi 3b+ CPU usage while streaming from 25 to 30% Ram usage 28% , storage device is a USB pen drive.
Here is the code :
ffmpeg -re -f alsa -i default -re -stream_loop -1 -i "/home/pi/Documents/Youtube/video720p.mp4" -c:v copy -c:a aac -f flv -max_muxing_queue_size 400 rtmp://a.rtmp.youtube.com/live2/pfjd-jhjs-k3td-xxxx
Or i should buffer it before streaming or re-encode the audio before streaming ?
Thanks in advance !
-
Programming in C : Opening, Reading and Transcoding of Live TV with libavcodec. libavformat etc
19 décembre 2011, par mmomentI'm currently developing a live streaming Software for my University Project.
I am supposed to open a Live Video Stream from a USB Stick( I am using the Hauppauge WinTV-HVR 950Q under Linux) and read the Stream.
Then I'm supposed to transcode it to h246. and send it to some devices in the Network.My Problem
I can use the v4l API to access the USB Stick, but transcoding does currently not work as far as I know, therefore I want to use the libav to do so. I know that using the command line tools transcoding of live streams with ffmpeg is not a big deal, but doing so in C seems to be more of a problem.
-
Here's how I open some static Video File :
static char* path = "./video.mpeg" ;
AVFormatContext *pFormatCtx ;av_register_all() ;
if(av_open_input_file(&pFormatCtx, path, NULL, 0, NULL) !=0)
printf("Opening file \"%s\" failed", path) ;
return -1 ;
else printf("Opening the file \"%s\" succeeded", path) ; -
Here's how I understand to how open a Live Feed
static char* path = "/dev/dvb/adapter0/dvr0" ;
AVFormatContext *pFormatCtx ;av_register_all() ;
avdevice_register_all() ;if(avformat_open_input(&pFormatCtx, path, NULL, NULL) != 0)
perror("avformat_open_input") ;
return -1 ;
else printf("Yay") ; -
Here's how I understand to how open a Live Feed
if(av_find_stream_info(pFormatCtx)<0)
printf("Could not find any Stream Information the file \"%s\"", path) ;
return -1 ;
// Dump information about file onto standard error
dump_format(pFormatCtx, 0, path, 0) ;
AVCodecContext *pCodecCtx ;// Find the first video stream
int videoStream=-1 ;
for(i=0 ; inb_streams ; i++)
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
{
videoStream=i;
break;
}if(videoStream==-1) return -1 ; // Didn't find a video stream
// Get a pointer to the codec context for the video stream
pCodecCtx=pFormatCtx->streams[videoStream]->codec ;AVCodec *pCodec ;
// Find the decoder for the video stream
pCodec=avcodec_find_decoder(pCodecCtx->codec_id) ;
if(pCodec==NULL)
fprintf(stderr, "Unsupported codec !\n") ;
return -1 ; // Codec not found
//Open codec
if(avcodec_open(pCodecCtx, pCodec)<0)
printf("Could not open the Codec") ;
return -1 ; // Could not open codec
So now how can you help me ?
I would really appreciate it if anyone knew how to open a live stream and could give me a good example.
-