
Recherche avancée
Autres articles (44)
-
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (8267)
-
Google’s YouTube Uses FFmpeg
9 février 2011, par Multimedia Mike — GeneralControversy arose last week when Google accused Microsoft of stealing search engine results for their Bing search engine. It was a pretty novel sting operation and Google did a good job of visually illustrating their side of the story on their official blog.
This reminds me of the fact that Google’s YouTube video hosting site uses FFmpeg for converting videos. Not that this is in the same league as the search engine shenanigans (it’s perfectly legit to use FFmpeg in this capacity, but to my knowledge, Google/YouTube has never confirmed FFmpeg usage), but I thought I would revisit this item and illustrate it with screenshots. This is not new information— I first empirically tested this fact 4 years ago. However, a lot of people wonder how exactly I can identify FFmpeg on the backend when I claim that I’ve written code that helps power YouTube.
Short Answer
How do I know YouTube uses FFmpeg to convert multimedia ? Because :- FFmpeg can decode a number of impossibly obscure multimedia formats using code I wrote
- YouTube can transcode many of the same formats
- I screwed up when I wrote the code to support some of these weird formats
- My mistakes are still present when YouTube transcodes certain fringe formats
Longer Answer (With Pictures !)
Let’s take a video format named RoQ, developed by noted game designer Graeme Devine. Originated for use in the FMV-heavy game The 11th Hour, the format eventually found its way into the Quake 3 engine as well as many games derived from the same technology.Dr. Tim Ferguson reverse engineered the format (though it would later be open sourced along with the rest of the Q3 engine). I wrote a RoQ playback system for FFmpeg, and I messed up in doing so. I believe my coding error helps demonstrate the case I’m trying to make here.
Observe what happened when I pushed the jk02.roq sample through YouTube in my original experiment 4 years ago :
Do you see how the canyon walls bleed into the sky ? That’s not supposed to happen. FFmpeg doesn’t do that anymore but I was able to go back into the source code history to find when it did do that :
Academic Answer
FFmpeg fixed this bug in June of 2007 (thanks to Eric Lasota). The problem had to do with premature colorspace conversion in my original decoder.Leftovers
I tried uploading the video again to see if the problem persists in YouTube’s transcoder. First bit of trivia : YouTube detects when you have uploaded the same video twice and rejects the subsequent attempts. So I created a double concatenation of the video and uploaded it. The problem is gone, illustrating that the backend is actually using a newer version of FFmpeg. This surprises me for somewhat esoteric reasons.Here’s another interesting bit of trivia for those who don’t do a lot of YouTube uploading— YouTube reports format details when you upload a video :
So, yep, RoQ format. And you can wager that this will prompt me to go back through the litany of unusual formats that FFmpeg supports to see how YouTube responds.
-
Powershell : Start-Job a script, cannot connect to youtube
16 mai 2016, par Kostas GeorgokitsosI am a bit new to PS, so please bear with me. I have written a script that starts an
ffmpeg
proccess, and in an endless loop waits for the process, and restarts it asffmpeg
is a bit shaky.ffmpeg
is taking an rtsp stream from a camera and forwards it to youtube.# initialization
$buffer_size = "30720k" # 60 sec * 512kbps
$ffm = "C:\Users\kostas\Downloads\_software\ffmpeg-20160308-git-5061579-win32-static\bin\ffmpeg.exe"
$params = "-f lavfi -i aevalsrc=0 -thread_queue_size 512 -i rtsp://$($usr):$($pw)@$($cam_ip):554/mpeg-4/ch1/main//av_stream/ -f flv -vcodec copy -acodec aac -bufsize $($buffer_size) rtmp://a.rtmp.youtube.com/live2/$($youtube_key)"
$params_bak = $params.Replace('/live2/','/live2/?backup=1/')
# start stream(s)
while (1 -eq 1) {
$err_log = "C:\Users\kostas\Documents\logs\Stream_Error-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
$out_log = "C:\Users\kostas\Documents\logs\Stream-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
$strm_app = Start-Process $ffm $params -PassThru -WindowStyle Minimized -RedirectStandardError $err_log -RedirectStandardOutput $out_log
Wait-Process $strm_app.Id
}When I call the script from the powershell prompt directly like
.\youtube_cam_1.ps1
all is well, but the powershell prompt locks, obviously.When I start like
Start-Job -FilePath C:\Users\kostas\Documents\youtube_cam_1.ps1
the job starts allright and I also see the ffmpeg process starting and running, but the youtube channel stays offline. Now to the funny bit : doingStop-Job
does not kill theffmpeg
process, and suddenlyffmpeg
can connect to youtube.I want to start and run several camera streams (i.e.
ffmpeg
instances) in the end and need the looping script to somehow go into the background. IsStart-Job
the wrong way to do it ?What is happening ?
-
I can no longer convert an mp4 video that is downloaded from YouTube to .wav file using ffmpeg [closed]
25 juillet 2024, par user3288051I can no longer convert an mp4 video that is downloaded from YouTube to .wav file using ffmpeg.


Here is the command I am using :


video_name = "my_video_file"
dir_name = "experiment/john_doe/"

command = f'ffmpeg -i {dir_name}{video_name}.mp4 -ab 160k -ar 44100 -vn {dir_name}{video_name}.wav'

try:
 subprocess.check_call(command, shell=True)
except Exception as ex:
 print("Error: " + str(ex))



Unfortunately, I get the following error :




Output #0, wav, to 'experiment/john_doe/my_video_file.wav' : [out#0/wav
@ 0x1526131c0] Output file does not contain any stream Error opening
output file experiment/john_doe/James_Murphy2.wav. Error opening
output files : Invalid argument Error : Command 'ffmpeg -i
experiment/john_doe/my_video_file.mp4 -ab 192k -ac 2
experiment/john_doe/my_video_file.wav' returned non-zero exit status
234.




Did YouTube change its codec ?


Here is my video file in case you would like to give it a try. I downloaded it from my own YouTube channel (my own video).


I would appreciate your help.