
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (50)
-
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 (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (5429)
-
avconv stops streaming after some time
4 juin 2014, par Dhrumil DoshiI am using raspberry-pi board and a usb camera attached with it. i use avconv tool to capture live video from camera and streaming it on network using rtp protocol.
My command on server(raspberry-pi board) is as below :
avconv -f video4linux2 -s 160x120 -i /dev/video0 -vcodec mpeg2video -r 25 -pix_fmt yuv420p -me_method epzs -b 2600k -bt 256k -f rtp rtp ://192.168.1.141:8554
streaming works successfully using this command. Here IP address 192.168.1.141 is the ip address of my client pc. i can play live streaming on client side using vlc successfully.
But Issue is after some time encoding and streaming on server stop automatically. And command hangs there.
Output on server is as below :
$ avconv -f video4linux2 -s 160x120 -v debug -i /dev/video0 -vcodec mpeg2video -r 25 -pix_fmt yuv420p -me_method epzs -b 2600k -bt 256k -f rtp rtp://192.168.1.141:8554
avconv version 0.8.10-6:0.8.10-1+rpi1, Copyright (c) 2000-2013 the Libav developers
built on Mar 22 2014 02:13:15 with gcc 4.6.3
configuration: --arch=arm --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.10-1+rpi1' --libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr --disable-yasm --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/arm-linux-gnueabihf --enable-shared --disable-static
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0
[video4linux2 @ 0x54d7a0] [4]Capabilities: 84000001
[video4linux2 @ 0x54d7a0] The V4L2 driver changed the pixel format from 0x32315559 to 0x56595559
Last message repeated 1 times
[video4linux2 @ 0x54d7a0] The V4L2 driver changed the pixel format from 0x50323234 to 0x56595559
[video4linux2 @ 0x54d7a0] The V4L2 driver set input_id: 0, input: Camera 1
[rawvideo @ 0x54f860] err{or,}_recognition separate: 1; 1
[rawvideo @ 0x54f860] err{or,}_recognition combined: 1; 1
[video4linux2 @ 0x54d7a0] All info found
[video4linux2 @ 0x54d7a0] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 21891.364784, bitrate: 9216 kb/s
Stream #0.0, 1, 1/1000000: Video: rawvideo, yuyv422, 160x120, 1/30, 9216 kb/s, 30 tbr, 1000k tbn, 30 tbc
[buffer @ 0x54f220] w:160 h:120 pixfmt:yuyv422
[avsink @ 0x54d740] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x54f7e0] w:160 h:120 fmt:yuyv422 -> w:160 h:120 fmt:yuv420p flags:0x4
[mpeg2video @ 0x54ea60] err{or,}_recognition separate: 1; 1
[mpeg2video @ 0x54ea60] err{or,}_recognition combined: 1; 1
[mpeg2video @ 0x54ea60] detected 1 logical cores
[mpeg2video @ 0x54ea60] Unsupported bit depth: 0
[rawvideo @ 0x54f860] err{or,}_recognition separate: 1; 1
[rawvideo @ 0x54f860] err{or,}_recognition combined: 1; 1
Output #0, rtp, to 'rtp://192.168.1.141:8554':
Metadata:
encoder : Lavf53.21.1
Stream #0.0, 0, 1/90000: Video: mpeg2video, yuv420p, 160x120, 1/25, q=2-31, 2600 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg2video)
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.141
t=0 0
a=tool:libavformat 53.21.1
m=video 8554 RTP/AVP 32
b=AS:2600
Press ctrl-c to stop encoding
*** drop!
Last message repeated 1 times
*** 1 dup!
*** 16 dup! fps= 25 q=2.0 size= 1027kB time=5.24 bitrate=1605.2kbits/s dup=1 drop=2
*** drop!
Last message repeated 11 times
*** drop!49 fps= 26 q=2.0 size= 1059kB time=5.92 bitrate=1464.9kbits/s dup=17 drop=14
Last message repeated 2 times
*** drop!76 fps= 25 q=2.0 size= 2022kB time=11.00 bitrate=1505.7kbits/s dup=17 drop=17
*** drop!48 fps= 25 q=2.0 size= 4086kB time=21.88 bitrate=1529.8kbits/s dup=17 drop=18
*** 1 dup!
*** 1 dup!0 fps= 25 q=2.0 size= 4171kB time=22.36 bitrate=1528.2kbits/s dup=18 drop=19
*** 1 dup!1 fps= 25 q=2.0 size= 4859kB time=26.00 bitrate=1530.8kbits/s dup=19 drop=19
*** 1 dup!0 fps= 25 q=2.0 size= 5152kB time=27.56 bitrate=1531.5kbits/s dup=20 drop=19
*** 1 dup!3 fps= 25 q=2.0 size= 5250kB time=28.08 bitrate=1531.7kbits/s dup=21 drop=19
*** drop!64 fps= 25 q=2.0 size= 7215kB time=38.52 bitrate=1534.5kbits/s dup=22 drop=19
*** 1 dup!6 fps= 25 q=2.0 size= 7306kB time=39.00 bitrate=1534.6kbits/s dup=22 drop=20
*** drop!07 fps= 25 q=2.0 size= 8288kB time=44.24 bitrate=1534.7kbits/s dup=23 drop=20
*** 1 dup!0 fps= 25 q=2.0 size= 10054kB time=53.56 bitrate=1537.8kbits/s dup=23 drop=21
*** 1 dup!9 fps= 25 q=2.0 size= 10342kB time=55.12 bitrate=1537.1kbits/s dup=24 drop=21
Last message repeated 1 times
*** drop!93 fps= 25 q=1.6 size= 10445kB time=55.68 bitrate=1536.7kbits/s dup=26 drop=21
*** 1 dup!
*** 7036829 dup! 25 q=2.0 size= 10630kB time=56.68 bitrate=1536.4kbits/s dup=27 drop=22Any ideas ?
Thanks in advance.
-
FFmpeg Android : Freezes / stops silently at 'SoundHandle'
8 décembre 2014, par jgadsI’m trying to get FFmpeg working on Android, but it seems to fail silently with no output file. I have tested the same command on Windows and it fully completes.
I’m trying to convert an mp4 into a format which I can then ’concat’ with other videos files to make one ’compilation’ video.
The command is :
ffmpeg -i 1.mp4 -c copy -bsf h264_mp4toannexb -t 30 out1.ts
The logcat shows that ffmpeg seems to get ’stuck’ - with no updates and seemingly quitting half way through. Is there anything obvious I’m doing wrong ? This is being tested on just a bog-standard Galaxy Note 2. ’ffmpeg -version’ works just fine.
Here is the logcat :
12-08 13:38:27.670 18599-18599/com.company.app E/﹕ Device driver API match
Device driver API version: 23
User space API version: 23
12-08 13:38:27.670 18599-18599/com.company.app E/﹕ mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Fri Mar 21 13:52:50 KST 2014
12-08 13:38:27.710 18599-18599/com.company.app D/OpenGLRenderer﹕ Enabling debug mode 0
12-08 13:38:29.060 18599-18599/com.company.app E/FFMPEG﹕ Success loading ffmpeg
12-08 13:38:29.080 18599-18661/com.company.app D/FFmpeg﹕ Running publishing updates method
12-08 13:38:29.090 18599-18599/com.company.app E/FFMPEG﹕ Progress: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
12-08 13:38:29.090 18599-18599/com.company.app E/FFMPEG﹕ Progress: built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libavutil 54. 7.100 / 54. 7.100
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libavcodec 56. 1.100 / 56. 1.100
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libavformat 56. 4.101 / 56. 4.101
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libavdevice 56. 0.100 / 56. 0.100
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libavfilter 5. 1.100 / 5. 1.100
12-08 13:38:29.095 18599-18599/com.company.app E/FFMPEG﹕ Progress: libswscale 3. 0.100 / 3. 0.100
12-08 13:38:29.100 18599-18599/com.company.app E/FFMPEG﹕ Progress: libswresample 1. 1.100 / 1. 1.100
12-08 13:38:29.100 18599-18599/com.company.app E/FFMPEG﹕ Progress: libpostproc 53. 0.100 / 53. 0.100
12-08 13:38:29.230 18599-18599/com.company.app E/FFMPEG﹕ Progress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/videotest/1.mp4':
12-08 13:38:29.230 18599-18599/com.company.app E/FFMPEG﹕ Progress: Metadata:
12-08 13:38:29.230 18599-18599/com.company.app E/FFMPEG﹕ Progress: major_brand : isom
12-08 13:38:29.230 18599-18599/com.company.app E/FFMPEG﹕ Progress: minor_version : 0
12-08 13:38:29.230 18599-18599/com.company.app E/FFMPEG﹕ Progress: compatible_brands: isom3gp4
12-08 13:38:29.235 18599-18599/com.company.app E/FFMPEG﹕ Progress: creation_time : 2014-12-03 18:40:00
12-08 13:38:29.235 18599-18599/com.company.app E/FFMPEG﹕ Progress: Duration: 00:00:03.14, start: 0.000000, bitrate: 10598 kb/s
12-08 13:38:29.235 18599-18599/com.company.app E/FFMPEG﹕ Progress: Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 10594 kb/s, SAR 65536:65536 DAR 16:9, 29.94 fps, 29.92 tbr, 90k tbn, 180k tbc (default)
12-08 13:38:29.235 18599-18599/com.company.app E/FFMPEG﹕ Progress: Metadata:
12-08 13:38:29.240 18599-18599/com.company.app E/FFMPEG﹕ Progress: creation_time : 2014-12-03 18:40:00
12-08 13:38:29.240 18599-18599/com.company.app E/FFMPEG﹕ Progress: handler_name : VideoHandle
12-08 13:38:29.245 18599-18599/com.company.app E/FFMPEG﹕ Progress: Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 97 kb/s (default)
12-08 13:38:29.250 18599-18599/com.company.app E/FFMPEG﹕ Progress: Metadata:
12-08 13:38:29.250 18599-18599/com.company.app E/FFMPEG﹕ Progress: creation_time : 2014-12-03 18:40:00
12-08 13:38:29.250 18599-18599/com.company.app E/FFMPEG﹕ Progress: handler_name : SoundHandle -
FFMPEG - Pipe PCM to STDOUT in real-time for Node.js
20 août 2019, par bloom.510I am able to stream realtime PCM data from my system’s loopback driver that I can either encode raw or in WAV format using FFMPEG.
How can I pipe the PCM to stdout as its being recorded in real-time ?
I’m batting around in the dark here. So far I’ve tried logging stdout in Node.js, as well as creating a named pipe and listening for changes to it. None of these has returned any output.
The basic shell command captures the audio :
ffmpeg -f alsa -i loopout -f s16le -acodec pcm_s16le out.raw
Using child_process.spawn() in Node.js :
let ffmpeg = spawn('ffmpeg', [
'-f', 'alsa', '-ac', '2', '-ar', '44100', '-i',
'loopout', '-f', 's16le', '-acodec', 'pcm_s16le', 'out.raw',
]);However :
// this never logs anything
ffmpeg.stdout.on('data', (data) => {
console.log(data.toString());
});
// this outputs what you would see in the terminal window
ffmpeg.stderr.on('data', (data) => {
console.log(data.toString());
});Is there a way to access a readable stream of this file as its being created ?
Or perhaps there is a way to stream the PCM to an RTP server and forward it as a buffer over UDP to an Express server ?
Whatever the methodology is, the ultimate goal is to access it as a stream in Node.js and convert it into an ArrayBuffer.