
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (86)
-
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 (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (11855)
-
Error decoding timecode using ffprobe
16 novembre 2016, par Pablo MontillaI’m using
ffprobe
to get timecode from anmxf
which has DF timecode but with a non DF frame rate. I’m getting the errorDrop frame is only allowed with 30000/1001 or 60000/1001 FPS
.I’m running
ffprobe -i "IMX 10Bit.mxf"
and getting the following :ffprobe version 3.2 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[mxf @ 00000000025a3660] Drop frame is only allowed with 30000/1001 or 60000/1001 FPS
Input #0, mxf, from 'IMX 10Bit.mxf':
Metadata:
uid : 2b3801ea-ec5e-4dc1-ab3a-dba9a2b30ce4
generation_uid : 2b3801ea-ec5e-4dc2-ab3a-dba9a2b30ce4
product_uid : 00000000-0000-0000-0000-000000000000
modification_date: 2009-11-04T10:39:42.000000Z
material_package_umid: 0x060A2B340101010501010D43130000005C91020063D700800210F3FFFE154618
Duration: 00:00:19.52, start: 0.000000, bitrate: 62580 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, top first), 720x608 [SAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Metadata:
file_package_umid: 0x060A2B340101010501010D43130000005D91020063D700800210F3FFFE154618
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 4 channels, s32 (24 bit), 4608 kb/s
Metadata:
file_package_umid: 0x060A2B340101010501010D43130000005D91020063D700800210F3FFFE154618 -
How to compile ffmpeg-0.10.3 on windows with cygwin and android ndk r5
19 avril 2014, par Vikram MahalI want to compile ffmpeg on windows with cygwin and android ndk.
I found this link very useful because there is step to step guide to compile ffmpeg.Does anyone find this useful ? - Compiling FFMPEG on Windows with Cywin and NDK r5
But at last point when i am going to create .so file i got this error in cygwin bash.
CONSOLE OUTPUT :
vikram mahal@vikrammahal-PC ~
$ cd /cygdrive/c/ffmpeg-0.10.3
vikram mahal@vikrammahal-PC /cygdrive/c/ffmpeg-0.10.3
$ dos2unix build_android.sh
dos2unix: converting file build_android.sh to Unix format ...
vikram mahal@vikrammahal-PC /cygdrive/c/ffmpeg-0.10.3
$ ./build_android.sh
)/configure: line 10: warning: setlocale: LC_ALL: cannot change locale (C
': not a valid identifierort: `LC_ALL
./configure: line 14: syntax error near unexpected token `$'{\r''
'/configure: line 14: `try_exec(){
./build_android.sh: line 54: make: command not found
./build_android.sh: line 55: make: command not found
C:\android-ndk-r5\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\ar
m-linux-androideabi-ld.exe: cannot open output file ./android/armv7-a/libffmpeg.
so: No such file or directory -
ffmpeg command executes via command line, but not via PHP script
20 juin 2021, par Mihail MinkovI am working on a simple video upload and compression system and I am currently using the following process.



First Step



I use a
multipart/form-data
to upload the original video file, which I store in/var/www/site/videos_pre/video.mp4
. My public folder isvar/www/site/public_html/
. I store an entry in my database with the video information.


Second step



I have a converter process which is very basic, but does the job (at least in CLI).



It has the following code :



public function converter($content_id)
{
 $content = $this->videos_m->get($content_id);

 $id = uniqid();
 $name_mp4 = $content->name_slug.'_'.$id.'.mp4';
 $name_webm = $content->name_slug.'_'.$id.'.webm';

 $command_mp4 = 'ffmpeg -i ../videos_pre/'.$content->original_file.' -b:v 1500k -bufsize 1500k ./videos/'.$name_mp4;
 system($command_mp4);

 $command_webm = 'ffmpeg -i ./videos/'.$name_mp4.' -c:v vp9 -c:a libvorbis ./videos/'.$name_webm;
 system($command_webm);

 $update_video = new stdClass();
 $update_video->archivo_mp4 = $name_mp4;
 $update_video->archivo_webm = $name_webm;

 $this->db->where('content_id', $content_id);
 $this->db->update('Videos', $update_video);
}




Third step - where the problem occurs



I have tested this on Windows 10 and Ubuntu 18.04. The code works on Windows 10 in both php and cli. The code on Ubuntu only works with cli.



The resulting commands are something like this :



// First command to reduce the bitrate of the mp4
ffmpeg -i /var/www/site/videos_pre/video.mp4 -b:v 1500k -bufsize 1500k /var/www/site/public_html/videos/video_5e757d3e0d762.mp4

// Second command to convert the mp4 to a webm to get both types
ffmpeg -i /var/www/site/public_html/videos/video_5e757d3e0d762.mp4 -c:v vp9 -c:a libvorbis /var/www/site/public_html/videos/video_5e757d3e0d762.webm




If I execute those commands they work perfectly. If I run the php script, be it in the browser or via CLI, literally nothing happens. No error messages nothing.



I am not sure if it's a permission issue, if there's something specific for php to run this, or some module I've not activated. I have enough execution time, I have it at 600 seconds, but as I said it doesn't even take time, it just does nothing.



I can even echo the commands and they appear. So, basically the problem is I need to be able to run those commands from PHP. I did it on Windows, but Ubuntu 18.04 won't let me. Both OSs have ffmpeg recently installed and I've been able to convert on both of them.



I tried changing paths from absolute to relative, no difference at all.