
Recherche avancée
Autres articles (40)
-
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4710)
-
Debian ffmpeg working in terminal but not in php
30 octobre 2013, par user2938660I reinstalled ffmpeg on debian and php exec doesn't work for me anymore when called from php. I'm using :
if ($success_msg)
{
$tmp_parts = explode('.', $file['name']);
$ext = array_pop($tmp_parts);
$ext = strtolower($ext);
if($ext == "avi" && $convert_avi == true)
{
$convert_source = _VIDEOS_DIR_PATH.$new_name;
$conv_name = substr(md5($file['name'].rand(1,888)), 2, 10).".mp4";
//$conv_name2 = substr(md5($file['name'].rand(1,888)), 2, 10).".mp4";
$converted_file = _VIDEOS_DIR_PATH.$conv_name;
//$fastarted_file = _VIDEOS_DIR_PATH.$conv_name2;
$ffmpeg_command = 'ffmpeg -i '.$convert_source.' -r 20 -g 40 -acodec libfaac -ar 44100 -ab 96k -vcodec libx264 -sameq '.$converted_file;
//$faststart_command = "qt-faststart ".$converted_file." ".$fastarted_file;
shell_exec($ffmpeg_command);
unlink($convert_source);
//shell_exec($faststart_command);
$sql = "UPDATE pm_temp SET url = '".$conv_name."' WHERE url = '".$new_name."' LIMIT 1";
$result = @mysql_query($sql);
}
echo $success_msg;this code to convert videos and ffmpeg output is :
root@1tb:~# ffmpeg -version
ffmpeg version git-2013-10-28-f1f0b01
built on Oct 29 2013 02:05:45 with gcc 4.4.5 (Debian 4.4.5-8)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
libavutil 52. 48.100 / 52. 48.100
libavcodec 55. 39.100 / 55. 39.100
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
root@1tb:~#in terminal it works fine just via php not im sure this is server problem and exec is enabled.
-
Extract files from mpeg video
28 octobre 2013, par A Dark Divided GemVideos created with Camtasia can be shared on the web by exporting the project for the TechSmith Smart Player. The video is exported in the "H264 - MPEG-4 AVC (part10) (avc1)" codec and the export also includes other custom XML, JavaScript and SWF files used by the TechSmith Smart Player.
These custom files are also "burnt" into the video itself. For example the contents of the XML file can be viewed when opening the MP4 video in a text editor. This allows other services to only ask for the MP4 file when uploading Camtasia videos.
Therefore my question is how do you extract text and binary files from a MP4 video file ? For this project I am limited to Java but I am happy to call an external executable as well.
I tried the "-dump_attachment" option in FFmpeg but that didn't work and I am out of ideas.
C :\Users\Desktop>ffmpeg -dump_attachment:t "" -i getting-started-project.mp4 ffmpeg version N-57448-gc78a416 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 26 2013 18:08:54 with gcc 4.8.2 (GCC) configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-av isynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enab le-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetyp e —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —ena ble-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-l ibopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libsp eex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aa cenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavp ack —enable-libx264 —enable-libxavs —enable-libxvid —enable-zlib libavutil 52. 47.101 / 52. 47.101 libavcodec 55. 38.101 / 55. 38.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 89.100 / 3. 89.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'getting-started-project.mp4' : Metadata : major_brand : mp42 minor_version : 0 compatible_brands : isommp42 creation_time : 2013-10-24 15:53:19 artist : description : title : Untitled Duration : 00:05:41.12, start : 0.000000, bitrate : 314 kb/s Stream #0:0(eng) : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 6 40x360 [SAR 1:1 DAR 16:9], 185 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata : creation_time : 2013-10-24 15:53:19 handler_name : Mainconcept MP4 Video Media Handler Stream #0:1(eng) : Audio : aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 12 5 kb/s (default) Metadata : creation_time : 2013-10-24 15:53:19 handler_name : Mainconcept MP4 Sound Media Handler At least one output file must be specified
Update : It appears the XML is contained within a custom UUID atom and I just need a way of extracting that.
Thanks
-
FFMpeg metadata issue
12 février 2015, par TameHogwhenever I run ffmpeg -i filename it returns something like this :
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2010-07-16 18:33:45
Duration: 00:00:24.00, start: 0.000000, bitrate: 2443 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s
Metadata:
creation_time : 2010-07-16 18:33:45
handler_name : Mainconcept MP4 Sound Media Handler
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2311 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
Metadata:
creation_time : 2010-07-16 18:33:46
handler_name : Mainconcept MP4 Video Media HandlerExcept when I run it from java using :
ProcessBuilder pb = new ProcessBuilder(new String[]{"ffmpeg", "-i", "filename"});
pb.redirectErrorStream(true);
try{
Process p = pb.start();
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String bs = "";
while(br.readLine() != null){
bs += br.readLine();
bs += "\n";
}
return bs;
}catch(IOException e){
e.printStackTrace();
}it gives me this :
built on Jun 17 2013 23:20:06 with gcc 4.6 (GCC)
Metadata:
minor_version : 0
creation_time : 2010-07-16 18:33:45
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s
creation_time : 2010-07-16 18:33:45
Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2311 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
creation_time : 2010-07-16 18:33:46
At least one output file must be specifiedHow come when I run it from cmd I get way more data ? Can anybody tell me what I am doing wrong ?