
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (61)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (3873)
-
FFmpeg error when trying to stream file into it
15 décembre 2015, par nadermxI’m trying to put a stream into a ffmpeg pipe.
The issue I am having is that when I send the data to ffmpeg I get a
error 127
It also shows
/bin/sh: 2: -acodec: not found
Here is the console log I’m running via python
from subprocess import Popen, PIPE
from flask import Flask, stream_with_context, request, Response
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE,SIG_DFL)
def console(cmd, add_newlines=False):
p = Popen(cmd, shell=True, stdout=PIPE)
while True:
data = p.stdout.read()
if add_newlines:
data += '\n'
yield data
p.poll();
if isinstance(p.returncode, int):
if p.returncode > 0:
# return code was non zero, an error?
print 'error:', p.returncode
break
sleep(2)And here is the actual route I am running the application in.
@app.route('/large.mp3')
def generate_large_mp3():
url = 'https://www.youtube.com/watch?v=zGEiJ44K3Oo'
result = ''.join(data.strip() for data in console('youtube-dl --simulate --get-url %s' % url))
mp3 = console('sudo ffmpeg -i %s -acodec libmp3lame -f mp3 -' % result, add_newlines=True)
return Response(stream_with_context(mp3), mimetype='video/mp3')Here is the error output
/bin/sh: 2: https://r13---sn-ab5l6nes.googlevideo.com/videoplayback?id=cc6122278e0adcea: not found
/bin/sh: 2: -acodec: not found
ffmpeg version git-2015-12-10-3652dd5 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl --enable-nonfree --enable-version3 --enable-gnutls
libavutil 55. 10.100 / 55. 10.100
libavcodec 57. 17.100 / 57. 17.100
libavformat 57. 19.100 / 57. 19.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 20.100 / 6. 20.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[https @ 0x384d0a0] HTTP error 403 Forbidden
https://r13---sn-ab5l6nes.googlevideo.com/videoplayback?id=cc6122278e0adcea: Server returned 403 Forbidden (access denied)
127.0.0.1 - - [15/Dec/2015 00:55:59] "GET /large.mp3 HTTP/1.1" 200 -
error: 127I have tried many different urls and all of them end up with the same issue.
I have also tried installing every dependency I have been able to find and still no luck -
FFmpeg converting to .265 corrupts videos
25 juin 2022, par AlfaI'm trying to convert and compress videos in
React Native
using FFmpegKit, what is strange is it is very slow regardless of the preset I use, Also, no matter how big the input video is, it always produces a video less than 1MB that is corrupt.
This is my first time usingFFmpeg
, I'm using it due to the lack of good video compressing libraries on React Native.

My command looks like this :


const getFFmpegCommand = (input: string, output: string) => {
 const scale = `"scale='if(gte(iw,ih),min(720,iw),-2):if(lt(iw,ih),min(720,ih),-2)'"`;
 const preset = '-preset veryfast ';
 const ffmpegCommand = `-i ${input} -y -crf 28 -vf ${scale} ${preset} -c:v libx265 ${output}`;
 return ffmpegCommand;
};



This is my log output


