Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (12)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans 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 (3873)

  • FFMPEG merge two .mp4 videos - resolution distorted

    9 juin 2016, par Misha Moryachok

    I am trying to merge two .mp4 videos, and in some cases the seconds video part is distorted in the output video. Providing an example below :
    https://www.youtube.com/watch?v=wWMNTBWJ37A

    The real video is : https://www.youtube.com/watch?v=ASio-j-Epi8

    As you can see, we added intro before the real content, however, the real content is stretched.
    In my opinion it happens because first video is 1280x720 and the second is 460x720.

    Providing commands for merging videos :

    *1st step (convert the videos from .mp4 to .ts)

    ffmpeg -i videoPathMP4 -c copy -bsf:v h264_mp4toannexb -f mpegts videoPathTS

    *2nd step (merge videos)

    ffmpeg -i "concat:$video1 | $video2" -c copy -bsf:a aac_adtstoasc $meagePathMP4

    Video output is like you saw in provided videolink on youtube.
    I also tried to change the first video resolution to be like the second video :

    ffmpeg -i inputVideo.mp4 -s 460x720 outputVideo.mp4

    However it doesn’t helped.
    Is anyone know how to solve this ?
    Thanks

  • Hide ffmpeg's console window when running YoutubeDL in GUI application

    23 juin 2016, par Slayther

    I’m developing a basic application which can download YouTube videos. Throughout the development, I had several quirks, including issues with formats.

    I decided to use a hopefully foolproof format syntax that youtube-dl will happily download for me in almost any case.

    Part of my YoutubeDL options look like this :

    self.ydl_opts = {
       'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
       'quiet': True,
       'progress_hooks': [self.ydl_progress],
       'outtmpl': None
    }

    The outtmpl is inserted later on when output folder is chosen by the user.

    Since I’m using this format string, youtube-dl uses ffmpeg to merge(?) the audio and video if they are downloaded separately.

    When it does that, it opens very annoying console windows that capture the focus and interrupt other things I might be doing while the videos are downloading.

    My question is, how can I prevent ffmpeg or youtube-dl from creating those console windows from appearing, aka. how can I hide them ?

    EDIT :

    I’ll provide bare bones script that reproduces the problem :

    from __future__ import unicode_literals
    from PyQt4 import QtGui, QtCore
    import youtube_dl, sys

    def on_progress(info):
       print info.get("_percent_str", "Finished")

    ydl_opts = {
       'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best',
       'progress_hooks': [on_progress],
       'quiet': True,
       'outtmpl': "C:/Users/Raketa/Desktop/%(title)s.%(ext)s"
    }

    ydl = youtube_dl.YoutubeDL(ydl_opts)

    class DownloadThread(QtCore.QThread):
       def __init__(self):
           super(DownloadThread, self).__init__()
           self.start()

       def __del__(self):
           self.wait()

       def run(self):
           print "Download start"
           ydl.download(["https://www.youtube.com/watch?v=uy7BiiOI_No"])
           print "Download end"

    class Application(QtGui.QMainWindow):
       def __init__(self):
           super(Application, self).__init__()
           self.dl_thread = DownloadThread()

       def run(self):
           self.show()

    def main():
       master = QtGui.QApplication(sys.argv)

       app = Application()
       app.run()

       sys.exit(master.exec_())

    if __name__ == '__main__':
       main()

    2(?) consoles appear at start of each download and 1 longer lasting console appears when both video and audio are downloaded. When downloading longer videos, the last console becomes unbearable.

    Is it possible to get rid of those ?

  • poster adjustment after getting it from video

    30 juin 2016, par Jass

    I am capturing poster from this video https://www.youtube.com/watch?v=wg-kEWsL6Xc using following code. Video can be any, I am just giving example.

    shell_exec('ffmpeg -y  -itsoffset -4  -i "'.base_path().'/assets/videos/'.$file_name.'.mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -filter:v scale=1170:ih*1170/iw "'.base_path().'/assets/videos/thumbnail/'.$file_name.'.jpg"')

    Width = 1170px,

    Height= 300px (as it is background image so it does not matter)

    But I am facing adjustment problem. Following are my current views

    First : Head is cutting, here I am using css property background : url(’completepath’) center no-repeat ;
    enter image description here

    Second : Showing black portion on top of head. This is the original image that I am getting from ffmpeg code.

    enter image description here

    My Question : But I need image like in you tube, you can notice that in all videos we can see top portion of humans without being cutting even black portion is well adjusted.

    Currently I am downloading and testing with youtube videos but in actual job seekers will make their own videos using android/iphone or any camera and will upload on our site.

    so how i can overcome this issue means show image with proper human face and body ?

    thanks in advance.