
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (34)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
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 -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (8180)
-
Set input frame rate in pygame.Camera
14 mai 2018, par Thomas HubregtsenI am trying to get an input stream from a webcam on OS X
self.capture = pygame.camera('/dev/video{}'.format(camera),
(640, 480), 'RGB')I get an error (see below), but there are 2 pieces of information that I can not really stitch together. On first sight, it looks like I do not have the correct camera (not video4linux). However, when running
ffmpeg -f avfoundation -list_devices true -i ""
I get it listed
[AVFoundation input device @ 0x7fbb45700340] [1] FULL HD 1080P Webcam
The next part of the error talks about frame rate. It appears that the frame-rate is slightly off, and that I just next to select a different frame rate. Would this be possible with pygcam ? Would this solve my problem ?
Error :
Traceback (most recent call last):
File "webcam2.py", line 129, in <module>
VideoStreaming("52.191.118.156", 5558, 1)()
File "webcam2.py", line 22, in __call__
with self.get_camera_context(self.camera_id) as frames:
File "webcam2.py", line 89, in __enter__
size=(640, 480))
File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
return format.get_reader(request)
File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/format.py", line 169, in get_reader
return self.Reader(self, request)
File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/format.py", line 218, in __init__
self._open(**self.request.kwargs.copy())
File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 327, in _open
self._load_infos()
File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 476, in _load_infos
(self.request._video, ffmpeg_err))
IndexError: No video4linux camera at <video1>.
FFMPEG STDERR OUTPUT:
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/Users/q433100/temp/brew-master/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[avfoundation @ 0x7fbb9e000a00] Selected framerate (29.970030) is not supported by the device
[avfoundation @ 0x7fbb9e000a00] Supported modes:
[avfoundation @ 0x7fbb9e000a00] 160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 640x360@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 800x600@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1024x576@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 960x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1280x720@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1392x768@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1280x960@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1600x896@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 1920x1080@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 160x120@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 176x144@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 320x240@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 352x288@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 640x360@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 640x480@[30.000030 30.000030]fps
[avfoundation @ 0x7fbb9e000a00] 800x600@[20.000000 20.000000]fps
[avfoundation @ 0x7fbb9e000a00] 1024x576@[8.000000 8.000000]fps
[avfoundation @ 0x7fbb9e000a00] 960x720@[15.000015 15.000015]fps
1: Input/output error
</video1></module>Update :
If I try to force one of the mentioned supported frame rates with ffmped, I get a new error$ffmpeg -f avfoundation -r 30.000030 -i "1" out.mpg
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/Users/q433100/temp/brew-master/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[avfoundation @ 0x7fb3c8802600] An error occurred: The activeVideoMinFrameDuration passed is not supported by the device. Use -activeFormat.videoSupportedFrameRateRanges to discover valid ranges.1: Input/output errorUpdate 2 :
Setting the input frame rate to 15 directly in ffmpeg works. Now I just need to figure out how to do this in python with pygame.camera$ ffmpeg -f avfoundation -r 15.000015 -i "1" out.avi
-
Multiple extra-cflags of a makefile
24 octobre 2020, par lulliezyso there is this library am trying to use ffmpeg.js and am customizing the
Makefile
. I have done everything that I wanted to do but on building, I got the errorERROR: opus not found using pkg-config
. Now I have two problems :

--extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include -I../libvpx/dist/include"
this configuration was initially--extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include"
but I wanted to include two folders, so is the merging correct or that's where I went wrong.

The complete
Makefile
is as below (there are alot of changes from the original one from the repository), is there anything I did wrong ?

PRE_JS = build/pre.js
POST_JS_SYNC = build/post-sync.js

COMMON_FILTERS = aresample scale crop overlay hstack vstack
COMMON_DEMUXERS = matroska ogg mov mp3 wav image2 concat
COMMON_DECODERS = vp8 vp9 h264 vorbis opus mp3 aac pcm_s16le mjpeg png

COMMON_BSFS = vp9_superframe

MUXERS = mp4 mp3 webm ogg null
ENCODERS = libx264 libmp3lame aac libvpx_vp8 libopus
FFMPEG_BC = build/ffmpeg/ffmpeg.bc
FFMPEG_PC_PATH = ../x264/dist/lib/pkgconfig
SHARED_DEPS = \
 build/lame/dist/lib/libmp3lame.so \
 build/x264/dist/lib/libx264.so \
 build/opus/dist/lib/libopus.so \
 build/libvpx/dist/lib/libvpx.so

all: ffmpeg.js

clean: clean-js \
 clean-opus clean-libvpx clean-lame \
 clean-x264 clean-ffmpeg
clean-js:
 rm -f ffmpeg*.js
clean-opus:
 cd build/opus && git clean -xdf
clean-libvpx:
 cd build/libvpx && git clean -xdf
