
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (9055)
-
FFMPEG cannot encode .MP4 to usable .Y4M RAW video : "Operation not permitted"
26 janvier 2020, par Ham789I am running ffmpeg version 4.2.2 on macOS Sierra and I cannot decode a RAW video.
First I create the .Y4M video :
ffmpeg -y -i inputfolder/GH012088.MP4 temp_raw_video.Y4M
Then I try to input it to ffmpeg :
ffmpeg -i temp_raw_video.Y4M
However I get the following error in the terminal :
temp_raw_video.Y4M: Operation not permitted
I have checked the permissions for the ’temp_raw_video.Y4M’ file and I have both read and write permissions.
I have tried the above with .MOV videos from an iPhone and it works fine.
The problem seems to be with the .MP4 videos I am trying to convert. These videos were taken with a GoPro camera.
What is going on here ? Please see the GH012088.MP4 file info below :
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb9b6809400] Using non-standard frame rate 29/1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputfolder/GH012088.MP4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
creation_time : 2019-12-28T14:12:04.000000Z
firmware : HD7.01.01.61.00
Duration: 00:00:40.47, start: 0.000000, bitrate: 60267 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 60015 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
timecode : 14:40:34:06
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro AAC
timecode : 14:40:34:06
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro TCD
timecode : 14:40:34:06
Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 37 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc / 0x63736466), 10 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro SOSHere is the output log for creating the .Y4M :
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa9da802200] Using non-standard frame rate 29/1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputfolder/GH012088.MP4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
creation_time : 2019-12-28T14:12:04.000000Z
firmware : HD7.01.01.61.00
Duration: 00:00:40.47, start: 0.000000, bitrate: 60267 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 60015 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
timecode : 14:40:34:06
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro AAC
timecode : 14:40:34:06
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro TCD
timecode : 14:40:34:06
Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 37 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc / 0x63736466), 10 kb/s (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro SOS
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, yuv4mpegpipe, to 'temp_raw_video.Y4M':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
firmware : HD7.01.01.61.00
encoder : Lavf58.29.100
Stream #0:0(eng): Video: wrapped_avframe, yuvj420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
Metadata:
creation_time : 2019-12-28T14:12:04.000000Z
handler_name : GoPro AVC
timecode : 14:40:34:06
encoder : Lavc58.54.100 wrapped_avframe
frame= 43 fps=0.0 q=-0.0 size= 522240kB time=00:00:01.43 bitrate=2981801.3kbiframe= 92 fps= 90 q=-0.0 size= 1117696kB time=00:00:03.06 bitrate=2982723.8kbiframe= 144 fps= 95 q=-0.0 size= 1749504kB time=00:00:04.80 bitrate=2982837.3kbiframe= 190 fps= 94 q=-0.0 size= 2308352kB time=00:00:06.33 bitrate=2982809.6kbiframe= 241 fps= 95 q=-0.0 size= 2928128kB time=00:00:08.04 bitrate=2982978.5kbiframe= 287 fps= 94 q=-0.0 size= 3486976kB time=00:00:09.57 bitrate=2982937.8kbiframe= 336 fps= 95 q=-0.0 size= 4082176kB time=00:00:11.21 bitrate=2982837.3kbiframe= 388 fps= 96 q=-0.0 size= 4713984kB time=00:00:12.94 bitrate=2982864.2kbiframe= 436 fps= 96 q=-0.0 size= 5297152kB time=00:00:14.54 bitrate=frame= 1213 fps= 95 q=-0.0 Lsize=14737957kB time=00:00:40.47 bitrate=2983002.4kbits/s speed=3.19x
video:635kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2321095.250000% -
FFmpeg fails to build : Undefined symbols for architecture x86_64 : libavfilter.a(af_asr.o)
4 février 2020, par Joy JinError while building FFmpeg.
macOS High Sierra 10.13.6
FFmpeg 4.2Configuration Options :
configure --enable-gpl --enable-version3 --enable-nonfree --enable-gray --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gmp --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcelt --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libjack --enable-libklvanc --enable-libkvazaar --enable-liblensfun --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencv --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-librtmp --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtensorflow --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxavs2 --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxcb-shape --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-decklink --enable-libmysofa --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-pocketsphinx --enable-vapoursynth --pkg-config-flags=--static
Output :
Undefined symbols for architecture x86_64:
"_cmd_ln_free_r", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_cmd_ln_parse_r", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_args", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_default_search_args", referenced from:
_asr_init in libavfilter.a(af_asr.o)
"_ps_end_utt", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_free", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_ps_get_hyp", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_get_in_speech", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_init", referenced from:
_asr_init in libavfilter.a(af_asr.o)
(maybe you meant: _ff_ps_init_fixed, _ff_ps_init )
"_ps_process_raw", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
"_ps_start_utt", referenced from:
_filter_frame in libavfilter.a(af_asr.o)
_config_input in libavfilter.a(af_asr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: [ffmpeg_g] Error 1 (ignored)Full Output is available here : https://github.com/sclsj/ffmpeg-error
Edit : after adding -lpocketsphinx to the argument in make -n, I reduced the number of errors :
Undefined symbols for architecture x86_64:
"_cmd_ln_free_r", referenced from:
_asr_uninit in libavfilter.a(af_asr.o)
"_cmd_ln_parse_r", referenced from:
_asr_init in libavfilter.a(af_asr.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) -
Error opening video file with openCV cv2VideoCapture
7 juillet 2020, par kolloI have a video file here /data/out.mp4 and its copy /data/out. 
I'm on Osx Sierra with Xcode 8.



Open video with mp4 extension is ok but get error with no extension or any other format.



I tryed opencv 2.4 and latest 3.2 from git.
Compiled with ffmpeg release/2.0 and also tryed release/3.0



With opencv version 3.2 :



Python 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.2.0-dev'
>>> cv2.__file__
'/Users/johndoe/work/myproject/venv/local/lib/python2.7/site-packages/cv2.so'




If video have extension :



>>> v=cv2.VideoCapture('/data/out.mp4')
>>> v.get(cv2.CAP_PROP_FRAME_COUNT)
61117.0




If video have no extension :



>>> v=cv2.VideoCapture('/data/out')
VIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!

>>> v.get(cv2.CAP_PROP_FRAME_COUNT)
0.0




My FFmpeg configure :



./configure --prefix=/usr \
--bindir=/usr/local/bin/ \
--shlibdir=/usr/lib64 \
--datadir=/usr/share/ffmpeg \
--incdir=/usr/include/ffmpeg \
--libdir=/usr/lib64 \
--mandir=/usr/share/man \
--extra-cflags='-O2 -g' \
--extra-version=rpmfusion \
--enable-bzlib \
--enable-nonfree \
--enable-libopenjpeg \
--enable-libx264 \
--enable-avfilter \
--enable-postproc \
--enable-pthreads \
--disable-static \
--enable-shared \
--enable-gpl \
--enable-runtime-cpudetect \
--arch=x86_64




My opencv CMAKE :



cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/Users/johndoe/work/myproject/venv/local/ \
-D INSTALL_C_EXAMPLES=OFF \
-D PYTHON_PACKAGES_PATH=/Users/johndoe/work/myproject/venv/lib/python2.7/site-packages \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D PYTHON_EXECUTABLE=/Users/johndoe/work/myproject/venv/bin/python \
-D WITH_CUDA=OFF ..




I tryed various other formats reencoding my original video (ie : ffmpeg -i out.mp4 out.asf) :



>>> v=cv2.VideoCapture('/data/out.avi')
VIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!

>>> v=cv2.VideoCapture('/data/out.flv')
VIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!

>>> v=cv2.VideoCapture('/data/out.asf')
VIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!