
Recherche avancée
Autres articles (43)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (6849)
-
Revision 65f13afd7d : Fix building for arm with Visual Studio 2013 The microsoft build tools explicit
4 mai 2014, par Martin StorsjoChanged Paths :
Modify /build/make/configure.sh
Modify /build/make/gen_msvs_vcxproj.sh
Fix building for arm with Visual Studio 2013The microsoft build tools explicitly disallow building for arm in
the "desktop" target configuration ; one has to target "Windows
Store" apps (aka WinRT/Metro) or Windows Phone. In Visual Studio
2012, one could just pick the v110_wp80 toolset which made the
vcxproj files buildable. In Visual Studio 2013, picking the v120_wp81
toolset isn’t enough - one has to configure the vcxproj files
as an "AppContainerApplication". This has the implication that
you can’t just build a plain .exe (such as the examples) - an .exe
project would need to have an AppxManifest file. Therefore we can
only build the library itself.If loaded into Visual Studio for Windows (the Windows Store/Phone
version of Visual Studio, not the Desktop one), the obj_int_extract
project is omitted since it’s treated as incompatible. Building
from the command line with msbuild works fine though.The armv7-win32-vs12 target was added as part of a638bdf4 even
though actual use of it hadn’t been tested.Change-Id : Iee8088252cf790317aeb6b417d29058225f1f629
-
Carrierwave-video "Process hung" error while encoding uncompressed video files
28 avril 2014, par CrampsI have an API for a mobile app that accepts video uploads. This app is for both iOS and Android devices, so for video compatibility’s sake these videos are encoded to H.264 once uploaded to the server using carrierwave-video (ffmpeg wrapper gem for Ruby on Rails). Right now this seems to be working, and videos are uploaded and encoded and can be played in both Android and iOS devices. However, sometimes the process hangs while encoding heavy (uncompressed ?) video files, usually 10+ seconds long. This is the output of ffmpeg :
Failed to transcode with FFmpeg.
Check ffmpeg install and verify video is not corrupt or cut short.
Original error: Process hung. Full output:(That’s it, the full output seems empty.)
These are the encoding parameters I’m using in my Carrierwave Uploader :
encode_video(:mp4, custom: '-y -vcodec libx264 -acodec libfaac -vpre ultrafast 2> /home/user/log/ffmpeg.log, resolution: '640x640')
According to the SuperUser question I linked above a solution would be to encode the video twice, once to AVI for compression(?) and then encode to MP4. I don’t know if that would work, but I don’t know how to do this either in my uploader. I would have to encode the output video file of my first (AVI) encoding process.
Now that there’s some context, my question is : How can I solve this "Process hung" error ?
In case the answer to that is to go with this double encoding method suggested, how can I achieve this using Carrierwave-video ?
One last note is that if I try to encode these videos using
ffmpeg
straight from command-line the videos encode and playback successfully.Thank you for your time !
PD : Wasn’t sure if I should add ruby-on-rails tag. I’ll remove it if necessary !
Edit
This is what I get fromffmpeg -i filename.mp4
ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 30 2013 11:26:53 with gcc 4.5.4
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -march=athlon64 -pipe' --extra-cflags='-O2 -march=athlon64 -pipe' --extra-cxxflags='-O2 -march=athlon64 -pipe' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --enable-openssl --enable-nonfree --enable-libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libaacplus --enable-nonfree --enable-libfaac --enable-nonfree --disable-indev=v4l --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libvpx --enable-libope libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/user/api/uploads/tmp/e54zfghzt9.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2014-04-23 14:56:19
Duration: 00:00:14.27, start: 0.000000, bitrate: 20757 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 20993 kb/s, SAR 65536:65536 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2014-04-23 14:56:19
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 190 kb/s
Metadata:
creation_time : 2014-04-23 14:56:19
handler_name : SoundHandleThen it just starts buffering as such :
time=00:00:13.20 bitrate=2533.2kbits/s
frame= 405 fps= 7 q=24.0 size= 4083kB time=00:00:13.20 bitrate=2533.2kbits/s
frame= 407 fps= 7 q=24.0 size= 4083kB time=00:00:13.20 bitrate=2533.2kbits/s
frame= 409 fps= 7 q=24.0 size= 4083kB time=00:00:13.20 bitrate=2533.2kbits/s
frame= 412 fps= 7 q=24.0 size= 4083kB time=00:00:13.20 bitrate=2533.2kbits/s
frame= 417 fps= 7 q=24.0 size= 4083kB time=00:00:13.20 bitrate=2533.2kbits/s
frame= 417 fps= 7 q=24.0 Lsize= 4194kB time=00:00:13.90 bitrate=2471.5kbits/s
video:3957kB audio:223kB global headers:0kB muxing overhead 0.310939%
[libx264 @ 0x7f28327ccc50] frame I:2 Avg QP:21.50 size: 25120
[libx264 @ 0x7f28327ccc50] frame P:415 Avg QP:25.32 size: 9642
[libx264 @ 0x7f28327ccc50] mb I I16..4: 35.8% 0.0% 64.2%
[libx264 @ 0x7f28327ccc50] mb P I16..4: 8.4% 0.0% 3.2% P16..4: 43.6% 19.0% 5.6% 0.0% 0.0% skip:20.2%
[libx264 @ 0x7f28327ccc50] coded y,uvDC,uvAC intra: 45.2% 53.6% 27.3% inter: 39.4% 27.6% 2.7%
[libx264 @ 0x7f28327ccc50] i16 v,h,dc,p: 28% 57% 11% 5%
[libx264 @ 0x7f28327ccc50] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 66% 11% 1% 1% 1% 2% 1% 2%
[libx264 @ 0x7f28327ccc50] i8c dc,h,v,p: 23% 58% 17% 3%
[libx264 @ 0x7f28327ccc50] kb/s:2331.88`
-
Unrecognized option 'c:v' ffmpeg error for converting videos to H264
16 mai 2015, par user3528346I told my server to upgrade to latest version of ffmpeg and they told me they did and I have the latest version that is 2.2.1 .
I test several codes to convert a video to x264 , here is the one ;passthru("$ffmpegpath -i aatest/a.AVI -c:v libx264 -c:a libfaac -preset veryslow -qp 0 aatest/output.mp4 2>&1");
the result
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat
4.4.5-6) configuration : —prefix=/usr —libdir=/usr/lib64 —shlibdir=/usr/lib64 —mandir=/usr/share/man —incdir=/usr/include —disable-avisynth —extra-cflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC’ —enable-avfilter —enable-avfilter-lavf —enable-libdc1394 —enable-libdirac —enable-libfaac —enable-libfaad —enable-libfaadbin —enable-libgsm —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-librtmp —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-libx264 —enable-gpl —enable-nonfree —enable-postproc —enable-pthreads —enable-shared —enable-swscale —enable-vdpau —enable-version3 —enable-x11grab libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc
51. 2. 0 / 51. 2. 0 [mpeg4 @ 0x1111960]Invalid and inefficient vfw-avi packed B frames detected [mpeg4 @ 0x1111960]frame skip 8 Input #0,
avi, from ’aatest/a.AVI’ : Duration : 00:02:04.04, start : 0.000000,
bitrate : 885 kb/s Stream #0.0 : Video : mpeg4, yuv420p, 480x360 [PAR 4:3
DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0.1 : Audio : mp3, 44100 Hz, 2
channels, s16, 128 kb/s Unrecognized option ’c:v’the last line says "Unrecognized option ’c:v’"
What should I do ?
Thanks