
Recherche avancée
Autres articles (51)
-
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 -
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 (...) -
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 (...)
Sur d’autres sites (4930)
-
HTML5 video (mp4) won't seek properly with Firefox 37/38/39 on Apache
10 juin 2015, par degenerateEdit : Turns out this is actually a Firefox bug.
Firefox will not seek properly past the loaded point in any mp4. It doesn’t matter what program encoded the file or where it came from ! I am hosting on Apache 2.2.29
Obvious things you will probably ask me :
- Yes I used
-movflags faststart
when encoding with ffmpeg - Yes
AddType video/mp4 .mp4
is set correctly - This is a new problem without any changes to the server ; only the newer firefox (version 36, 37, 38+) has this issue.
- Chrome works WONDERFULLY so this is a problem isolated to Firefox, and only started happening sometime in 2015 with one of the newer versions. Nothing was changed on the server.
Firefox makes hundreds of requests after seeking to any point in the mp4. The closer to the end of the file, the more requests are made. Eventually after several minutes it will stop sending requests and finish playing ; I assume when this happens it has downloaded the entire mp4.
Notice the byte-range request on chrome has a definitive size, yet all the requests one firefox are XXXXXX- with no ending byte...
(FIREFOX = BAD, hundreds of requests — right click image to see full resolution)
(CHROME = GOOD, one single request)
Regarding keep-alives : I tried turning keepalive on and off. I get the same results in both browsers. Chrome is always able to seek, firefox is never able to seek.
- Yes I used
-
Only 1 process is showing activity parallel foreach
18 janvier 2018, par TheHappyGuySo I am using a Parallel.Foreach because I want to start 4 unique processes that does essentially the same thing. Watermarks a video.
How it should work is that it should open 4 ffmpeg.exe and pass an argument to each window so it watermarks 4 videos at a time.
However.. That’s not what is happening, It opens 4 processes but only 1 is active. Not sure if it’s trying to use the same one 4 times or what ever it could be but I need help.When I close the working process, the 3 non working ones are still there until I manually close them down.
Here is a visual representationHere is a second image showing what happends when closing the working one
Here is the code :
public void Watermark()
{
Console.WriteLine("Please enter the directory with the mp4 files: ");
string EntryPath = Console.ReadLine();
//Console.WriteLine("Please enter the directory with the mp4 files: ");
//string OutputPath = Console.ReadLine();
var psi = new ProcessStartInfo();
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.FileName = "ffmpeg.exe";
int i = 0;
var videos = Directory.EnumerateFiles(EntryPath, "*.mp4");
Parallel.ForEach(videos, new ParallelOptions { MaxDegreeOfParallelism = 4 },
vid =>
{
try
{
//Maybe those processes are trying to work on the same file and can't access it?
//It's probably better to use the event Exited than WaitForExit
psi.Arguments = $"-i {vid} -i watermarker.png -threads 4 -filter_complex \"overlay = 275:350\" C:\\Users\\Developer\\Desktop\\Eh\\Watermarked{i}.mp4";
var p = Process.Start(psi);
p.WaitForExit();
Console.WriteLine($"{vid} is watermarked");
i++;
}
catch (Exception)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Error parsing that file");
Console.ForegroundColor = ConsoleColor.White;
}
});
Console.ReadLine();
} -
fluent-ffmpeg failed with zero output or errors
5 décembre 2023, par dcprimeI'm attempting to convert a
.webm
audio file to a.wav
audio file using fluent-ffmpeg. I've looked through all kinds of example code, but whenever I run my code I get no output or errors whatsoever :

import ffmpeg from 'fluent-ffmpeg';

function verifyAudio({ testFile }) {

 // parse file name for wav file from testFile
 const wavFile = testFile.split('.')[0] + '.wav';
 console.log(`wavFile: ${wavFile}`);

 // convert to wav file
 ffmpeg(testFile)
 .inputFormat('webm')
 .outputFormat('wav')
 .on('start', function(commandLine) {
 console.log('Spawned Ffmpeg with command: ' + commandLine);
 })
 .on('progress', (progress) => {
 console.log('Processing: ' + progress.targetSize + ' KB converted');
 })
 .on('end', function(err) {
 console.log('done!', err);
 })
 .on('error', function(err) {
 console.log('an error: ' + err);
 }).saveToFile(wavFile);
 console.log('finished conversion');
}

export { verifyAudio };



This function takes in the name of the input
.webm
file as an argument, and attempts to convert it to a.wav
file with filenamewavFile
. When this runs, I see the output ofconsole.log(
wavFile : $wavFile);
, I see the output ofconsole.log('finished conversion');
, but none of the.on
outputs in theffmpeg
call. No errors are raised at all. Not even when I insert a non-existent filename astestFile
. And no output file is generated (not even an empty one).

I have no idea what's going on here, since I have no output to debug on ! What is happening here ?


I've tried many combinations of defining inputs and outputs, including the various formats. I've tried doing the conversion on the command line using
ffmpeg
, it it works fine.

I'm expecting to see the output file : A
.wav
file with the filenamewavFile
. I see nothing.