Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (62)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (6865)

  • .exe file, works different than .py file

    29 août 2024, par r_b

    I've made the YouTube Dowbloader App. Everything is working properly (run in PyCharm), but when I try to make it into an executable with pyinstaller, it does not work.

    


    This is the link to the repo :

    


    YouTube Downloader

    


    Command for making exe file :
pyinstaller project.spec

    


    project.spec file :

    


    # project.spec
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
    ['gui.py'],
    pathex=['.'],
    binaries=[],
    datas=[('static_files/*', 'static_files')],
    hiddenimports=[],
    hookspath=[],
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='YouTube Downloader',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    icon='static_files/logo.ico'
)
coll = COLLECT(
    exe,
    a.binaries,
    a.zipfiles,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='YouTube Downloader'
)

app = BUNDLE(
    coll,
    name='YouTube Downloader',
    icon='static_files/logo.ico',
    bundle_identifier=None
)


    


    The file structure :

    


    project/
├── backend.py
├── gui.py
├── temp_mp3 # temporary mp3 for Audio player
├── static_files/
│   ├── icon.ico
│   ├── image1.png
│   ├── image2.png
│   └── setup.json  # setup.json file
└── project.spec


    


    Search block diagram :
Search block diagram

    


    After searching and fetching the YouTube URL, the app downloads an MP3 file (in temp_mp3) for the audio player section.

    


    And here is the difference between .exe and the .py, when I run .exe the APP downloads the audio segment from the URL in .webm format and stops there. Even if the format is different, it should be converted to MP3 (in PyCharm does).

    


    Find possible problem with moviepy/ffmpeg.exe (library for converting files).

    


    project.spec

    


    a = Analysis(
    ['gui.py'],
    pathex=['.'],
    binaries=[('C:\\path\\to\\ffmpeg\\bin\\ffmpeg.exe', 'ffmpeg')],
    datas=[('static_files/*', 'static_files')],


    


    Added binaries => path to ffmpeg.exe , but it still doesn't work.

    


  • Combine images into a movie

    10 mars 2014, par Maged E William

    My project is to record Desktop as video daily,

    now i get to the point of record the desktop as images in *.jpeg i need to combine them as video, i don't know much about ffmpeg but i have seen this article, and i wonder if i can make all this as press of a button in C#, so i can combine the images then delete them on the form load or something

    EDIT :
    now i got the code : ffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi but i don't know where to type that in my project !

  • Android.mk file shows error in path in android

    13 juin 2015, par Harry

    I am working on part of a project for compressing the video,
    I followed the below example,

    https://bitbucket.org/YLKwan/videocompressor/
    while Importing the project in eclipse it shows error in Android.mk file under below path :

    "VideoCompressor / VideoCompressor / jni / Android.mk"

    currently, I have my NDK installed path below :

    "/home/Harryxxx/android/android-ndk-r10e/sources/ffmpeg-2.6.3/android/armv7-a"

    so, should I need to replace this path somewhere in this above file.
    Please help me out, Thanks in advance