
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (42)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (10325)
-
How to show a watermark for 3 second on a MP4 using FFmpeg
6 février 2014, par b1izzardI need to add a 3-second watermark to a Camera recorded video in Android. I'm using FFmpeg static build to execute the commands.
Approach I
I had tried the below command using latest version of FFmpeg(version N-60108-gda25a65) in my Desktop running Linux Mint, the command works fine.
ffmpeg -y -itsoffset 3 -i input.mp4 -i myImage.jpg -filter_complex "[0:v][1:v]overlay=0:0:enable=between(t\,0\,3)" -codec:a copy output.mp4
In Android I'm using the FFmpegv1.2 with below config to execute the command.
*******Starting FFMPEG
***ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers***
*** built on Mar 31 2013 23:44:57 with gcc 4.6 (GCC) 20120106 (prerelease)***
*** configuration: --arch=arm --target-os=linux --enable-runtime-cpudetect --enable-pic --disable-shared --enable-static --cross-prefix=/opt/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/opt/android-ndk-r8e/platforms/android-8/arch-arm --extra-cflags='-march=armv6' --extra-ldflags= --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network***
*** libavutil 52. 18.100 / 52. 18.100***
*** libavcodec 54. 92.100 / 54. 92.100***
*** libavformat 54. 63.104 / 54. 63.104***
*** libavdevice 54. 3.103 / 54. 3.103***
*** libavfilter 3. 42.103 / 3. 42.103***
*** libswscale 2. 2.100 / 2. 2.100***
*** libswresample 0. 17.102 / 0. 17.102***Java Code to run the FFmpeg command :
String[] ffmpegCommandToAddWatermark = {
mFfmpegInstallPath, "-y", "-itsoffset","3",
"-i", INPUT_VIDEO_PATH, "-i", WATERMARK_IMAGE_PATH,
"-filter_complex","[0:v][1:v]overlay=0:0:between(t\\,0\\,3)",
"-strict","-2",
"-codec:a","copy",OUTPUT_VIDEO_PATH};
try {
Process ffmpegProcess = new ProcessBuilder(ffmpegCommandToAddWatermark)
.redirectErrorStream(true).start();
String line;
BufferedReader reader = new BufferedReader(
new InputStreamReader(ffmpegProcess.getInputStream()));
Log.d(TAG, "*******Starting FFMPEG");
while ((line = reader.readLine()) != null ) {
Log.d(TAG, "***" + line + "***");
}
Log.d(null, "****ending FFMPEG****");
} catch (Exception e) {
e.printStackTrace();
}The command execution failed with following error :
***[overlay @ 0x271f770] No option name near 'between(t,0,3)'***
***[AVFilterGraph @ 0x2711530] Error initializing filter 'overlay' with args '0:0:between(t,0,3)'***
***Error configuring filters.***The same command executes successfully when
:enable=between(t\,0\,3)
is removed, but the resulting output video has the watermark throughout the timeline, but I need watermark only for the starting 3 seconds.Approach II :
I tried to convert WaterMarkImage to WaterMarkVideo
ffmpeg -y -loop 1 -r 30 -i WaterMarkImage.jpg -b:v "4096k" -vf "scale=640:480" -t 3 WaterMarkVideo.mp4
And then merge the WaterMarkVideo.mp4+CameraRecordedVideo.mp4 using the concat command :
ffmpeg -y -f concat -i inputs.txt -c copy output.mp4
The resulting output is corrupt due to BitRate,FrameRate,etc., mismatch. Any idea to solve the problem ?.
-
ffprobe does not show packet size of a mpeg transport stream as 188 bytes
16 octobre 2015, par CompNetI created a transport stream from a
H.264
encoded file using the followingffmpeg
command :ffmpeg -i encoded.mp4 -c copy -map 0 -vbsf h264_mp4toannexb mpegts sample.ts
Now I want to check the frames and packets within the transport stream. I used
ffprobe -show_frames
which shows the frame details for audio and video frames. But I’m confused about the
pkt_size
field. Is it the actual frame size of each elementary stream of audio and video (I/B/P frames) ?Also, when I run
ffprobe -show_packets
is it supposed to give each packet details in the transport stream ? Because the
size
field of each packet is not 188 bytes, rather it is same as thepkt_size
I got with-show_frames
.Could someone please explain why the size in
-show_packets
of transport stream is not 188 bytes ? Did I do anything wrong while multiplexingmp4
toTS
? -
FFMPEG, the penultimate image from the .txt file doesn't show in the video
25 octobre 2019, par ArmKhI’m trying to create a video from the images using
ffmeg
. Actually, the creating of the video works but there is a small problem. I have a text file with the names of the images (paths) which I’m using in the video. The file looks like thisfile 'image1.jpg'
file 'image2.jpg'
file 'image3.jpg'
file 'image4.jpg'
file 'image5.jpg'And the ffmeg command is following
ffmpeg -y -r 1/5 -f concat -safe 0 -i imagenames.txt -i some_audio.mp3 -c:v libx264 -vf fps=30 -pix_fmt yuv420p -t 30 output.mp4
This video should keep the frame on every image for 5 seconds. But the problem is the penultimate image
( image4 in this case )
is not being shown in the video. So, it keeps onimage3
10 seconds and moves toimage5
So, the video in seconds looks like this
[image1] -> [image2] -> [image3] -> [image4] -> [image5]
5sec 5sec 10sec 0sec 5secAnd the problem is not with the
image4
exactly. In case of swappingimage3
andimage4
, the video will skipimage3
[image1] -> [image2] -> [image4] -> [image3] -> [image5]
5sec 5sec 10sec 0sec 5secHope you’ll have any suggestions to fix this issue