ffmpeg version v4.5-dev-3393-g30322ebe3c
 LOG Copyright (c) 2000-2021 the FFmpeg developers
 LOG 
 LOG built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
 LOG configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --disable-sdl2 --disable-openssl --enable-zlib --enable-mediacodec --enable-gpl
 LOG libavutil 57. 13.100 / 57. 13.100
 LOG libavcodec 59. 15.102 / 59. 15.102
 LOG libavformat 59. 10.100 / 59. 10.100
 LOG libavdevice 59. 1.100 / 59. 1.100
 LOG libavfilter 8. 21.100 / 8. 21.100
 LOG libswscale 6. 1.102 / 6. 1.102
 LOG libswresample 4. 0.100 / 4. 0.100
 LOG Guessed Channel Layout for Input Stream #0.1 : mono
 LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:///data/user/0/com.orbis.cybersight/files/95fdb965-5074-421f-b6b0-9e67332550ca/VID_20220625_211041.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG Duration:
 LOG 00:00:33.68
 LOG , start:
 LOG 0.000000
 LOG , bitrate:
 LOG 8302 kb/s
 LOG 
 LOG Stream #0:0
 LOG [0x1]
 LOG (eng)
 LOG : Video: h264 (avc1 / 0x31637661), yuv420p(tv, gbr/reserved/reserved, progressive), 1280x720, 9007 kb/s
 LOG , SAR 1:1 DAR 16:9
 LOG ,
 LOG 22.69 fps,
 LOG 90k tbr,
 LOG 90k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG Side data:
 LOG 
 LOG displaymatrix: rotation of -90.00 degrees
 LOG 
 LOG Stream #0:1
 LOG [0x2]
 LOG (eng)
 LOG : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, fltp, 12 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG [h264 @ 0xebd4c280] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG [amrnb @ 0xebd4dc00] The "sub_text_format" option is deprecated: Deprecated, does nothing
 LOG Stream mapping:
 LOG Stream #0:0 -> #0:0
 LOG (h264 (native) -> hevc (libx265))
 LOG 
 LOG Stream #0:1 -> #0:1
 LOG (amr_nb (amrnb) -> aac (native))
 LOG 
 LOG Press [q] to stop, [?] for help
 LOG [aac @ 0xebd4a5d0] Too many bits 8832.000000 > 6144 per frame requested, clamping to max
 LOG Output #0, mp4, to '/storage/emulated/0/Android/data/com.orbis.cybersight/files/3dfb9ef6-6cb3-4adf-9777-8fb4c7762dc7.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG mp42
 LOG 
 LOG minor_version :
 LOG 0
 LOG 
 LOG compatible_brands:
 LOG isommp42
 LOG 
 LOG com.android.version:
 LOG 11
 LOG 
 LOG location :
 LOG +37.4234-122.0839/
 LOG 
 LOG location-eng :
 LOG +37.4234-122.0839/
 LOG 
 LOG encoder :
 LOG Lavf59.10.100
 LOG 
 LOG Stream #0:0
 LOG (eng)
 LOG : Video: hevc (hev1 / 0x31766568), yuv420p(tv, gbr/reserved/reserved, progressive), 720x1280 [SAR 1:1 DAR 9:16], q=2-31
 LOG ,
 LOG 22.69 fps,
 LOG 2502k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG VideoHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 libx265
 LOG 
 LOG Side data:
 LOG 
 LOG cpb:
 LOG bitrate max/min/avg: 0/0/0 buffer size: 0
 LOG vbv_delay: N/A
 LOG 
 LOG 
 LOG displaymatrix: rotation of -0.00 degrees
 LOG 
 LOG Stream #0:1
 LOG (eng)
 LOG : Audio: aac (mp4a / 0x6134706D), 8000 Hz, mono, fltp, 48 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG creation_time :
 LOG 2022-06-25T19:11:17.000000Z
 LOG 
 LOG handler_name :
 LOG SoundHandle
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG encoder :
 LOG Lavc59.15.102 aac



-
Build ffmpeg binary for android
26 juillet 2014, par Abdul QadirI’ve gone through various tutorials on the Internet. I need to execute simple ffmpeg commands in my android application. I found the guardianproject’s android library perfect for it but I needed to enable
libmp3lame
in the configuration file and re-build the binary so i can work with mp3 files. But I couldn’t re-built it successfully. I got following errors :config.mk:25: builds/unix/unix-def.mk: No such file or directory
config.mk:26: builds/unix/unix-cc.mk: No such file or directory
make: *** No rule to make target builds/unix/unix-cc.mk. Stop.
Makefile:2: config.mak: No such file or directory
Makefile:47: /common.mak: No such file or directory
Makefile:88: /libavutil/Makefile: No such file or directory
Makefile:88: /library.mak: No such file or directory
Makefile:168: /doc/Makefile: No such file or directory
Makefile:169: /tests/Makefile: No such file or directory
make: *** No rule to make target /tests/Makefile. Stop.
Makefile:2: config.mak: No such file or directory
Makefile:47: /common.mak: No such file or directory
Makefile:88: /libavutil/Makefile: No such file or directory
Makefile:88: /library.mak: No such file or directory
Makefile:168: /doc/Makefile: No such file or directory
Makefile:169: /tests/Makefile: No such file or directory
make: *** No rule to make target /tests/Makefile. Stop.
./configure_sox.sh: line 12: autoreconf: command not found
./configure_sox.sh: line 15: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install-strip'. Stop.I also tried this tutorial to build a binary but failed. The errors I encounter are following :
/home/aq/Downloads/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: ,noexecstack: unknown -z option
/home/aq/Downloads/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ld: use the --help option for usage informationI was successful in building various .so files through this tutorial though :
But i don’t know how to use those .so files. I guess these are the libraries. Is there any way I can execute ffmpeg commands through these .so files ? Any help would be appreciated !!