
Recherche avancée
Autres articles (45)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (9817)
-
Generate video with ffmpeg to play using JavaFX
25 mai 2015, par taskmanPeople always say to post a new question so I am posting a new question that relates to Generate video with ffmpeg for JavaFX MediaPlayer
The images I use can be downloaded from here https://www.dropbox.com/s/mt8yblhfif113sy/temp.zip?dl=0. It is a 2.2GB zip file with 18k images, still uploading, might take some time. The images are slices of a 3D object. I need to display images every 10ms to 20ms. I tried it with Java, but just couldn’t get faster than 30ms+ so now I am trying to generate a video that will display images as fast as I want without worrying about memory or CPU power.
People will be using my software to slice the objects and then generate the videos to be played later one. The player might run on a cheap laptop or might run on a Raspberry Pi. I need to make sure the slicer will work on any OS and that people don’t need to install too much extra stuff to make it work. It would be best if I can just include everything that is needed in the download of the app.
I also posted here
https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=15&t=2474&sid=4f7a752f909202fbec19afc9edaf418cI am using Windows 7 and I have VLC installed. The ffmpeg version is
ffmpeg version N-72276-gf99fed7 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (GCC)I also tried the command lines posted on the linked question
This line produced the video and JavaFX didn’t have any errors
ffmpeg -f image2 -r 50 -i "Mandibular hollow 1 micron.gizmofill%d.gizmoslice.jpg" -s 1638x1004 -vcodec mpeg4 -qscale 1 -f mp4 Timelapse.mp4
This line also produced the video, but JavaFX had an error : "Caused by : MediaException : MEDIA_UNSUPPORTED : Unrecognized file signature !"
ffmpeg -f image2 -r 50 -i "Mandibular hollow 1 micron.gizmofill%d.gizmoslice.jpg" -s 1920x1080 -vcodec mpeg4 -qscale 1 Timelapse.avi
I also tried this two pass encoding I believe. It produced the video, but didn’t play
ffmpeg -r 50 -i "Mandibular hollow 1 micron.gizmofill%d.gizmoslice.jpg" -s 1638x1004 -r 50 -b:v 1550k -bt 1792k -vcodec libx264 -pass 1 -an combined50.flv && ffmpeg -y -r 50 -i "Mandibular hollow 1 micron.gizmofill%d.gizmoslice.jpg" -s 1638x1004 -r 50 -b:v 1550k -bt 1792k -vcodec libx264 -pass 2 -vpre hq -acodec libfaac -ab 128k combined50.flv
This is my JavaFX code. As you can see I tried the Oracle video and that worked fine.
public class FXMLDocumentController implements Initializable {
@FXML
private Label label;
@FXML
private MediaView mediaView;
@FXML
private void handleButtonAction(ActionEvent event) {
System.out.println("You clicked me!");
// final File f = new File("http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv");
final File f = new File("C:/Users/kobus/Dropbox/JavaProjects/Gizmetor/temp/Timelapse.avi");
// "C:/Users/kobus/Dropbox/JavaProjects/Gizmetor/temp/combined50.avi.flv"
// http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv
Media media = new Media(f.toURI().toString());
// Media media = new Media("http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv");
MediaPlayer mediaPlayer = new MediaPlayer(media);
mediaPlayer.setAutoPlay(true);
mediaPlayer.play();
mediaView.setMediaPlayer(mediaPlayer);
label.setText("Hello World!");
System.out.println(mediaPlayer.isAutoPlay());
// mediaView
}
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
} -
ffmpeg convert any file to any file
28 mai 2015, par VishnuI Want simple command to convert any supported file to any file with little possible video compression.
for example
avi to mp4
mp4 to 3gp
.
.etc..I tried below code
ffmpeg -i infile.flv outfile.3gp
It works for some but for some other like
flv to 3gp
conversion it throws error like below and also output file size is very large than input."Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"
P:s i compiled with below librareis
./configure --enable-version3 --enable-libopencore-amrnb --enable-libvo-aacenc --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree
full response
array(48) {
[0]=>
string(77) "ffmpeg version N-72286-gd9b264b Copyright (c) 2000-2015 the FFmpeg developers"
[1]=>
string(56) " built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)"
[2]=>
string(261) " configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree"
[3]=>
string(40) " libavutil 54. 23.101 / 54. 23.101"
[4]=>
string(40) " libavcodec 56. 39.101 / 56. 39.101"
[5]=>
string(40) " libavformat 56. 33.101 / 56. 33.101"
[6]=>
string(40) " libavdevice 56. 4.100 / 56. 4.100"
[7]=>
string(40) " libavfilter 5. 16.101 / 5. 16.101"
[8]=>
string(40) " libswscale 3. 1.101 / 3. 1.101"
[9]=>
string(40) " libswresample 1. 1.100 / 1. 1.100"
[10]=>
string(40) " libpostproc 53. 3.100 / 53. 3.100"
[11]=>
string(32) "Input #0, flv, from 'video.flv':"
[12]=>
string(11) " Metadata:"
[13]=>
string(25) " major_brand : M4V"
[14]=>
string(23) " minor_version : 1"
[15]=>
string(39) " compatible_brands: M4V M4A mp42isom"
[16]=>
string(26) " date : 2008"
[17]=>
string(71) " copyright : © 2008 Blender Foundation | www.bigbuckbunny.org"
[18]=>
string(36) " title : Big Buck Bunny"
[19]=>
string(43) " artist : Peach Open Movie Team"
[20]=>
string(56) " composer : Sacha Goedegebure / Ton Roosendaal"
[21]=>
string(35) " encoder : Lavf55.33.100"
[22]=>
string(59) " Duration: 00:09:56.58, start: 0.058000, bitrate: 663 kb/s"
[23]=>
string(88) " Stream #0:0: Video: h264 (High), yuv420p, 640x360, 24.42 fps, 24 tbr, 1k tbn, 48 tbc"
[24]=>
string(61) " Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s"
[25]=>
string(90) "[h263 @ 0x1ef5f60] The specified picture size of 640x360 is not valid for the H.263 codec."
[26]=>
string(77) "Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+."
[27]=>
string(33) "Output #0, 3gp, to 'outfile.3gp':"
[28]=>
string(11) " Metadata:"
[29]=>
string(25) " major_brand : M4V"
[30]=>
string(23) " minor_version : 1"
[31]=>
string(39) " compatible_brands: M4V M4A mp42isom"
[32]=>
string(26) " date : 2008"
[33]=>
string(71) " copyright : © 2008 Blender Foundation | www.bigbuckbunny.org"
[34]=>
string(36) " title : Big Buck Bunny"
[35]=>
string(43) " artist : Peach Open Movie Team"
[36]=>
string(56) " composer : Sacha Goedegebure / Ton Roosendaal"
[37]=>
string(35) " encoder : Lavf55.33.100"
[38]=>
string(60) " Stream #0:0: Video: h263, none, q=2-31, 128 kb/s, 24 fps"
[39]=>
string(13) " Metadata:"
[40]=>
string(42) " encoder : Lavc56.39.101 h263"
[41]=>
string(52) " Stream #0:1: Audio: amr_nb, 0 channels, 128 kb/s"
[42]=>
string(13) " Metadata:"
[43]=>
string(55) " encoder : Lavc56.39.101 libopencore_amrnb"
[44]=>
string(15) "Stream mapping:"
[45]=>
string(54) " Stream #0:0 -> #0:0 (h264 (native) -> h263 (native))"
[46]=>
string(66) " Stream #0:1 -> #0:1 (mp3 (native) -> amr_nb (libopencore_amrnb))"
[47]=>
string(119) "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"
} -
ffmpeg and carrierwave with Heroku
20 mai 2015, par duques_lI try to use the two following gems on Heroku :
gem 'carrierwave-video'
gem 'carrierwave-video-thumbnailer'Then, I need ffmpeg. I tried many different
.buildpacks
but I always have an error when I try to upload a video and encode it into mp4 format.With https://github.com/shunjikonishi/heroku-buildpack-ffmpeg, I’ve got :
ffmpeg version git-2013-06-02-5711e4f Copyright (c) 2000-2013 the FFmpeg developers
2015-05-20T17:16:52.195610+00:00 app[web.1]: built on Jun 2 2013 07:38:40 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
2015-05-20T17:16:52.195611+00:00 app[web.1]: configuration: --enable-shared --disable-asm --prefix=/app/vendor/ffmpeg
2015-05-20T17:16:52.195612+00:00 app[web.1]: libavutil 52. 34.100 / 52. 34.100
2015-05-20T17:16:52.195614+00:00 app[web.1]: libavcodec 55. 13.100 / 55. 13.100
2015-05-20T17:16:52.195615+00:00 app[web.1]: libavformat 55. 8.102 / 55. 8.102
2015-05-20T17:16:52.195617+00:00 app[web.1]: libavdevice 55. 2.100 / 55. 2.100
2015-05-20T17:16:52.195618+00:00 app[web.1]: libavfilter 3. 74.101 / 3. 74.101
2015-05-20T17:16:52.195619+00:00 app[web.1]: libswscale 2. 3.100 / 2. 3.100
2015-05-20T17:16:52.195621+00:00 app[web.1]: libswresample 0. 17.102 / 0. 17.102
2015-05-20T17:16:52.195622+00:00 app[web.1]: Unrecognized option 'preset'.
2015-05-20T17:16:52.195623+00:00 app[web.1]: Error splitting the argument list: Option not found
2015-05-20T17:16:52.195625+00:00 app[web.1]:
2015-05-20T17:16:52.195626+00:00 app[web.1]: Errors: no output file created.With https://github.com/HYPERHYPER/heroku-buildpack-ffmpeg, I’ve got :
ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers
2015-05-20T17:12:15.849778+00:00 app[web.1]: built on Jan 14 2015 21:42:21 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
2015-05-20T17:12:15.849779+00:00 app[web.1]: configuration: --enable-libtheora --enable-libvorbis --prefix=/app/vendor/ffmpeg
2015-05-20T17:12:15.849781+00:00 app[web.1]: libavutil 54. 15.100 / 54. 15.100
2015-05-20T17:12:15.849783+00:00 app[web.1]: libavcodec 56. 13.100 / 56. 13.100
2015-05-20T17:12:15.849784+00:00 app[web.1]: libavformat 56. 15.102 / 56. 15.102
2015-05-20T17:12:15.849785+00:00 app[web.1]: libavdevice 56. 3.100 / 56. 3.100
2015-05-20T17:12:15.849787+00:00 app[web.1]: libavfilter 5. 2.103 / 5. 2.103
2015-05-20T17:12:15.849788+00:00 app[web.1]: libswscale 3. 1.101 / 3. 1.101
2015-05-20T17:12:15.849789+00:00 app[web.1]: libswresample 1. 1.100 / 1. 1.100
2015-05-20T17:12:15.849791+00:00 app[web.1]: Unrecognized option 'preset'.
2015-05-20T17:12:15.849793+00:00 app[web.1]: Error splitting the argument list: Option not found
2015-05-20T17:12:15.849794+00:00 app[web.1]:
2015-05-20T17:12:15.849795+00:00 app[web.1]: Errors: no output file created.With https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest, I’ve got :
2015-05-20T16:54:10.259031+00:00 app[web.1]: ffmpeg version 2.6.3- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
2015-05-20T16:54:10.259032+00:00 app[web.1]: built with gcc 4.9.2 (Debian 4.9.2-16)
2015-05-20T16:54:10.259035+00:00 app[web.1]: configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
2015-05-20T16:54:10.259037+00:00 app[web.1]: libavutil 54. 20.100 / 54. 20.100
2015-05-20T16:54:10.259039+00:00 app[web.1]: libavcodec 56. 26.100 / 56. 26.100
2015-05-20T16:54:10.259040+00:00 app[web.1]: libavformat 56. 25.101 / 56. 25.101
2015-05-20T16:54:10.259042+00:00 app[web.1]: libavdevice 56. 4.100 / 56. 4.100
2015-05-20T16:54:10.259043+00:00 app[web.1]: libavfilter 5. 11.102 / 5. 11.102
2015-05-20T16:54:10.259044+00:00 app[web.1]: libswscale 3. 1.101 / 3. 1.101
2015-05-20T16:54:10.259046+00:00 app[web.1]: libswresample 1. 1.100 / 1. 1.100
2015-05-20T16:54:10.259047+00:00 app[web.1]: libpostproc 53. 3.100 / 53. 3.100
2015-05-20T16:54:10.259048+00:00 app[web.1]: Input #0, flv, from '/app/public/uploads/tmp/1432140850-3-8809/test2.flv':
2015-05-20T16:54:10.259049+00:00 app[web.1]: Metadata:
2015-05-20T16:54:10.259050+00:00 app[web.1]: canSeekToEnd : true
2015-05-20T16:54:10.259052+00:00 app[web.1]: metadatacreator : FlvEncoder v0.9 Lee Felarca
2015-05-20T16:54:10.259053+00:00 app[web.1]: Duration: 00:00:10.00, start: 0.000000, bitrate: 3734 kb/s
2015-05-20T16:54:10.259054+00:00 app[web.1]: Stream #0:0: Video: flashsv, bgr24, 320x240, 5 fps, 5 tbr, 1k tbn, 1k tbc
2015-05-20T16:54:10.259055+00:00 app[web.1]: Stream #0:1: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
2015-05-20T16:54:10.259057+00:00 app[web.1]: Please use -q:a or -q:v, -qscale is ambiguous
2015-05-20T16:54:10.259058+00:00 app[web.1]: Unknown encoder 'libfaac'
2015-05-20T16:54:10.259059+00:00 app[web.1]:
2015-05-20T16:54:10.259060+00:00 app[web.1]: Errors: no output file created.What should I do in order to be able to encode my videos to mp4 format ?