
Recherche avancée
Autres articles (60)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12003)
-
ffmpeg how to attach & extract text/data file to audio or video stream ?
9 février 2021, par user2718593I have :


1/ AUDIO.m4a stream


2/ a cover album jpeg


3/ an UTF8 text file


I wish to bind all of them into a mkv/mp4 container.


To bind the audio & image I can


ffmpeg -y -i "AUDIO.mp4" -attach COVER.jpg -metadata:s mimetype="image/jpeg" -c:a copy "AUDIO_COPY_WITH_COVER.mka"


Further to bind the text file


ffmpeg -y -i "AUDIO_COPY_WITH_COVER.mka" -c copy -attach "TEXT.txt" -metadata:s:2 mimetype=application/octet-stream "AUDIO_JPEG_TEXT.mkv"


If I check I get :




Input #0, matroska,webm, from 'AUDIO_JPEG_TEXT.mkv' :
Metadata :
MINOR_VERSION : 512
COMPATIBLE_BRANDS : M4A isomiso2
MAJOR_BRAND : M4A
ENCODER : Lavf58.45.100
Duration : 00:36:10.36, start : 0.000000, bitrate : 67 kb/s
Stream #0:0 : Video : mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 320x240 [SAR 1:1 DAR 4:3], 1k tbr, 1k tbn, 1k tbc (default)
Metadata :
FILENAME : COVER.jpg
MIMETYPE : image/jpeg
DURATION : 00:00:00.000000000
Stream #0:1 : Audio : aac (HE-AAC), 44100 Hz, stereo, fltp (default)
Metadata :
HANDLER_NAME : SoundHandler
MIMETYPE : image/jpeg
DURATION : 00:36:10.358000000
Stream #0:2 : Attachment : none
Metadata :
filename : TEXT.txt
mimetype : application/octet-stream




Question :


1/ How do I extract my text file ?


ffmpeg -i "AUDIO_JPEG_TEXT.mkv" -map 0:t -metadata:s:2 mimetype=application/octet-stream "my text.txt"



I get the error :
Unable to find a suitable output format for 'my text.txt'
my text.txt : Invalid argument


**2/If I replace the command with **


ffmpeg -y -i "AUDIO_COPY_WITH_COVER.mka" -c copy -attach "TEXT.txt" -metadata:t:2 mimetype=application/octet-stream "AUDIO_JPEG_TEXT.mkv"


Excuting
ffmpeg -i "AUDIO_JPEG_TEXT.mkv"


get error


EBML header parsing failed
AUDIO_JPEG_TEXT.mkv : Invalid data found when processing input


2/ How can I write in one command the 3 attachments(audio,img,document) ?


Thanks


-
FFMpegWriter not using the bitrate specified ? Animation is very blurry
18 mai 2022, par ceboI am using
matplotlib
'sFunAnimation
as well asFFMpegWriter
to try to write a simulation animation to a file. I'd like to save a high quality version of it, but when I increase thebitrate
value of the writer, the actual bitrate of the.mp4
it creates seems to increase in discrete steps up to a fairly low value after which it doesn't increase any more whatsoever.

My code is roughly :


dpi = 96
fig = plt.figure(figsize=(width/dpi, height/dpi), dpi=dpi)
anim = FuncAnimation(fig, myAnimation, frames=100, interval=1, blit=True)
writer = animation.FFMpegWriter(fps=10, bitrate=<some number="number">)
anim.save('MyAnimation.mp4', writer=writer)
</some>


The animation is only 200x200px so I feel like it shouldn't be a problem to have a high quality video, but I can't seem to get a high enough bitrate. For the following bitrates specified in my code, the actual bitrate shown in the files properties are :


BR In Code => Actual BR (kbps)
-1 / None => 13
100 => 58
1000 => 76
10000 => 76



The bitrate doesn't seem to track very well at all, and won't go above
76kbps
at all. The video is still badly blurry at this bitrate.

What do I need to do to increase the bitrate or else the quality of the video file ?


Alternatively, is there a better video format/writer to use for this purpose ? Specifically one that is broadly supported so I could embed it in a website or upload it to YouTube or something like that.


Edit :


To be more specific about the issue, neighboring pixels are being blended together, resulting in a blurry look. The following imgur album shows several examples with different settings :




These include the view in the figure window from
plt.show()
, default bitrate, a "high" bitrate, and something else I just tried which was to increase the dpi. While the results are much nicer it also nearly doubled the execution time so I'd like to avoid it.

It seems silly to have to upscale what is effectively "pixel art" in order for it to look good, but I guess this is an artifact of the signal processing approach mpeg uses, which is why I suspect a different file format might be the best solution for small framed animations like this. If I wanted to do a 1920*1080 animation the blurring would probably be less of an issue.


-
python call of ffmpeg misses target file parameter
2 décembre 2016, par FredI’m writing a python GUI for ffmpeg. When calling ffmpeg via subprocess it runs fine as long as the command is like
subprocess.Popen([ffmpeg_converter,
'-i',file,
target_file
])But when I do the same call with ffmpeg arguments it fails with
"At least one output file must be specified" :option_string = '-q:a 4'
subprocess.Popen([ffmpeg_converter,
'-i',file,
option_string,
target_file
])It even recognizes the options but does not see the target file. I even replaced the actual target file with someting simple like "test.mp3" but still the same error. Any ideas ? (I’m on windows with python 3.3.)
The complete console output is :
ffmpeg version N-57781-g0610d6e Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 1 2013 18:01:35 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 49.100 / 52. 49.100
libavcodec 55. 40.101 / 55. 40.101
libavformat 55. 20.105 / 55. 20.105
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Trailing options were found on the commandline.
Input #0, flac, from 'c:\script\python\testdata\source\01. Es geht los.flac':
Metadata:
ARTIST : Olivia Trummer Trio
TITLE : Es geht los
ALBUM : Westwind
DATE : 2008
track : 01
GENRE : Jazz
COMMENT : EAC FLAC -8
Duration: 00:06:27.25, bitrate: 834 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
At least one output file must be specified