clean-lame:
 cd build/lame && git clean -xdf
clean-x264:
 cd build/x264 && git clean -xdf
clean-ffmpeg:
 cd build/ffmpeg-mp4 && git clean -xdf

build/opus/configure:
 cd build/opus && ./autogen.sh

build/opus/dist/lib/libopus.so: build/opus/configure
 cd build/opus && \
 emconfigure ./configure \
 CFLAGS=-O3 \
 --prefix="$$(pwd)/dist" \
 --disable-static \
 --disable-doc \
 --disable-extra-programs \
 --disable-asm \
 --disable-rtcd \
 --disable-intrinsics \
 --disable-hardening \
 --disable-stack-protector \
 && \
 emmake make -j && \
 emmake make install

build/libvpx/dist/lib/libvpx.so:
 cd build/libvpx && \
 git reset --hard && \
 patch -p1 < ../libvpx-fix-ld.patch && \
 emconfigure ./configure \
 --prefix="$$(pwd)/dist" \
 --target=generic-gnu \
 --disable-dependency-tracking \
 --disable-multithread \
 --disable-runtime-cpu-detect \
 --enable-shared \
 --disable-static \
 \
 --disable-examples \
 --disable-docs \
 --disable-unit-tests \
 --disable-webm-io \
 --disable-libyuv \
 --disable-vp8-decoder \
 --disable-vp9 \
 && \
 emmake make -j && \
 emmake make install

build/lame/dist/lib/libmp3lame.so:
 cd build/lame/lame && \
 git reset --hard && \
 patch -p2 < ../../lame-fix-ld.patch && \
 emconfigure ./configure \
 CFLAGS="-DNDEBUG -O3" \
 --prefix="$$(pwd)/../dist" \
 --host=x86-none-linux \
 --disable-static \
 \
 --disable-gtktest \
 --disable-analyzer-hooks \
 --disable-decoder \
 --disable-frontend \
 && \
 emmake make -j && \
 emmake make install

build/x264/dist/lib/libx264.so:
 cd build/x264 && \
 emconfigure ./configure \
 --prefix="$$(pwd)/dist" \
 --extra-cflags="-Wno-unknown-warning-option" \
 --host=x86-none-linux \
 --disable-cli \
 --enable-shared \
 --disable-opencl \
 --disable-thread \
 --disable-interlaced \
 --bit-depth=8 \
 --chroma-format=420 \
 --disable-asm \
 \
 --disable-avs \
 --disable-swscale \
 --disable-lavf \
 --disable-ffms \
 --disable-gpac \
 --disable-lsmash \
 && \
 emmake make -j && \
 emmake make install

FFMPEG_COMMON_ARGS = \
 --cc=emcc \
 --ranlib=emranlib \
 --enable-cross-compile \
 --target-os=none \
 --arch=x86 \
 --disable-runtime-cpudetect \
 --disable-asm \
 --disable-fast-unaligned \
 --disable-pthreads \
 --disable-w32threads \
 --disable-os2threads \
 --disable-debug \
 --disable-stripping \
 --disable-safe-bitstream-reader \
 \
 --disable-all \
 --enable-ffmpeg \
 --enable-avcodec \
 --enable-avformat \
 --enable-avfilter \
 --enable-swresample \
 --enable-swscale \
 --disable-network \
 --disable-d3d11va \
 --disable-dxva2 \
 --disable-vaapi \
 --disable-vdpau \
 $(addprefix --enable-bsf=,$(COMMON_BSFS)) \
 $(addprefix --enable-decoder=,$(COMMON_DECODERS)) \
 $(addprefix --enable-demuxer=,$(COMMON_DEMUXERS)) \
 --enable-protocol=file \
 $(addprefix --enable-filter=,$(COMMON_FILTERS)) \
 --disable-bzlib \
 --disable-iconv \
 --disable-libxcb \
 --disable-lzma \
 --disable-sdl2 \
 --disable-securetransport \
 --disable-xlib \
 --enable-zlib

build/ffmpeg/ffmpeg.bc: $(SHARED_DEPS)
 cd build/ffmpeg-mp4 && \
 EM_PKG_CONFIG_PATH=$(FFMPEG_PC_PATH) emconfigure ./configure \
 $(FFMPEG_COMMON_ARGS) \
 $(addprefix --enable-encoder=,$(ENCODERS)) \
 $(addprefix --enable-muxer=,$(MUXERS)) \
 --enable-gpl \
 --enable-libmp3lame \
 --enable-libx264 \
 --enable-libopus \
 --enable-libvpx \
 --extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include -I../libvpx/dist/include" \
 --extra-ldflags="-L../lame/dist/lib -L../libvpx/dist/lib" \
 && \
 emmake make -j && \
 cp ffmpeg ffmpeg.bc

