
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (42)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (8046)
-
How rust links ffmpeg static library ?
11 juillet 2022, par JeycriI'm using rust to link ffmpeg and compile wasm, but I encounter a compilation problem, and the error is as follows.Because the error is too long, I only intercept the key part.


note: /usr/bin/ld: /usr/local/ffmpeg4.3.3/lib/libavfilter.a: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status



The problem lies in the link mode of ffmpeg library, because I use static library, but I don't know how to set it to compile for static library.This is my .toml


[package]
name = "r_linkc"
version = "0.1.0"
edition = "2021"
[dependencies]
libc = "0.2"
ffmpeg-sys = { version = "4.3.1", features = ["default", "static"] }
[target.'cfg(target_os="linux")']
rustflags=["-C", "link-args=-static"]



This is a screenshot of my library.



What is the right way to link ffmpeg static libraries ?


-
PowerShell and ffmpeg : No such file or directory
8 juillet 2022, par Matt WilsonI'm trying to use the below command in a Python script, however I'm seeing that it's a PowerShell issue in that it can't seem to find the video file I'm pointing to.


I have a video file on a cloud drive
Z:
at the following location (for reproducibility, change this to whatever path you want with a video file in it) :

Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity).mp4


Notice the spaces and special characters in the filename in case that matters.


What I'm trying to do is down-sample that video file to a smaller size with the following command :


ffmpeg -i "Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity).mp4" -y -vcodec libx264 -acodec ac3 -threads 1 "Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity)DOWNSAMPLED.mp4"


I know it's long as it's mostly consumed by the filenames, but the error I'm getting is :


Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\[TutsNode.com] - TensorFlow Developer Certificate in 2021 Zero to Mastery\3. Neural network regression with TensorFlow\18. Setting up TensorFlow modelling experiments part 2 (increasing complexity).mp4: No such file or directory


The path IS correct, as it's a direct copy paste from the folder's URL bar.


The things I've tried include :


- 

- using quotes around filename
- not using quotes around filename
- prepending quoted filename with "r" (where I got message saying `did you mean file:r ?)
- prepending quoted filename with "file:r"
- used double slashes \ in filepaths












Is there a powershell pro out there that can tell me why it can't "find" the file ?


UPDATE
The command runs if I find a filename with :


$oldvids = Get-ChildItem *.mp4, *mov, *wmv, *avi -Recurse
foreach ($oldvid in $oldvids) 
{
 $newvid = [io.path]::ChangeExtension($oldvid.FullName, '_.mp4')
 ffmpeg -i $oldvid.FullName -y -vcodec libx264 -acodec ac3 -threads 1 $newvid
}



When I print the
$oldvid.name
and$oldvid.FullName
, the paths/filenames look like this :

Z:\Udemy_And_Misc_Downloads\TensorFlow Developer Certificate in 2021 Zero to Mastery\5. Computer Vision and Convolutional Neu
ral Networks in TensorFlow\35. Multi-class CNN's part 9 Making predictions with our model on custom images.mp4

35. Multi-class CNN's part 9 Making predictions with our model on custom images.mp4



...that first one being an exact copy of what I'm trying to use in my posted code. So what's the difference ??


SECOND UPDATE
I think the issue lies in that the file is located on a drive other than
C:
. Just tested it by moving the file onto my computer and running the command, and it worked. So I guess, is there a way to tell PowerShell to use theZ:
drive to find the file ?

-
FFmpeg converting to .265 corrupts videos
25 juin 2022, par AlfaI'm trying to convert and compress videos in
React Native
using FFmpegKit, what is strange is it is very slow regardless of the preset I use, Also, no matter how big the input video is, it always produces a video less than 1MB that is corrupt.
This is my first time usingFFmpeg
, I'm using it due to the lack of good video compressing libraries on React Native.

My command looks like this :


const getFFmpegCommand = (input: string, output: string) => {
 const scale = `"scale='if(gte(iw,ih),min(720,iw),-2):if(lt(iw,ih),min(720,ih),-2)'"`;
 const preset = '-preset veryfast ';
 const ffmpegCommand = `-i ${input} -y -crf 28 -vf ${scale} ${preset} -c:v libx265 ${output}`;
 return ffmpegCommand;
};



This is my log output


ffmpeg version v4.5-dev-3393-g30322ebe3c
 LOG Copyright (c) 2000-2021 the FFmpeg developers
 LOG 
 LOG built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
 LOG configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --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-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-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --disable-sdl2 --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
 LOG libavutil 57. 13.100 / 57. 13.100
 LOG libavcodec 59. 15.102 / 59. 15.102
 LOG libavformat 59. 10.100 / 59. 10.100
 LOG libavdevice 59. 1.100 / 59. 1.100
 LOG libavfilter 8. 21.100 / 8. 21.100
 LOG libswscale 6. 1.102 / 6. 1.102
 LOG libswresample 4. 0.100 / 4. 0.100
 LOG Guessed Channel Layout for Input Stream #0.1 : mono
 LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///data/user/0/com.orbis.cybersight/files/95fdb965-5074-421f-b6b0-9e67332550ca/VID_20220625_211041.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG Duration:
 LOG 00:00:33.68
 LOG , start:
 LOG 0.000000
 LOG , bitrate:
 LOG 8302 kb/s
 LOG 
 LOG Stream #0:0
 LOG [0x1]
 LOG (eng)
 LOG : Video: h264 (avc1 / 0x31637661), yuv420p(tv, gbr/reserved/reserved, progressive), 1280x720, 9007 kb/s
 LOG , SAR 1:1 DAR 16:9
 LOG ,
 LOG 22.69 fps,
 LOG 90k tbr,
 LOG 90k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG Side data:
 LOG 
 LOG displaymatrix: rotation of -90.00 degrees
 LOG 
 LOG Stream #0:1
 LOG [0x2]
 LOG (eng)
 LOG : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, fltp, 12 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG [h264 @ 0xebd4c280] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG [amrnb @ 0xebd4dc00] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG Stream mapping:
 LOG Stream #0:0 -> #0:0
 LOG (h264 (native) -> hevc (libx265))
 LOG 
 LOG Stream #0:1 -> #0:1
 LOG (amr_nb (amrnb) -> aac (native))
 LOG 
 LOG Press [q] to stop, [?] for help
 LOG [aac @ 0xebd4a5d0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
 LOG Output #0, mp4, to '/storage/emulated/0/Android/data/com.orbis.cybersight/files/3dfb9ef6-6cb3-4adf-9777-8fb4c7762dc7.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG encoder :
 LOG Lavf59.10.100
 LOG 
 LOG Stream #0:0
 LOG (eng)
 LOG : Video: hevc (hev1 / 0x31766568), yuv420p(tv, gbr/reserved/reserved, progressive), 720x1280 [SAR 1:1 DAR 9:16], q=2-31
 LOG ,
 LOG 22.69 fps,
 LOG 2502k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 libx265
 LOG 
 LOG Side data:
 LOG 
 LOG cpb:
 LOG bitrate max/min/avg: 0/0/0 buffer size: 0
 LOG vbv_delay: N/A
 LOG 
 LOG 
 LOG displaymatrix: rotation of -0.00 degrees
 LOG 
 LOG Stream #0:1
 LOG (eng)
 LOG : Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 48 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 aac