
Recherche avancée
Autres articles (43)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (5721)
-
Fails to crop video with ratio height = width using FFMpeg on Android 7
18 avril 2018, par BabsI am using FFMpeg Android this link in our Android app
crop the video to 1:1 ratio i.e height = width
The below command works great on Android devices with Api < 24 but Fails on Api 24. I have also pasted my log analysis below, appreciate if anyone can help me fixing this issue.
public static String cropVideo(final Context context, final File file, final BaseCaptureInterface mBaseCaptureListener) {
String croppedUrl = "";
FFmpeg ffmpeg = FFmpeg.getInstance(context.getApplicationContext());
try {
croppedUrl = file.getParent() + "/Cropped_" + file.getName();
String[] cmds = {"-i", file.getAbsolutePath(), "-vf", "crop=out_h=in_w", "-threads", "5", "-preset" ,"ultrafast","-strict","-2",croppedUrl};
ffmpeg.execute(cmds, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {
Log.d(TAG, "cropVideo:onStart()");
}
@Override
public void onProgress(String message) {
Log.d(TAG, "cropVideo:onProgress(): " + message);
}
@Override
public void onFailure(String message) {
Log.d(TAG, "cropVideo:onFailure(): " + message);
Toast.makeText(context, "Failed to Crop the video", Toast.LENGTH_SHORT).show();
}
@Override
public void onSuccess(String message) {
file.delete();
mBaseCaptureListener.videoCropStatus(true);
Log.d(TAG, "cropVideo:onSuccess(): " + message);
}
@Override
public void onFinish() {
Log.d(TAG, "cropVideo:onFinish()");
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
Log.d(TAG, "cropVideo:error: " + e);
}
return croppedUrl;
}Observation : Below is the comparison of Pass and Fail logs during onProgress() of cropping. in Fail Logs, the frame initial is 0 and then abruptly jumps to 2392 also the size increases proportionately. Whereas in the Pass logs, the increase in frame and size is quite smooth.
I am wondering if my command string[] needs some changes. Please, let me know if you have any suggestions.Pass Logs :
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:01.00 bitrate= 0.4kbits/s speed=1.97x
frame= 18 fps= 18 q=0.0 size= 0kB time=00:00:01.34 bitrate= 0.3kbits/s dup=9 drop=0 speed=1.33x
frame= 26 fps= 17 q=0.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/s dup=13 drop=0 speed=1.33x
frame= 48 fps= 18 q=0.0 size= 0kB time=00:00:02.00 bitrate= 0.2kbits/s dup=24 drop=0 speed=0.744x
frame= 48 fps= 15 q=0.0 size= 0kB time=00:00:02.60 bitrate= 0.1kbits/s dup=24 drop=0 speed=0.814x
frame= 58 fps= 15 q=29.0 size= 25kB time=00:00:03.00 bitrate= 68.1kbits/s dup=29 drop=0 speed=0.802x
frame= 62 fps= 14 q=29.0 size= 45kB time=00:00:03.00 bitrate= 122.6kbits/s dup=31 drop=0 speed=0.679x
frame= 68 fps= 14 q=29.0 size= 68kB time=00:00:03.00 bitrate= 184.3kbits/s dup=34 drop=0 speed=0.608x
frame= 74 fps= 13 q=29.0 size= 96kB time=00:00:03.00 bitrate= 262.1kbits/s dup=37 drop=0 speed=0.534x
frame= 79 fps= 13 q=29.0 size= 119kB time=00:00:03.00 bitrate= 324.3kbits/s dup=39 drop=0 speed=0.482x
frame= 81 fps= 12 q=29.0 size= 131kB time=00:00:03.20 bitrate= 335.2kbits/s dup=40 drop=0 speed=0.475x
frame= 81 fps= 11 q=29.0 size= 131kB time=00:00:03.98 bitrate= 268.9kbits/s dup=40 drop=0 speed=0.551x
frame= 92 fps= 12 q=29.0 size= 197kB time=00:00:04.01 bitrate= 402.0kbits/s dup=45 drop=0 speed=0.516x
frame= 96 fps= 11 q=29.0 size= 222kB time=00:00:04.01 bitrate= 452.9kbits/s dup=47 drop=0 speed=0.479x
frame= 101 fps= 11 q=29.0 size= 245kB time=00:00:04.01 bitrate= 499.8kbits/s dup=49 drop=0 speed=0.44x
frame= 105 fps= 11 q=29.0 size= 268kB time=00:00:04.01 bitrate= 546.6kbits/s dup=51 drop=0 speed=0.414x
frame= 112 fps= 11 q=29.0 size= 310kB time=00:00:04.09 bitrate= 620.0kbits/s dup=54 drop=0 speed= 0.4x
frame= 115 fps= 10 q=29.0 size= 326kB time=00:00:04.09 bitrate= 652.1kbits/s dup=55 drop=0 speed=0.374x
frame= 119 fps= 10 q=29.0 size= 355kB time=00:00:04.09 bitrate= 710.8kbits/s dup=57 drop=0 speed=0.355x
frame= 119 fps=7.1 q=-1.0 Lsize= 671kB time=00:00:04.13 bitrate=1327.9kbits/s dup=57 drop=0 speed=0.245x
video:604kB audio:62kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.717086%
[libx264 @ 0xb5b08800] frame I:1 Avg QP:23.35 size: 24768
Fail Logs:
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.81 bitrate= 0.5kbits/s speed=1.61x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:01.57 bitrate= 0.2kbits/s speed=1.56x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:02.30 bitrate= 0.2kbits/s speed=1.51x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:03.22 bitrate= 0.1kbits/s speed=1.58x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:04.13 bitrate= 0.1kbits/s speed=1.63x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:04.90 bitrate= 0.1kbits/s speed=1.61x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:05.82 bitrate= 0.1kbits/s speed=1.64x
frame= 2392 fps=111 q=22.0 size= 1059kB time=00:01:19.61 bitrate= 109.0kbits/s dup=2389 drop=0 speed=3.68x
frame= 2416 fps=109 q=27.0 size= 1059kB time=00:01:20.41 bitrate= 107.9kbits/s dup=2390 drop=0 speed=3.63x
frame= 2438 fps=108 q=27.0 size= 1059kB time=00:01:21.14 bitrate= 106.9kbits/s dup=2390 drop=0 speed=3.58x
frame= 2462 fps=106 q=26.0 size= 1060kB time=00:01:21.94 bitrate= 105.9kbits/s dup=2393 drop=0 speed=3.54x
frame= 2484 fps=105 q=25.0 size= 1060kB time=00:01:22.68 bitrate= 105.0kbits/s dup=2395 drop=0 speed= 3.5x
frame= 2506 fps=104 q=24.0 size= 1060kB time=00:01:23.41 bitrate= 104.1kbits/s dup=2397 drop=0 speed=3.45x
frame= 2530 fps=103 q=26.0 size= 1060kB time=00:01:24.21 bitrate= 103.1kbits/s dup=2397 drop=0 speed=3.41x
frame= 2554 fps=101 q=25.0 size= 1061kB time=00:01:25.01 bitrate= 102.2kbits/s dup=2399 drop=0 speed=3.38x
frame= 2577 fps=100 q=26.0 size= 1167kB time=00:01:25.78 bitrate= 111.4kbits/s dup=2399 drop=0 speed=3.34x
frame= 2588 fps= 99 q=-1.0 Lsize= 4707kB time=00:01:26.35 bitrate= 446.6kbits/s dup=2399 drop=0 speed=3.32x
video:4590kB audio:101kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.346620% -
Is there a tool to batch save video information (frame height, width, rate, etc) to video files' metadata ? [closed]
4 avril 2021, par André LevySearched all over to no avail. I had a vague recollection that MediaInfo did it, but no can do. Perhaps there's a way with ffmpeg, but all I've seen are commands to export the metadata already on the files.


-
ffmpeg : Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
20 novembre 2020, par AlexandreI'm experiencing troubles running ffmpeg on my synology. I'm trying to convert .avi video to mp4.



Here is the command :



ffmpeg -i vid20160623.avi -acodec libfaac -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 -f mp4 vid20160623.mp4



And the logs :



ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
 configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc
 libavutil 54. 27.100 / 54. 27.100
 libavcodec 56. 41.100 / 56. 41.100
 libavformat 56. 36.100 / 56. 36.100
 libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 16.101 / 5. 16.101
 libswscale 3. 1.101 / 3. 1.101
 libswresample 1. 2.100 / 1. 2.100
 libpostproc 53. 3.100 / 53. 3.100
Input #0, avi, from 'vid20160623.avi':
 Metadata:
 encoder : MEncoder git-ab94fc6-4.4.3
 Duration: 00:20:18.07, start: 0.000000, bitrate: 1197 kb/s
 Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x352 [SAR 1:1 DAR 39:22], 1056 kb/s, 25 fps, 23.98 tbr, 25 tbn, 23.98 tbc
 Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
Output #0, mp4, to vid20160623.mp4':
 Metadata:
 encoder : MEncoder git-ab94fc6-4.4.3
 Stream #0:0: Video: mpeg4, none, q=2-31, 128 kb/s, SAR 351:352 DAR 0:0, 23.98 fps
 Metadata:
 encoder : Lavc56.41.100 mpeg4
 Stream #0:1: Audio: aac, 0 channels, 128 kb/s
 Metadata:
 encoder : Lavc56.41.100 libfaac
Stream mapping:
 Stream #0:0 -> #0:0 (mpeg4 (native) -> mpeg4 (native))
 Stream #0:1 -> #0:1 (mp3 (native) -> aac (libfaac))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height




I tried to reduce b:a and b:v but it did not work.



Any help will be welcome.