
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (7408)
-
Extracting a bit broken AC3 audio from a video file
3 janvier 2023, par WYSIWYGI Googled for about 2 hours for this problem and I can't seem to find the answer anywhere.


So I have a 1080p video file which has about 2 seconds within it that's broken (at 3 minutes and 53 seconds). I found a way to extract the non-broken parts of it, also I got a replacement for the broken frames from another version of the same video (in 720p), upscaled them to 1080p and replaced them in the 1080p file (reencoding the whole file in the process). Here comes the problematic part - at the same time (3 min 53 sec), the audio is also broken and it's in Dolby Digital 5.1 AC3 format. When I try to extract the audio track from the original 1080p file and place the result in the new fixed version, which contains the upscaled video frames, the audio obviously is cut at the problematic 2 seconds and it desyncs (starts to play earlier) for the rest of the file.


What I want to do and I'm unable to understand how to do it is to extract the AC3 stream in such a way that the 2 broken seconds are filled with silence and the total length of the audio stay the same as the original, so it won't desync. Is this possible and if it is, what is the correct FFMPEG command for it ?


Thank you in advance.


I've tried :


ffmpeg -i broken.mkv -c:a copy audio.ac3


which presented an output AC3 file, which is missing the 2 seconds from 03:53 to 03:55


so when I combine the resulting AC3 file with the repaired video, by using :


ffmpeg -i fixed.mkv -i audio.ac3 -c copy fixed-with-audio.mkv


it is desynced, so at video time 03:53 I hear the audio that should play at 03:55


-
Videoconverter.js simple help command not working in node.js
13 juin 2014, par Vinz243I am trying tu run a basic help command with videoconverter.js
eval(fs.readFileSync("./ffmpeg-all-codecs.js", "utf-8"))
var result = ffmpeg_run({
print: console.log,
printErr: console.log,
files: [],
arguments: ["-h"],
TOTAL_MEMORY: 268435456
// Can play around with this option - must be a power of 2
// TOTAL_MEMORY: 268435456
});
console.log(result);
console.log("Done");And the output
$ node test
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 9 2014 20:24:32 with emcc (Emscripten GCC-like replacement) 1.12.0 (commit 6960d2296299e96d43e694806f5d35799ef8d39c)
configuration: --cc=emcc --prefix=/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist --extra-cflags='-I/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/include -v' --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --disable-ffplay --disable-ffprobe --disable-ffserver --disable-asm --disable-doc --disable-devices --disable-pthreads --disable-w32threads --disable-network --disable-hwaccels --disable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs --enable-protocol=file --enable-libvpx --enable-gpl --extra-libs='/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libx264.a /Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libvpx.a'
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 9 2014 20:24:32 with emcc (Emscripten GCC-like replacement) 1.12.0 (commit 6960d2296299e96d43e694806f5d35799ef8d39c)
configuration: --cc=emcc --prefix=/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist --extra-cflags='-I/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/include -v' --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --disable-ffplay --disable-ffprobe --disable-ffserver --disable-asm --disable-doc --disable-devices --disable-pthreads --disable-w32threads --disable-network --disable-hwaccels --disable-parsers --disable-bsfs --disable-debug --disable-protocols --disable-indevs --disable-outdevs --enable-protocol=file --enable-libvpx --enable-gpl --extra-libs='/Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libx264.a /Users/bgrinstead/Sites/videoconverter.js/build/ffmpeg/../dist/lib/libvpx.a'
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
undefined
DoneSo I am not getting the help like here https://bgrins.github.io/videoconverter.js/demo/. Why ? How to solve that ?
I am using nodejs x64 under windows 7 x64 -
FFmpeg, videotoolbox and avplayer in iOS
9 janvier 2017, par Hwangho KimI have a question how these things are connected and what they exactly do.
FYI, I have a few experience about video player and encoding and decoding.
In my job I deal udp streaming from server and take it with ffmpeg and decodes it and draw it with openGL. And also using ffmpeg for video player.
These are the questions...
1. Only ffmpeg can decodes UDP streaming (encoded with ffmpeg from the server) or not ?
I found some useful information about videotoolbox which can decode streaming with hardware acceleration in iOS. so could I also decode the streaming from the server with videotoolbox ?
2. If it is possible to decode with videotoolbox (I mean if the videotoolbox could be the replacement for ffmpeg), then what is the videotoolbox source code in ffmpeg ? why it is there ?
In my decoder I make AVCodecContext from the streaming and it has hwaccel and hwaccel_context field which set null both of them. I thought this videotoolbox is kind of API which can help ffmpeg to use hwaccel of iOS. But it looks not true for now...
3. If videotoolbox can decode streaming, Does this also decode for H264 in local ? or only streaming possible ?
AVPlayer is a good tool to play a video but if videotoolbox could replace this AVPlayer then, what’s the benefit ? or impossible ?
4. FFmpeg only uses CPU for decoding (software decoder) or hwaccel also ?
When I play a video with ffmpeg player, CPU usage over 100% and Does it means this ffmpeg uses only software decoder ? or there is a way to use hwaccel ?
Please understand my poor english and any answer would be appreciated.
Thanks.