
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (45)
-
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 (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Les images
15 mai 2013
Sur d’autres sites (4714)
-
FFMpeg Android Stagefright SIGSEGV error (h264 decode)
19 avril 2013, par Sergey OchkurI need to decode h264 file to YUV on Android 2.3+. As I understand I need to communicate with Stagefright, as it`s the only way now, after closing access with OpenMAX IL implementations. I have used FFmpeg 0.10 (and tried 0.9/0.9.1..) for this issue, compiled it with NDK7 (and also tried NDK6b with the same result) :
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 28 2012 14:42:37 with gcc 4.4.3
configuration: --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --sysroot=/home/grid/Android/Android_NDK/platforms/android-9/arch-arm --disable-avdevice --disable-decoder=h264 --disable-decoder=h264_vdpau --enable-libstagefright-h264 --prefix=build/stagefright/armeabi-v7a --extra-cflags='-Iandroid-source/frameworks/base/include -Iandroid-source/system/core/include -Iandroid-source/frameworks/base/media/libstagefright -Iandroid-source/frameworks/base/include/media/stagefright/openmax -I/home/grid/Android/Android_NDK/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-Wl,--fix-cortex-a8 -Landroid-libs -Wl,-rpath-link,android-libs' --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...Hardware : Beagleboard-Xm + TI Android 2.3 (official)
So, entering next command give me error with 480p :
ffmpeg -i /sdcard/Video/480p.mp4Stopped (signal) ffmpeg -i /sdcard/Video/480p.mp4
Full Android "answer" from ADB Logcat :
http://pastebin.com/76JLgtXXAndroid-developers, does anybody know what this error means and how to deal with it ?
I tried to make DSP window bigger, but with no luck.
Commands like "stagefright /sdcard/Video/480p.mp4" works fine.P.S. Additionally I found that on some bigger files (720p) Android answers next :
[libstagefright_h264 @ 0xd479b0] Decode failed : 80000000
-
Revision 5e3439bbf7 : sad_test : fix msvc compile Fixes : error C2121 : '#' : invalid character : possib
30 mai 2013, par James ZernChanged Paths :
Modify /test/sad_test.cc
sad_test : fix msvc compileFixes :
error C2121 : '#' : invalid character : possibly the result of a macro expansionChange-Id : I63d7ebba29f3a3cbb546406be39270290e9dc47d
(cherry picked from commit a91e5b4fdc4e81352fa3a65c7fc795527eee6b07) -
FFMPEG works in command prompt. Not in PHP - is_executable() is true
3 juillet 2012, par Dutchie432I am trying to run FFMPEG (windows library) on a video to create a thumbnail for it. The commands run perfectly from the command propmpt, but do not work from PHP. I have double-checked my permissions and the IIS user has full access to the directory. In addition,
is_executable()
returns true on the file. I'm pretty sure this isn't a permissions issue.I feel just as strongly that is probably an escaping issue and am having a hard time finding the correct combination here.
when I tried doing
$test = system ($cmd, $returnVal);
and echoing$test
, it was blank (false ?).Am I missing something ?
PHP Code with 3 different methods of trying to execute the command
$ffmpeg = dirname(__FILE__) .'\files\video\ffmpeg.exe';
echo "<strong>ffmpeg location:</strong> ".$ffmpeg.'<br /><br />';
if (file_exists($ffmpeg)) echo "file_exists() = true<br /><br />";
if (is_executable($ffmpeg)) echo "is_executable() = true<br /><br />";
//Attempt 1
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&1";
echo "<strong>Executing</strong>: ".$cmd."<br /><br />";
system ($cmd, $returnValue);
echo "Return Value: $returnValue<br /><hr /><br />";
//Attempt 2
$cmd2= escapeshellcmd($cmd);
echo "<strong>Executing</strong>: ".$cmd2."<br /><br />";
system ($cmd2, $returnValue);
echo "Return Value: $returnValue<br /><hr /><br />";
//Attempt 3
$cmd3 = str_replace('\\',"\\\\",escapeshellarg($ffmpeg)." -i ".escapeshellarg($video)." -deinterlace -an -ss $second -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg ".escapeshellarg($image)." 2>&1");
echo "<strong>Executing</strong>: ".$cmd3."<br /><br />";
system ($cmd3, $returnValue);
echo "Return Value: $returnValue<br /><hr /><br />";RESUTLS (all result in -1)
ffmpeg location: C:\www\alphacom\files\video\ffmpeg.exe
file_exists() = true
is_executable() = true
Executing: C:\www\alphacom\files\video\ffmpeg.exe -i C:\www\alphacom\files\video\test_video_ae.avi -deinterlace -an -ss 1 -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg C:\www\alphacom\files\video\test_video_ae.jpg 2>&1
Return Value: -1
Executing: C:^\www^\alphacom^\files^\video^\ffmpeg.exe -i C:^\www^\alphacom^\files^\video^\test_video_ae.avi -deinterlace -an -ss 1 -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg C:^\www^\alphacom^\files^\video^\test_video_ae.jpg 2^>^&1
Return Value: -1
Executing: "C:\\www\alphacom\\files\\video\\ffmpeg.exe" -i "C:\\www\\alphacom\\files\\video\\test_video_ae.avi" -deinterlace -an -ss 1 -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg "C:\\www\\alphacom\\files\\video\\test_video_ae.jpg" 2>&1
Return Value: -1
Executing: \"C:\\www\\alphacom\\files\\video\\ffmpeg.exe\" -i \"C:\\www\\alphacom\\files\\video\\test_video_ae.avi\" -deinterlace -an -ss 1 -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg \"C:\\www\\alphacom\\files\\video\\test_video_ae.jpg\" 2>&1
Return Value: -1UPDATED DEBUG CODE
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:16 -r 1 -y -vcodec mjpeg -f mjpeg $image 2>&1";
echo "<strong>Executing</strong>: ".$cmd."<br /><br />";
$test = system($cmd, $returnValue);
echo "Return Value: $returnValue<br /><hr /><br />";
var_dump($test);$test
yieldsNULL