
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (61)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (8863)
-
Merge multiple videos without using command line-FFMPEG [on hold]
19 avril 2018, par Valgrind1691I am developing an android application which has video processing features involved.
For video processing I have been working with FFMPEG library. As for now ffmpeg is directly being consumed by android and the processing is being done by
framing commands and executing it using ffmpeg executable running in the background.
This approach has two drawbacks :1) Video Processing time is huge even after trying ultrafast and other options to reduce processing
2) APK size is large
For solving two major problems we seek c/c++ native implementation for video processing by using the ffmpeg code.
The C/C++ code will be cross compiled for android and iOS platforms and provided to mobile platform as a library (.so file in case of Android)
The .so file will have-
jni for communication between Android(java) and c/c+
-
c++ code for functionality implementation of video processing. All
the video processing i.e scaling, transcoding, merging,
cropping etc will be done by C/C++ code.
I have a query around the C/C++ side , how can we use ffmpeg not to process using command line rather we can define algorithms for the process. Transcoding, muxing etc I have achieved looking into the examples of ffmpeg but I am still unable to figure out algorithm for merging of multiple(upto 6) videos in a single video file.
I have looked into every question posted in this context and none helped.
Can someone help me merge videos using source code of ffmpeg without using command line ? Any help is appreciated. -
-
Sampling video every N frames starting at n0 initial frame
4 avril 2017, par AtcoldQuestion
I am trying to figure out how to sample a video stream
x[n]
everyN
frames, starting at framen_i
,i < N
, so that I end up withN
new videos of lengthlen(x) / N
.In formula this is simply :
y_i[n] = x[n_i + n * N]
.Here there is a diagram of what I am trying to achieve :
The greedy solution would be simply dumping the frames to a folder and then create new videos out of appropriately indexed frames.
I was hoping there were some more elegant solution withffmpeg
since I have to process hundreds of video.Implementation
Finally, I managed to write the final implementation, which I am reporting here for completeness.
It does scale the minimum dimension to256
, does not process more thanmax_frames
; performs the sampling everyk
frames, send the firstk - 1
samples to one folder and thek
-th one to another one. It also set the output frame rate to the input average frame rate, since otherwise some videos will go at 120 Hz...k=5
kk=$(awk "BEGIN{print 1/$k}")
ffmpeg \
-i $src_video_path \
-an \
-loglevel error \
-filter_complex \
"setpts=$kk*PTS, \
scale=w=2*trunc(128*max(1\, iw/ih)):h=2*trunc(128*max(1\, ih/iw))[m]; \
[m]select=n=$k:e=(mod(n\,$k)+1)*lt(n\,$max_frames) \
$(for ((i=1; i<=$k; i++)); do
echo -n "[a$i]"
done)" \
$(for ((i=1; i<$k; i++)); do
echo -n "-r $fps -map [a$i] $dst_video_path/$i.mp4 "
done
echo -n "-r $fps -map [a$k] $val_video_path/$k.mp4"
) -
lavc/bswapdsp : purge RISC-V V bswap32
16 juillet 2023, par Rémi Denis-Courmontlavc/bswapdsp : purge RISC-V V bswap32
This cannot beat the Zbb implementation, and it is unlikely that a real
meaningful CPU design would support V and not Zbb. The best loop rewrite
that I could come up with (4 shifts, 2 ands, 3 ors) is still 40% slower
than Zbb.A proper faster vector implementation should be feasible with the
cryptographic vector extensions, but that is a story for another time.