Recherche avancée

Médias (91)

Autres articles (83)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

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

  • ffserver configuration vs ffmpeg parameters

    7 janvier 2015, par bogdanioan.gabor

    I’m not understanding which is the priority when you’re setting movflags (and other parameters) in the ffmpeg, but also into the ffserver.
    Example :

    I have the ffserver configuration like that :

    Port 8080
    BindAddress 0.0.0.0
    MaxHTTPConnections 10
    MaxClients 10
    MaxBandwidth 40000

    <feed>
       File /tmp/feed.ffm
       Feed feed.ffm

       VideoCodec libx264
       AVOptionVideo flags +global_header
       AVOptionVideo movflags faststart+frag_key_frame+empty_moov

       NoAudio
    </feed>

    And the ffmpeg command :

    ffmpeg -rtsp_transport tcp -i "rtsp://x.x.x.x" -an -vcodec copy -movflags faststart+frag_keyframe+empty_moov "http://127.0.0.1:8080/feed.ffm"

    Questions :
    1. Which one has precedence : the parameters from the ffmpeg, or the one from ffserver.
    2. I’m using ffprobe for testing the stream which comes from ffserver. I’ve used faststart, but I’m still getting the "moov atom not found" error ; shouldn’t faststart flag move the moov atom to beginning ?

    More info :

    ffserver version :

    ffserver version 2.3.4 Copyright (c) 2000-2014 the FFmpeg developers
    built on Dec  4 2014 09:23:21 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
    configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
    libavutil      52. 92.100 / 52. 92.100
    libavcodec     55. 69.100 / 55. 69.100
    libavformat    55. 48.100 / 55. 48.100
    libavdevice    55. 13.102 / 55. 13.102
    libavfilter     4. 11.100 /  4. 11.100
    libavresample   1.  3.  0 /  1.  3.  0
    libswscale      2.  6.100 /  2.  6.100
    libswresample   0. 19.100 /  0. 19.100
    libpostproc    52.  3.100 / 52.  3.100

    ffmpeg version :

    ffmpeg version 2.3.4 Copyright (c) 2000-2014 the FFmpeg developers
    built on Dec  4 2014 09:23:21 with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
    configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
    libavutil      52. 92.100 / 52. 92.100
    libavcodec     55. 69.100 / 55. 69.100
    libavformat    55. 48.100 / 55. 48.100
    libavdevice    55. 13.102 / 55. 13.102
    libavfilter     4. 11.100 /  4. 11.100
    libavresample   1.  3.  0 /  1.  3.  0
    libswscale      2.  6.100 /  2.  6.100
    libswresample   0. 19.100 /  0. 19.100
    libpostproc    52.  3.100 / 52.  3.100

    Thank you.

  • Python Subprocess.Popen or os.popen

    21 septembre 2023, par Nowski

    hi I want to run a bash command in my script to process a file with ffmpeg, I am struggling to get it to work in subprocess or os

    &#xA;

    I build my command from variables elsewhere in the script and the resulting string is a legit ffmpeg call :

    &#xA;

    fcommand=(f&#x27;/usr/bin/ffmpeg -i   {inputf}  -b:a  128K -vn  {output_directory}{youtube_id}.mp3&#x27;)&#xA;&#xA;Print(fcommand)  result: /usr/bin/ffmpeg -i   /media/pi/VDRIVE/uploaded/gf23_pmc-speakers.mp4  -b:a  128K -vn  /media/pi/VDRIVE/audio/EN6_KfsEtdM.mp3&#xA;&#xA;os.popen(fcommand)&#xA;

    &#xA;

    This works, sorta. - eg I can see the output from FFmpeg on the shell I am running my parent python script with (python3 myscript.py)

    &#xA;

    However, the parent python script just pauses and doesnt do anything further.&#xA;So I tried :

    &#xA;

    subprocess.Popen(fcommand)&#xA;

    &#xA;

    But now I get the python error :

    &#xA;

    [Errno 2] No such file or directory: [Errno 2] No such file or directory: &#x27;ffmpeg -i   /media/pi/VDRIVE/uploaded/gf23_pmc-speakers.mp4  -b:a  128K -vn  /media/pi/VDRIVE/audio/EN6_KfsEtdM.mp3&#x27;: &#x27;ffmpeg -i   /media/pi/VDRIVE/uploaded/gf23_pmc-speakers.mp4  -b:a  128K -vn  /media/pi/VDRIVE/audio/EN6_KfsEtdM.mp3&#x27;&#xA;

    &#xA;

    My aim is to have the Python script run, make the file from FFMPEG input then move on to another step in the script.&#xA;Bashing my head against the wall here...

    &#xA;

  • FFMPEG FDKAAC and Python

    3 avril 2024, par Eric Barker

    Been banging my head against the wall for days on this. I'm writing a python program to take a 48kHz WAV file, convert it to 44.1kHz and encode it to HE-AAC via FDKAAC. FDK cannot convert to sample rates, so I'm using FFMPEG as the wrapper and piping it through FDKAAC. In a perfect world, I'd make a custom build of FFMPEG with FKD, but I've run into loads of issues on our Windows Server 2019 machine trying to build out FFMPEG, so I'm using vanilla FFMPEG with FDK piped in.

    &#xA;

    I can get the command to work perfectly from a command prompt :

    &#xA;

    ffmpeg -progress pipe:2 -i  -f wav -ar 44100 - | fdkaac -p 5 -b 64000 -o &#xA;

    &#xA;

    But when I try to split it in Python for a Popen, it tries to evaluate the arguments and fails because ffmpeg doesn't have a "-p" argument :

    &#xA;

    cmd = [&#x27;ffmpeg&#x27;, &#x27;-progress&#x27;, &#x27;pipe:2&#x27;, &#x27;-i&#x27;, inFile, \&#xA;    &#x27;-f&#x27;, &#x27;wav&#x27;, &#x27;-ar&#x27;, &#x27;44100&#x27;, &#x27;-&#x27;, &#x27;|&#x27;, \&#xA;    &#x27;fdkaac&#x27;, &#x27;-p&#x27;, &#x27;5&#x27;, &#x27;-b&#x27;, &#x27;64000&#x27;, &#x27;-o&#x27;, outFile]&#xA;fdkProcess = subprocess.Popen(cmd,&#xA;            stdout=subprocess.PIPE,&#xA;            universal_newlines=True)&#xA;for line in fdkProcess.stdout:&#xA;    print(line)&#xA;

    &#xA;

    RESULT :

    &#xA;

    Unrecognized option &#x27;p&#x27;.&#xA;Error splitting the argument list: Option not found&#xA;

    &#xA;

    I'll admit, I don't fully understand the pipeline process, and how to split commands via the "|" flag, and have them properly feed into stdout for the subprocess function to work correctly. I'm fairly new to python, and very new to programmatically capturing the output of a process like ffmpeg.

    &#xA;