
Recherche avancée
Autres articles (99)
-
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...) -
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (8736)
-
FFMPeg generated video : Audio has 'glitches' when uploaded to YouTube
7 octobre 2023, par CularBytesI've generated a voice from Azure AI Speech at 48KHz and 96K Bit Rate, generated a video of some stock footages and I'm trying to combine all of that with a background music.
The voice-over is generated per setence, so that I know how long each setence is and to include relevant video footage.


I'm using FFMpeg through the FFMpegCore nuget package.


The problem


After the video is complete with background music, I play it on my computer and it's perfect (no audio glitches, music keeps playing). But when uploaded to youtube it has 'breaks' in the music inbetween sentences (basically everytime a new voice-fragment is starting).


Example : https://www.youtube.com/watch?v=ieNvQ2TNq44


The code


All of the footage is combined with mostly
FFMpeg.Join(string output, string[] videos)
. These video files also contain the voice-overs (per sentance).

After that I try to add the music like this :


string outputTimelineWithMusicPath = _workingDir + $@"\{videoTitle}_withmusic.mp4";
 FFMpegArguments
 .FromFileInput(inputVideoPath)
 .AddFileInput(musicPath)
 .OutputToFile(outputPath, true, options => options
 .CopyChannel()
 .WithAudioCodec(AudioCodec.Aac)
 .WithAudioBitrate(AudioQuality.Good)
 .UsingShortest(true)
 .WithCustomArgument("-filter_complex \"[0:a]aformat=fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.05[1a];[0a][1a]amerge[a]\" -map 0:v -map \"[a]\" -ac 2"))
 .ProcessSynchronously();



I've tried to mess around with the CustomArgument, but so far no success.


For example, I thought removing
apad
from the argument so no 'blank spots' are added, should perhaps fix the issue. Also tried to useamix
instead ofamerge
.

Last try


I've tried to first make sure both files had the same sample rate, in the hope to fix the issue. So far, no success


string outputVideoVoicePath = _workingDir + $@"\{title}_voiceonly_formatting.mp4";
 string musicReplacePath = _workingDir + $@"\{title}_music_formatted.aac";
 FFMpegArguments
 .FromFileInput(inputVideoPath)
 .OutputToFile(outputVideoVoicePath, true, options => options
 .WithAudioCodec(AudioCodec.Aac)
 .WithAudioBitrate(128)
 .WithAudioSamplingRate(44100)
 )
 .ProcessSynchronously();
 
 FFMpegArguments
 .FromFileInput(music.FilePath)
 .OutputToFile(musicReplacePath, true, options => options
 .WithAudioCodec(AudioCodec.Aac)
 .WithAudioBitrate(256) //also tried 96 (which is original format)
 .WithAudioSamplingRate(44100)
 )
 .ProcessSynchronously();
 
 
 Console.WriteLine("Add music...");
 var videoTitle = Regex.Replace(title, "[^a-zA-Z]+", "");
 string outputTimelineWithMusicPath = _workingDir + $@"\{videoTitle}_withmusic.mp4";
 FFMpegArguments
 .FromFileInput(outputVideoVoicePath)
 .AddFileInput(musicReplacePath)
 .OutputToFile(outputTimelineWithMusicPath, true, options => options
 .CopyChannel()
 .WithAudioCodec(AudioCodec.Aac)
 .WithAudioBitrate(AudioQuality.Good)
 .UsingShortest(true)
 .WithCustomArgument("-filter_complex \"[0:a]aformat=fltp:44100:stereo[0a];[1]aformat=fltp:44100:stereo,volume=0.05[1a];[0a][1a]amix=inputs=2[a]\" -map 0:v -map \"[a]\" -ac 2"))
 .ProcessSynchronously();
 return outputTimelineWithMusicPath;



I'm not much of an expert when it comes to audio/video codecs. I do scale each stock video to 24fps, 1920x1080 and the music has a original bitrate of 256Kbps / 44100 sample rate (so I probably don't even have to convert the audio file).


-
How to use YouTube-dl to stream from Bloomberg TV ?
1er janvier 2020, par Mr. Demetrius MichaelAny help would be appreciated !
This isn’t getting the correct stream from Bloomberg LiveTV, and I’m unsure why and how to fix.
$ youtube-dl https://www.bloomberg.com/live
Here’s a snippet of the errors that I get from that link :
[mp4 @ 0x7ffd13860c00] Invalid DTS: 9009 PTS: 3003 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 12012 PTS: 9009 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 21021 PTS: 15015 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 24024 PTS: 21021 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 33033 PTS: 27027 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 36036 PTS: 33033 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 45045 PTS: 39039 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 48048 PTS: 45045 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 57057 PTS: 51051 in output stream 0:0, replacing by guess
[mp4 @ 0x7ffd13860c00] Invalid DTS: 60060 PTS: 57057 in output stream 0:0, replacing by guess
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=963063, dts=969069, size=12512
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=969069, dts=972072, size=12513
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=963063, dts=969069, size=12512
[mp4 @ 0x7ffd13860c00] Invalid DTS: 69069 PTS: 63063 in output stream 0:0, replacing by guess
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=969069, dts=972072, size=12513
[mp4 @ 0x7ffd13860c00] Invalid DTS: 72072 PTS: 69069 in output stream 0:0, replacing by guess
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=975075, dts=981081, size=12512
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=981081, dts=984084, size=12513
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=975075, dts=981081, size=12512
[mp4 @ 0x7ffd13860c00] Invalid DTS: 81081 PTS: 75075 in output stream 0:0, replacing by guess
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=981081, dts=984084, size=12513
[mp4 @ 0x7ffd13860c00] Invalid DTS: 84084 PTS: 81081 in output stream 0:0, replacing by guess
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=987087, dts=993093, size=12512
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=993093, dts=996096, size=12513
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=987087, dts=993093, size=12512
[mp4 @ 0x7ffd13860c00] Invalid DTS: 93093 PTS: 87087 in output stream 0:0, replacing by guess
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=993093, dts=996096, size=12513
[mp4 @ 0x7ffd13860c00] Invalid DTS: 96096 PTS: 93093 in output stream 0:0, replacing by guess
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=999099, dts=1005105, size=12512
[mpegts @ 0x7ffd14810000] Invalid timestamps stream=0, pts=1005105, dts=1008108, size=12513
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=999099, dts=1005105, size=12512
[mp4 @ 0x7ffd13860c00] Invalid DTS: 105105 PTS: 99099 in output stream 0:0, replacing by guess
[hls @ 0x7ffd14000400] Invalid timestamps stream=0, pts=1005105, dts=1008108, size=12513Ideally I would be able to get all of their available programming :
https://www.bloomberg.com/live/us
https://www.bloomberg.com/live/us/btv
https://www.bloomberg.com/live/europe
https://www.bloomberg.com/live/asia
https://www.bloomberg.com/live/australia
https://www.bloomberg.com/live/stream
https://www.bloomberg.com/live/emea
https://www.bloomberg.com/live/asia_stream
https://www.bloomberg.com/live/politics -
ffmpeg 360 Video Conversion - EAC (Youtube) to Equirectangular
18 juillet 2022, par chanteyI have this top-bottom 360 Video, where the bottom is rotated 90 degrees clockwise, and I am looking for the ffmpeg command to produce a singular equirectangular output. I've been experimenting with various ffmpeg 360 filters, but am really just guessing at this point.