Recherche avancée

Médias (91)

Autres articles (19)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à 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) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (4705)

  • Powershell : Start-Job a script, cannot connect to youtube

    16 mai 2016, par Kostas Georgokitsos

    I 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 as ffmpeg 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 : doing Stop-Job does not kill the ffmpeg process, and suddenly ffmpeg 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. Is Start-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 user3288051

    I 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.

    


  • FFMPEG Subtitle Burning - Make Them Look Like Youtube Captions

    21 septembre 2016, par Spencer

    I want to burn subtitles into videos and make them look as close to the YouTube captions as possible. I’ve gotten pretty close with the following :

    ffmpeg -i VIDEOFILE.mkv -vf subtitles="f=SUBSFILE.vtt:force_style='FontName=Arial,FontSize=14,OutlineColour=&H55000000,BorderStyle=3,WrapStyle=2'" -y ENCODED-WITH-SUBS.mp4

    1. The major thing I want to fix in the above command is that when there are multiple lines, the backgrounds overlap.

    enter image description here

    If you look at captions on YouTube there is always a nice small amount of space between the backgrounds.

    enter image description here

    2. The second thing I’d like to do is make the corners of the backgrounds rounded if possible.

    I’ve looked through the documentation but I’m hoping I missed something. Thanks for any suggestions !