
Recherche avancée
Autres articles (83)
-
Le profil des utilisateurs
12 avril 2011, parChaque 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, parLe 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, parAccé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.gaborI’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.100ffmpeg 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.100Thank you.
-
Python Subprocess.Popen or os.popen
21 septembre 2023, par Nowskihi 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


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


fcommand=(f'/usr/bin/ffmpeg -i {inputf} -b:a 128K -vn {output_directory}{youtube_id}.mp3')

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

os.popen(fcommand)



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)


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


subprocess.Popen(fcommand)



But now I get the python error :


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



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


-
FFMPEG FDKAAC and Python
3 avril 2024, par Eric BarkerBeen 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.


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


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



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 :


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



RESULT :


Unrecognized option 'p'.
Error splitting the argument list: Option not found



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.