Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (40)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (5093)

  • PyQt-thread. Get dynamically output

    1er janvier 2020, par ZPro

    I use PyQt-thread for parallel conversion of mp3 files to aac via ffmpeg.
    Here is my code :

    class SubprocessThread(QThread):
       signal = pyqtSignal('PyQt_PyObject')

       def __init__(self, command, args):
           QThread.__init__(self)
           self.command = command
           self.args = args

       def __del__(self):
           self.wait()

       def run(self):
           output = subprocess.check_output('{0} {1}'.format(self.command, self.args), shell=True).split()
           self.signal.emit(output)

    And here is example of usage :

    threads = []

    for part in parts.keys():
       args = "-i \'{0}.mp3\' -c:a aac -b:a {1}k \'{2}.m4a\'".format(
           os.path.join(tmp_dir, str(part)),
           int(self.bitrate_cbx.currentText()),
           os.path.join(tmp_dir, str(part)))
       print(args)  # debug
       ffmpeg_thread = SubprocessThread('ffmpeg', args)
       ffmpeg_thread.signal.connect(self.on_data_ready)
       threads.append(ffmpeg_thread)
       ffmpeg_thread.start()
       self.threads_count += 1

    I want to make progress bar, based on conversion, but ffmpeg always updates last string in his output (when conversion in progress).
    Here is an example of ffmpeg output while files are converting :

    user@host$ ffmpeg -i '/home/user/001.mp3' -c:a aac -b:a 128k -vn '/home/user/test.m4a'
    ffmpeg version n4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.0 (GCC)
     configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, mp3, from '/home/user/001.mp3':
     Metadata:
       encoder         : Lavf57.41.100
       title           : test
       artist          : test
       album_artist    : test
       album           : test
       composer        : test
       genre           : test
       date            : 2018
     Duration: 00:12:38.02, start: 0.025056, bitrate: 192 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
       Metadata:
         encoder         : Lavc57.48
       Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
       Metadata:
         comment         : Cover (front)
    Stream mapping:
     Stream #0:0 -> #0:0 (mp3 (mp3float) -> aac (native))
    Press [q] to stop, [?] for help
    Output #0, ipod, to '/home/user/test.m4a':
     Metadata:
       date            : test
       title           : test
       artist          : test
       album_artist    : test
       album           : test
       composer        : test
       genre           : test
       encoder         : Lavf58.29.100
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc58.54.100 aac
    size=   12107kB time=00:12:38.01 bitrate= 130.8kbits/s speed=79.2x

    How can I receive this data (string, that begins from "size=...") from my parallel QThreads to calculate overall progress ?

  • ffmpeg set output resolution by resizing image

    3 janvier 2020, par Martin

    I’m trying to use ffmpeg for rendering video where an audio file and image are taken as inputs, and turned into a video (basically a music video) with the audio file playing for the duration of the video.

    My current working command :

    ffmpeg -loop 1 -framerate 2 -i "front.png" -i "testWAVfile.wav" -vf "scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1,format=yuv420p" -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a aac -shortest -vf scale=1920:1080  "outputVideo.mp4"

    Will set the output resolution of the video to whatever the resolution of the image is. Is there a way I can resize the image to enlarge it by a couple multiplications so that the output video resolution will be higher ?

    Like if my front.png image was 800x800 pixels, I could add something to my ffmpeg command to triple the resolution, so that the output video resolution is 2400x2400 ?

  • PyQt-thread. Get dynamicly output

    1er janvier 2020, par ZPro

    I use PyQt-thread for parallel conversion of mp3 files to aac via ffmpeg.
    Here is my code :

    class SubprocessThread(QThread):
       signal = pyqtSignal('PyQt_PyObject')

       def __init__(self, command, args):
           QThread.__init__(self)
           self.command = command
           self.args = args

       def __del__(self):
           self.wait()

       def run(self):
           output = subprocess.check_output('{0} {1}'.format(self.command, self.args), shell=True).split()
           self.signal.emit(output)

    And here is example of usage :

    threads = []

               for part in parts.keys():
                   args = "-i \'{0}.mp3\' -c:a aac -b:a {1}k \'{2}.m4a\'".format(
                       os.path.join(tmp_dir, str(part)),
                       int(self.bitrate_cbx.currentText()),
                       os.path.join(tmp_dir, str(part)))
                   print(args)  # debug
                   ffmpeg_thread = SubprocessThread('ffmpeg', args)
                   ffmpeg_thread.signal.connect(self.on_data_ready)
                   threads.append(ffmpeg_thread)
                   ffmpeg_thread.start()
                   self.threads_count += 1

    I want to make progress bar, based on conversion, but ffmpeg always updates last string in his output (when conversion in progress).
    Here is an example of ffmpeg output while files are converting :

    user@host$ ffmpeg -i '/home/user/001.mp3' -c:a aac -b:a 128k -vn '/home/user/test.m4a'
    ffmpeg version n4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.0 (GCC)
     configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, mp3, from '/home/user/001.mp3':
     Metadata:
       encoder         : Lavf57.41.100
       title           : test
       artist          : test
       album_artist    : test
       album           : test
       composer        : test
       genre           : test
       date            : 2018
     Duration: 00:12:38.02, start: 0.025056, bitrate: 192 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 192 kb/s
       Metadata:
         encoder         : Lavc57.48
       Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
       Metadata:
         comment         : Cover (front)
    Stream mapping:
     Stream #0:0 -> #0:0 (mp3 (mp3float) -> aac (native))
    Press [q] to stop, [?] for help
    Output #0, ipod, to '/home/user/test.m4a':
     Metadata:
       date            : test
       title           : test
       artist          : test
       album_artist    : test
       album           : test
       composer        : test
       genre           : test
       encoder         : Lavf58.29.100
       Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc58.54.100 aac
    size=   12107kB time=00:12:38.01 bitrate= 130.8kbits/s speed=79.2x

    How can I receive this data (string, that begins from "size=...") from my parallel QThreads to calculate overall progress ?