
Recherche avancée
Autres articles (64)
-
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 -
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 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8159)
-
How to rename the .wav file which is going to download using the below program ?
29 avril 2020, par Y V Sravan Kumar Reddyfrom __future__ import unicode_literals
import youtube_dl

ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'wav',
 'preferredquality': '192'
 }],
 'postprocessor_args': [
 '-ar', '16000'
 ],
 'prefer_ffmpeg': True,
 'keepvideo': True
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download(['https://www.youtube.com/watch?v=JpjEwIceVIo'])






Output :



[youtube] JpjEwIceVIo: Downloading webpage
[download] Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.webm has already been downloaded
[download] 100% of 1.69MiB
[ffmpeg] Destination: Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.wav






I want to change the filename to audio1.wav instead of Speech on Importance of Education in English for Higher Secondary students by Smile Please World-JpjEwIceVIo.wav. Please help me with this problem.


-
RTSP to RTMP using FFMPEG on Raspberry Pi to YouTube Livestream ends prematurely (and sometimes doesn't start)
12 mars 2021, par user203875I have been running a program from my raspberry pi 4 that converts a RTSP network camera feed to RTMP for YouTube. The stream used to run non-stop every day. I didn't have to do anything. I have a program in place that would restart if the feed died.


Nothing has changed with that program in 2 years. About a month ago, the feed stopped working. I just started into trying to figure out why. Maybe someone has some ideas on what is going on ?


In order for me to start the feed, I must also start a studio.youtube.com browser session showing the feed information. If that web page is up and running, the live stream will start. While I can't say for certain that it NEVER starts without this session running, it seems that way.


Usually the stream lasts for an hour or two. Rarely more than four hours.


When I start up a studio.youtube.com session after the stream dies the "Dimiss" or "Edit in Studio" message is on the page. I have to hit "dismiss" before I can start up the stream again.


Is there a solution to this ?


Again, my program didn't change, so I'm at a loss for what I can do to fix this.


-
How can we reduce the size of audio file after uploading ?
8 novembre 2019, par Arjun PujariI have used this command in the terminal to install the package :
composer require pbmedia/laravel-ffmpeg
. The package is successfully downloaded, but I don’t know how to use it. I don’t even know if this package can also reduce the audio file size or not.Anyone know any other library or package ?
<form action="{{route('upload')}}" method="post" enctype="multipart/form-data">
Select Audio to upload:
<input type="file" />
<input type="submit" value="upload MP3" />
</form>
<?phpHere is my controller. Write basic code for save file :
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Pbmedia\LaravelFFMpeg\FFMpeg;
class FileCompress extends Controller
{
public function compressFile(Request $request)
{
$uploadFileName = mt_rand().time(). '.' . $file->getClientOriginalExtension();
$filetype = substr($file->getClientMimeType(), 0, strpos($file->getClientMimeType(), "/"));
if($filetype == 'video'){
$localpath = public_path().'/videos/'.$uploadFileName;
//code for video file compress.
}else{
//code for audio file compress.
}
}
}But I need to reduce the audio file size when a file is uploaded or reduce the file size immediately after the file upload. How can i do that ?