Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (56)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7137)

  • Creating video from list of images using ffmpeg

    13 août 2019, par haseeb

    Summary

    From given code, second function taking UI values and passing to first one. from log, first two lines shows command list and command string.

    What’s irritating me is, if I copied second line from log (dos cmd) and paste it in a cmd prompt, it works successfully and produces video correctly. but running it via gui subprocess, errors out.

    Task Description

    Directory contains thousand of images each after few minutes of a construction project. I need to create a video from data (images) per day basis. I have successfully extracted list of images, etc, and have data.

    utils.py :

    def framesToVideoViaCount(srcFile,outputFile,start,count,rate):
       # ffmpeg -start_number 1 -i test_%04d.png -vframes 100 -vcodec mpeg4 test.mp4
       # "C:\\Users\\lalat\\Desktop\\03008427633\\output_%04d.png"
       # ffmpeg -start_number 50 -i "C:\\Users\\lalat\\Desktop\\03008427633\\output_%04d.png" -vframes 200 -vcodec mpeg4 "C:\\Users\\lalat\\Desktop\\day1.mp4"
       command = [ 'ffmpeg',
                   # '-loglevel', 'fatal',
                   '-r %d' %(rate),
                   '-start_number %d' %(start) ,
                   '-i "%s"' %(srcFile),
                   '-vframes %d' %(count),
                   '-vcodec mpeg4' ]
       # command.append ('fps=%d' % (fps))
       command.append (outputFile)
       print ("COMMAND: " , command)
       print ("DOS CMD: ", ' '.join(command))
       ffmpeg = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE )
       out, err = ffmpeg.communicate()
       if(err) : print('error',err); return None;
       print (out)

    Actual GUI function call in tk gui app :

    def approachByCount(self):
       tdate = datetime(year=int(self.fyear.get()), month=int(self.fmonth.get()), day=int(self.fdate.get()))
       # now = datetime.datetime.now()
       outputName = str(tdate.strftime("%Y%m%d")) + ".txt"
       outputVid = str(tdate.strftime("%Y%m%d")) + ".mp4"
       files = os.listdir(self.userDir)
       selected = []
       for afile in files:
           afile = os.path.join(self.userDir,afile)
           sdate = datetime.fromtimestamp(os.path.getmtime(afile))
           if sdate.date() == tdate.date():
               selected.append(afile)
       # get first file name
       srcfilename = os.path.basename(selected[0])
       srcfilename,ext = srcfilename.split(".")
       filename,pad = srcfilename.split("_")
       srcfilename = os.path.join(self.userDir,filename+"_%0"+str(len(pad))+"d."+ext)
       start = int(pad)
       count = len(selected)
       utils.framesToVideoViaCount(srcfilename,outputVid,start,count,25)

    ERROR log

    COMMAND:  ['ffmpeg', '-r 25', '-start_number 1', '-i "C:\\Users\\lalat\\Desktop\\03008427633\\output_%04d.png"', '-vframes 382', '-vcodec mpeg4', '20190810.mp4']
    DOC CMD:  ffmpeg -r 25 -start_number 1 -i "C:\Users\lalat\Desktop\03008427633\output_%04d.png" -vframes 382 -vcodec mpeg4 20190810.mp4

    error b"ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers\r\n
    built with gcc 8.2.1 (GCC) 20181017\r\n
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth\r\n
    libavutil      56. 22.100 / 56. 22.100\r\n
    libavcodec     58. 35.100 / 58. 35.100\r\n
    libavformat    58. 20.100 / 58. 20.100\r\n
    libavdevice    58.  5.100 / 58.  5.100\r\n
    libavfilter     7. 40.101 /  7. 40.101\r\n
    libswscale      5.  3.100 /  5.  3.100\r\n
    libswresample   3.  3.100 /  3.  3.100\r\n
    libpostproc    55.  3.100 / 55.  3.100\r\n
    Unrecognized option 'r 25'.\r\n
    Error splitting the argument list: Option not found\r\n"
  • FFmpeg : Continuously download X minutes video from livestream ?

    16 février 2017, par Dorin Pleava

    I want to download X minutes from a livestream continuously and overwrite the same file, meaning the file will always have the latest X minutes from the livestream.

    Is there a way without calling the following command over and over again in a batch file ? Something that runs continuously from FFMPEG ?

    -i http://iphone-streaming.ustream.tv/uhls/17074538/streams/live/iphone/playlist.m3u8 -t 60 -y -c:a copy MyVideo.mp4
  • How do I access the ipod-library for decoding ffmpeg ?

    16 janvier 2014, par M_On

    Thank you to look at my question.

    There is a problem with too slow to access the music file using ffmpeg.

    Get the URL of the music that is in the ipod-library by using the 'valueForProperty:MPMediaItemPropertyAssetURL' method.

    Use the (AVAssetExportSession Class) TSLibraryImport.m, extract the music files from ipod-library.

    However, I took the extraction time is too long. (4 seconds of the 3GS iPhone, iPhone 5 is 1 second)

    It was not possible to be decoded using FFmpeg If you do not the Export.

    In order to use FFmpeg, it's AVPlayer can not be used.

    I will never forget the grace if you can answer if you folded to know how other maybe.