
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (56)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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 (...)
Sur d’autres sites (5813)
-
How to create a full length video from images with FFmpeg ?
14 avril 2021, par Lucas NaokiI have more than a thousand images that I want to transform into a 3 minutes video. I tried using this line
ffmpeg -r 30 -i "E:/White-box-Cartoonization/test_code/cartoonized_images/$flower%03d.bmp" -c:v libx264 -pix_fmt yuv420p out.mp4
it worked but creates only a 5 seconds video. What do I need to do to turn it into a full length 3 minutes video ?

-
Not able to trim video using "com.arthenica:mobile-ffmpeg-full:4.4"
20 avril 2021, par UMESH GARGI need help in trimming the video in android using : 'mobile-FFmpeg


I posted my code below, which I used to trim the video but every time it goes to the else block(every it fails for android:11,9).
Please help me out.
Thanks in advance


Code :
val cmd = arrayOf("-i", trimmerData.srcPath, "-ss", startTime, "-t", endTime,
"-s", "320x240", "-r", "25", "-vcodec", "mpeg4", "-b:v", "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050",
"-c", "copy", trimmerData.dstPath)


val rc = FFmpeg.execute(cmd)

 if (rc == RETURN_CODE_SUCCESS) {
 Log.i(Config.TAG, "Command execution completed successfully.")
 scanTrimFile(trimmerData)
 } else if (rc == RETURN_CODE_CANCEL) {
 Log.i(Config.TAG, "Command execution cancelled by user.")
 } else {
 Log.i(Config.TAG, String.format("Command execution failed with rc=%d and the output below.", rc))
 Config.printLastCommandOutput(Log.INFO)
 showTrimmingError()
 }

private fun scanTrimFile(trimmerData: TrimmerData) {
mediaScannerConnection = MediaScannerConnection(this,
object : MediaScannerConnection.MediaScannerConnectionClient {
override fun onMediaScannerConnected() {
mediaScannerConnection.scanFile(trimmerData.dstPath, "video/*")
}

 override fun onScanCompleted(path: String?, uri: Uri?) {
 mediaScannerConnection.disconnect()
 dismissWaitingDialog()
 getResult(Uri.parse(trimmerData.dstPath))
 }

 })
 mediaScannerConnection.connect()
}



Logs :


2021-04-20 13:05:12.869 27051-27051/org.xyz.abc I/mobile-ffmpeg: Loading mobile-ffmpeg.
2021-04-20 13:05:12.880 27051-27051/org.xyz.abc I/mobile-ffmpeg: Loaded mobile-ffmpeg-full-arm64-v8a-4.4-20200725.
2021-04-20 13:05:12.880 27051-30377/org.xyz.abc D/mobile-ffmpeg: Callback thread started.
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: ffmpeg version v4.4-dev-416
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: Copyright (c) 2000-2020 the FFmpeg developers
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libavutil 56. 55.100 / 56. 55.100
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libavcodec 58. 96.100 / 58. 96.100
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libavformat 58. 48.100 / 58. 48.100
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libavdevice 58. 11.101 / 58. 11.101
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libavfilter 7. 87.100 / 7. 87.100
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libswscale 5. 8.100 / 5. 8.100
2021-04-20 13:05:12.881 27051-30377/org.xyz.abc I/mobile-ffmpeg: libswresample 3. 8.100 / 3. 8.100
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/org.xyz.abc/files/Tch Plus Recorder/tch_video_1618904094681.mp4':
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Metadata:
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: major_brand : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: mp42
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: minor_version : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 0
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: compatible_brands: 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: isommp42
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: creation_time : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 2021-04-20T07:35:06.000000Z
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: com.android.version: 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 11
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Duration: 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 00:00:10.07
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: , start: 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 0.000000
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: , bitrate: 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 12089 kb/s
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Stream #0:0
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: (eng)
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 11998 kb/s
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: , SAR 1:1 DAR 16:9
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: , 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 29.81 fps, 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 30 tbr, 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 90k tbn, 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 180k tbc
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: (default)
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Metadata:
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: rotate : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 90
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: creation_time : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: 2021-04-20T07:35:06.000000Z
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: handler_name : 
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: VideoHandle
2021-04-20 13:05:12.897 27051-30377/org.xyz.abc I/mobile-ffmpeg: Side data:
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: 
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: displaymatrix: rotation of -90.00 degrees
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: Stream #0:1
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: (eng)
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: : Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: (default)
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: Metadata:
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: creation_time : 
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: 2021-04-20T07:35:06.000000Z
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: handler_name : 
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc I/mobile-ffmpeg: SoundHandle
2021-04-20 13:05:12.898 27051-30377/org.xyz.abc E/mobile-ffmpeg: /storage/emulated/0/TchTrimVideo/tch_trim_Video1618904108454.mp4: No such file or directory
2021-04-20 13:05:12.898 27051-27051/org.xyz.abc I/mobile-ffmpeg: Command execution failed with rc=1 and the output below.
2021-04-20 13:05:12.899 27051-27051/org.xyz.abc I/mobile-ffmpeg: ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers
 built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
 configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --extra-libs='-L/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
 libavutil 56. 55.100 / 56. 55.100
 libavcodec 58. 96.100 / 58. 96.100
 libavformat 58. 48.100 / 58. 48.100
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/org.xyz.abc/files/Tch Plus Recorder/tch_video_1618904094681.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2021-04-20T07:35:06.000000Z
 com.android.version: 11
 Duration: 00:00:10.07, start: 0.000000, bitrate: 12089 kb/s
 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 11998 kb/s, SAR 1:1 DAR 16:9, 29.81 fps, 30 tbr, 90k tbn, 180k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2021-04-20T07:35:06.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 96 kb/s (default)
 Metadata:
 creation_time : 2021-04-20T07:35:06.000000Z
 handler_name : SoundHandle
 /storage/emulated/0/TchTrimVideo/tch_trim_Video1618904108454.mp4: No such file or directory



-
How to set yuv to full range in a mpeg2video ?
7 mai 2021, par Jefferson Villasan JosolI've found out that
YUV420P
has a limited range based on MediaInfo. How can I set that into Full range using ffmpeg ? Does anyone know how to set it into Full ?
I'm currently usingmpeg2video -q:v 0
because it has an acceptable quality and small file sizes compared tox264 -crf 0
.
Thanks in advance for those who can help me !

Edit : I prefer mpeg2video because it is much faster compared to x264 encoding. And I've also noticed that
-q:v 0
is better than-q:v 2
. I don't know if it sounds strange but on my phone, the quality is really better if I use the-c:v mpeg2video -q:v 0