
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (99)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (3739)
-
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