
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (77)
-
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 (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...)
Sur d’autres sites (5405)
-
FFMPEG File Output is Still in Use By a Process
4 août 2021, par Tyler BaconI am trying to complete this part of my program. In this section, I am trying to speed up or slow down a video based on a factor variable. Once it's done, I use moviepy to turn it into a VideoFileClip, then I delete the file.


if factor <= 2:
 system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS -an ./Media/Videos/temp.mp4")
 system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
 elif 2 < factor < 4:
 factor = round(sqrt(factor), 1)
 system("ffmpeg -i " + paths[dex] + " -vf setpts=" + str(vfactor) + "*PTS,setpts=" + str(vfactor) + "*PTS -an ./Media/Videos/temp.mp4")
 system("ffmpeg -i " + paths[dex] + " -filter:a atempo=" + str(factor) + ",atempo=" + str(factor) + " -vn ./Media/ShortSounds/temp.mp3")
 elif factor > 4:
 raise Exception("File " + paths[dex] + " is too long.")
 t = VideoFileClip("./Media/Videos/temp.mp4")
 t.audio = AudioFileClip("./Media/Videos/temp.mp3")
 templist.append(t)
 remove("./Media/Videos/temp.mp4")



However, when the code gets to the deletion command, it has the following error :


PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: './Media/Videos/temp.mp4'



What's strange is, I can see the temp.mp4 file, and it runs just fine. I never get this error while manually running the temp.mp4 file.


I have tried the following :


- 

- Waiting 5, 10, and 20 seconds before deleting the file.
- Running "taskkill -f -im ffmpeg.exe" before deleting the file
- I went through the debugger, and right before the deletion, I checked in task manager to see if ffmpeg was still running, and it wasn't.








Do you guys have any idea what could be holding this up ? My code worked previously when I was trying to just do audio, but I am trying it with video and this is happening.


-
Laravel Spatie - Spatie\MediaLibrary\Jobs\PerformConversions Job Failed
5 février 2019, par Tout Nu Les ChinoisI have an issue with Laravel Spatie’s media conversion OR Redis.
I’m working in TDD, so all my test passed success, even conversion.
For an input file sample.flv I have my files as expected..But when perform integration test my Jobs failed when they are queued.. (redis) And I have no logs.....
Do you already have trouble with jobs and conversion ?
I am Using Laravel Spatie and Laravel-ffmpeg.
The chained job
ProcessPost::withChain([
new AssociateMedias($post, $filenames),
new AssociateTags($post, $tags, $user),
new ActivatePost($post),
new AttributeBadge('post', $user),
new UpdateScore(100, $user)
])->dispatch($post)->allOnQueue('default');Here my Assoc Job
public function handle()
{
array_map(function($name){
$this->mediable->associate(UploadFiles::getTempDir() . $name);
}, $this->filenames);
}Here the assoc function in my Media trait
/**
* @param $path
* @return Media
* @throws DiskDoesNotExist
* @throws FileDoesNotExist
* @throws FileIsTooBig
*/
public function associateVideo($path){
$media = $this->addMedia($path)
->toMediaCollection('videos');
VideoConverter::toHls(
'public',
$media->originalPath(),
$media->streamPath()
);
VideoConverter::toMp4(
'public',
$media->originalPath(),
$media->downloadPath()
);
Storage::disk('public')->delete($media->originalPath());
return $media;
}And here my Conversion lib
static function toMp4($disk, $path, $to) {
$lowBitrateFormat = (new X264('aac'))->setKiloBitrate(500);
FFMpeg::fromDisk($disk)
->open($path)
->addFilter(function ($filters) {
$filters->resize(new Dimension(960, 540));
})
->export()
->inFormat($lowBitrateFormat)
->save($to);
} -
How to streaming audio with ffmpeg and container of my own choosing ? [closed]
2 octobre 2024, par xchg.caI'm streaming an ac3 audio via rtsp using ffmpeg like this :


> ffmpeg -re -f ac3 -i sample4.ac3 -ar 8000 -f mulaw -f rtsp rtsp://10.22.22.11:8554/audiostream



In the RTSP protocol exchange it DESCRIBEd like this :


> Session Description Protocol
> Session Description Protocol Version (v): 0
> Owner/Creator, Session Id (o): - 0 0 IN IP4 127.0.0.1
> Session Name (s): No Name
> Connection Information (c): IN IP4 0.0.0.0
> Time Description, active time (t): 0 0
> Media Description, name and address (m): audio 0 RTP/AVP 96
> Media Attribute (a): control:rtsp://10.22.22.11:8554/audiostream/trackID=0
> Media Attribute (a): rtpmap:96 mpeg4-generic/8000/2
> Media Attribute (a): fmtp:96 config=1590; indexdeltalength=3; indexlength=3; mode=AAC-hbr; profile-level-id=1; sizelength=13;
> streamtype=5



I wondering if I can specify specific container in ffmpeg command line while keeping media format the same. For example I want MPEG-TS container instead of mpeg4. Looking through the ffmpeg docs did not really helped me.