Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (50)

  • 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 (...)

  • 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 (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (7185)

  • ffmpeg Grab Single Frame From Youtube Stream

    11 septembre 2021, par Rich_F

    I'm trying to grab a single frame of a streaming video on Youtube.

    


    This is an example

    


    This is the code structure I'm trying to use :

    


    ffmpeg --verbose -i $(youtube-dl -f 96 --no-playlist 'https://www.youtube.com/watch?v=XMs6LnT5mfk') -frames:1 -pred 1 clip1.jpg


    


    Trying to use youtube-dl to grab part of a stream, doesn't seem to work, and is actually throwing an ffmpeg error at me :

    


    [youtube] Q-44KECp-xQ: Downloading webpage
[youtube] Downloading just video Q-44KECp-xQ because of --no-playlist
[youtube] Q-44KECp-xQ: Downloading m3u8 information
[youtube] Q-44KECp-xQ: Downloading MPD manifest
[download] Destination: Ryde Esplanade & Pier, Isle of Wight UK _ Railcam LIVE 2021-09-11 03_25-Q-44KECp-xQ.mp4

ERROR: ffmpeg exited with code -9


    


    How can I achieve this ? I'm open to reworking this approach, or moving to something completely different. Cheers

    


  • ffmpeg - Convert files but keep Same Date Modification as Original ?

    9 septembre 2021, par user5894146

    So I want to start with that ffmpeg and powershell isn't really my strength but I have been using the following powershell command to convert every .flac file in a certain directory to a 320K file.

    


    dir *.flac | foreach {ffmpeg -i $_.FullName -c:v copy  -b:a 320k  $_.FullName.Replace('flac', 'mp3')}


    


    This works exactly how I want to without any album art being transcoded but I want to incorporate a way so that the new .mp3 files that are created have the SAME DATE MODIFICATION value of the .flac files. Is something like this even possible ?

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 9/8/2021


    


    should be instead

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 1/1/2010


    


    I have a folder of 6K files and want each original date modified to match the newly created files so if I can do the above command and also have the date mod time match within one execution, that would be ideal.

    


    I thought of manually changing each files mod time using 3rd party tools but it will be too time consuming.

    


  • Spaces in FFMPEG Input Thwart Execution

    2 septembre 2021, par Woolwit

    What's so baffling, is why spaces in the audio input seem to work fine, but spaces in the video input break things.
This fetches random images from a directory, pairs them with random audio clips and joins them into an mp4 video.

    


    def makeAudioImgMovs():
    randImgs = getImgs()
    compAudClips = makeAudioClips()
    audioJpgs = dict(zip(randImgs,compAudClips)) #Heres where we join the completed audio clips and the jpgs into a dict
    for jpg, aud in audioJpgs.items():
        print(f'The img is {jpg}, the type of the img is {type(jpg)} the aud is {aud} the type of the aud is {type(aud)}')
        subprocess.call('ffmpeg -hide_banner -loglevel error -loop 1 -i "{0}" -i "{1}"\
        -filter:v \
        "fade=in:st=0:d=1, fade=out:st=10:d=1,scale=720:480:force_original_aspect_ratio=decrease,pad=720:480:(ow-iw)/2:(oh-ih)/2,setsar=1" \
         -filter:a "afade=in:st=0:d=1, afade=out:st=10:d=1" \
        -c:v libx264 -t 11 -pix_fmt yuv420p -preset faster -shortest -c:a aac {2}.mp4'.format(jpg,aud,timePath/(pathlib.Path(jpg).stem)),shell=True)
makeAudioImgMovs()


    


    The print statement is writing what is in the dict of audioJpgs list. For example...

    


    The img is 2021-09-02-1-40/ponty_me.jpg, the type of the img is the aud is 2021-09-02-1-40/Jms Brn like it is like it was.aiff the type of the aud is

    


    The img is 2021-09-02-1-40/1966taxiToMassFromMomBack 2.tiff, the type of the img is the aud is 2021-09-02-1-40/Lola_Fay.mp3 the type of the aud is

    


    [NULL @ 0x7fe503021400] Unable to find a suitable output format for '2021-09-02-1-40/1966taxiToMassFromMomBack'
2021-09-02-1-40/1966taxiToMassFromMomBack : Invalid argument

    


    The img is 2021-09-02-1-40/1966taxiToMassFromMomBack 5.tiff, the type of the img is the aud is 2021-09-02-1-40/M Miller Lonnie's Lament.aiff the type of the aud is

    


    [NULL @ 0x7fd32a854c00] Unable to find a suitable output format for '2021-09-02-1-40/1966taxiToMassFromMomBack'
2021-09-02-1-40/1966taxiToMassFromMomBack : Invalid argument

    


    The img is 2021-09-02-1-40/10_021390_danny ? 1_jpg.jpg, the type of the img is the aud is 2021-09-02-1-40/i_got_to_rock.mp3 the type of the aud is

    


    [NULL @ 0x7f8449835800] Unable to find a suitable output format for '2021-09-02-1-40/10_021390_danny ?'
2021-09-02-1-40/10_021390_danny ? : Invalid argument

    


    The img is 2021-09-02-1-40/11_021390_danny_2_jpg.jpg, the type of the img is the aud is 2021-09-02-1-40/M Miller Power.aiff the type of the aud is

    


    The last pair of img/aud complete fine and write an mp4. Notice there, that the audio file has spaces in it !
Notice that the errors 'Invalid argument' get thrown where there is a space in the jpg file name.

    


    Help greatly appreciated.