EMCC_COMMON_ARGS = \
 -O3 \
 --closure 1 \
 --memory-init-file 0 \
 -s WASM=0 \
 -s WASM_ASYNC_COMPILATION=0 \
 -s ASSERTIONS=0 \
 -s EXIT_RUNTIME=1 \
 -s NODEJS_CATCH_EXIT=0 \
 -s NODEJS_CATCH_REJECTION=0 \
 -s TOTAL_MEMORY=67108864 \
 -lnodefs.js -lworkerfs.js \
 --pre-js $(PRE_JS) \
 -o $@

ffmpeg.js: $(FFMPEG_BC) $(PRE_JS) $(POST_JS_SYNC)
 emcc $(FFMPEG_BC) $(SHARED_DEPS) \
 --post-js $(POST_JS_SYNC) \
 $(EMCC_COMMON_ARGS) -O2



What I was trying to achieve was combine some of the webm encoders and muxers into the mp4 module so I use only that one module for all webm and mp4 format types.


Also one thing to know about me, the whole Makefile and C and building it is totally new territory for me, I just did what I thought was right, thanks in advance.


-
FFMPEG and MSA1 Codec Issues when Converting WMV to MP4 Video
30 décembre 2023, par user136819I have a WMV video file (around 60 MB size, 01:23:00 length) and I'm running a Windows Server 2016 64-bit machine for testing.

As far as I know, this video file was recorded using Microsoft Live Meeting 2007 back in April 2010 and there is also an associated audio file (which I'm able to play).

I tried to play the video file on my machine using VLC player (latest update), however, I always see this weird MSA1 codec error :




So I tried to resolve this problem by downloading and installing the Combined-Community-Codec-Pack-64bit-2015-10-18, and using its MPC-HC 64-bit player to play the video...
I still couldn't get it to play ! Here are the logs shown by the MPC player :




WM ASF Reader::Raw Video 0

Media Type 0:
--------------------------
Video: MSA1 1440x900 5fps 164kbps

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {3141534D-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 1
lSampleSize: 0
cbFormat: 88

VIDEOINFOHEADER:
rcSource: (0,0)-(1440,900)
rcTarget: (0,0)-(1440,900)
dwBitRate: 164794
dwBitErrorRate: 0
AvgTimePerFrame: 2000000

BITMAPINFOHEADER:
biSize: 40
biWidth: 1440
biHeight: 900
biPlanes: 1
biBitCount: 16
biCompression: MSA1
biSizeImage: 66101
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

pbFormat:
0000: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........ ...„...
0010: 00 00 00 00 00 00 00 00 a0 05 00 00 84 03 00 00 ........ ...„...
0020: ba 83 02 00 00 00 00 00 80 84 1e 00 00 00 00 00 ºƒ......€„......
0030: 28 00 00 00 a0 05 00 00 84 03 00 00 01 00 10 00 (... ...„.......
0040: 4d 53 41 31 35 02 01 00 00 00 00 00 00 00 00 00 MSA15...........
0050: 00 00 00 00 00 00 00 00 ........



Since that didn't work, I tried installing the Microsoft MPEG-4 V1/2/3 VKI Codec for ASF files and still couldn't get the players to play the video and saw the same errors as above !


As a final attempt, I tried to convert this video to MP4 format using FFMPEG (version from 2020). Even this failed. Here are the logs :


D:\ffmpeg-20200403-52523b6-win64-static\bin>ffmpeg.exe -i input-video.wmv -c:v copy -c:a aac -q:a 100 output.mp4
ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 42.102 / 56. 42.102
 libavcodec 58. 77.101 / 58. 77.101
 libavformat 58. 42.100 / 58. 42.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 77.101 / 7. 77.101
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.
[asf @ 000002505bb4b600] Failed to open codec in avformat_find_stream_info
[msa1 @ 000002505bb847c0] Image dimensions should be a multiple of 16.
Input #0, asf, from 'input-video.wmv':
 Metadata:
 WMFSDKNeeded : 0.0.0.0000
 WMFSDKVersion : 10.00.00.4072
 IsVBR : 0
 Duration: 01:22:49.28, start: 0.000000, bitrate: 96 kb/s
 Stream #0:0(ger): Video: msa1 (MSA1 / 0x3141534D), none, 1440x900, 164 kb/s, 5 tbr, 1k tbn, 1k tbc
[mp4 @ 000002505bb4ce40] Could not find tag for codec msa1 in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Last message repeated 1 times

D:\ffmpeg-20200403-52523b6-win64-static\bin>



I wish to know, is there any other way I can convert this video to a more modern format so that I can play it on a modern machine and modern video player ?

What other codecs am I missing here ? (if so, where can I get them ?)

FYI, as mentioned earlier at the top, I'm only able to play the associated audio file...

I'm fairly new to all this stuff, so any help is appreciated.


Thanks in advance ! :)