
Recherche avancée
Autres articles (50)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Les images
15 mai 2013 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (5529)
-
ffmpeg : getting video from http page streamed to youtube
28 novembre 2014, par M-T-AI’m trying to configure ffmpeg to stream to youtube from ubuntu machine.
I have my wifi camera streaming with format ’video/x-ms-asf’ on local http page.
Then I use these commands in attempt to stream to youtube
VBR="2500k" # Bitrate
FPS="20" # FPS
QUAL="medium" #ffmpeg quality
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL base
SOURCE="http://192.168.9.XX/videostream.asf?user=admin&pwd=***" # Source of video
KEY="KEY HERE" # youtube event key
ffmpeg \
-i "$SOURCE" \
-vcodec copy -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
-ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
-f flv "$YOUTUBE_URL/$KEY"I get this output
moha@moha:~/Desktop$ sh start_stream_xmas.sh
ffmpeg version git-2014-11-28-ea38e5a Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 28 2014 11:06:47 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.101 / 56. 15.101
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0xb0c0a60] ignoring invalid SAR: 0/0
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, asf, from 'http://192.168.9.66/videostream.asf?user=admin&pwd=':
Duration: N/A, start: 0.000000, bitrate: 32 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 8000 Hz, 1 channels, s16p, 32 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/createnetxmas.kpjg-5fdg-qp1c-4bvd':
Metadata:
encoder : Lavf56.15.101
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, q=2-31, 2500 kb/s, 1k tbn, 20 tbc
Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, mono, s16p, 712 kb/s
Metadata:
encoder : Lavc56.13.100 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (adpcm_ima_wav (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
frame= 12 fps=0.0 q=-1.0 size= 882kB time=00:00:06.34 bitrate=1138.6kbits/frame= 13 fps= 13 q=-1.0 size= 953kB time=00:00:06.83 bitrate=1142.0kbits/frame= 14 fps=9.1 q=-1.0 size= 1029kB time=00:00:07.30 bitrate=1153.5kbits/frame= 15 fps=7.3 q=-1.0 size= 1104kB time=00:00:07.77 bitrate=1162.7kbits/frame= 16 fps=6.1 q=-1.0 size= 1181kB time=00:00:08.42 bitrate=1148.4kbits/frame= 17 fps=5.3 q=-1.0 size= 1256kB time=00:00:09.07 bitrate=1133.4kbits/frame= 18 fps=4.8 q=-1.0 size= 1325kB time=00:00:09.70 bitrate=1119.0kbits/frame= 19 fps=4.4 q=-1.0 size= 1403kB time=00:00:10.19 bitrate=1127.3kbits/frame= 20 fps=4.1 q=-1.0 size= 1482kB time=00:00:10.66 bitrate=1138.3kbits/frame= 21 fps=3.9 q=-1.0 size= 1556kB time=00:00:11.31 bitrate=1126.0kbits/moha@moha:~/Desktop$Suddenly the streaming stops and the terminal hangs. I’m not sure why. Is it because the video has no audio in streaming ?
-
FFmpegMediaPlayer : findLibrary returned null
8 août 2015, par IceJOKERI use https://github.com/wseemann/FFmpegMediaPlayer in my applicaton, but some Adndroid device throw exception :
java.lang.ExceptionInInitializerError
at ru.mypackage.PlayService.initPlayer(PlayService.java:74)
at ru.mypackage.PlayService.onCreate(PlayService.java:68)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:1949)
at android.app.ActivityThread.access$2500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:989)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load avutil: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:429)
at java.lang.System.loadLibrary(System.java:554)
at wseemann.media.FFmpegMediaPlayer.<clinit>(FFmpegMediaPlayer.java:620)
... 13 more
</clinit>[![enter image description here][3]][3]
Can somebody explain me what’s wrong there ?
On my device and some other device the app working nice, but on some device (for example : Galaxy Ace (GT-S5830i) Android 2.3.3 - 2.3.7) it throw the exception.p.s. about "lib" prefix I understood ( http://developer.android.com/intl/ru/reference/java/lang/System.html#mapLibraryName(java.lang.String) )
-
FFmpeg audio channel rematrix (5.1 to stereo)
29 octobre 2014, par Flock DawsonI’ve got a (very large !) Apple ProRes 422 file with 16ch audio. To be able to use it on a less powerful computer, I’d like to convert it to a standard MP4 file (h264 video codec, stereo audio). The original file has 16 channels of audio, however, and FFmpeg gives an error when I try to convert it (’Rematrix is needed’). How do I do rematrixing of audio channels ? Are there additional steps needed ?
This is the FFmpeg command I used :
ffmpeg -y -i Capture0000.mov -vcodec libx264 -vb 2000k -pix_fmt yuv420p -coder 0 -profile:v baseline -acodec libfaac -ab 128k /tmp/out.mp4
This is the FFmpeg output :
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on May 8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
libavutil 52. 81.100 / 52. 81.100
libavcodec 55. 60.103 / 55. 60.103
libavformat 55. 37.102 / 55. 37.102
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
Metadata:
creation_time : 2014-08-17 18:30:31
Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
Metadata:
creation_time : 2014-08-17 18:30:31
handler_name : Apple Alias Data Handler
encoder : Apple ProRes 422 (HQ)
Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
Metadata:
creation_time : 2014-08-17 18:30:31
handler_name : Apple Alias Data Handler
[auto-inserted resampler 0 @ 0x3943da0] [SWR @ 0x39441a0] Rematrix is needed between 16 channels and 5.1 but there is not enough information to do it
[auto-inserted resampler 0 @ 0x3943da0] Failed to configure output pad on auto-inserted resampler 0
Error opening filters!This is the FFprobe output :
ffprobe version 2.2.git Copyright (c) 2007-2014 the FFmpeg developers
built on May 8 2014 14:17:45 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-libxvid --enable-libfaac
libavutil 52. 81.100 / 52. 81.100
libavcodec 55. 60.103 / 55. 60.103
libavformat 55. 37.102 / 55. 37.102
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Capture0000.mov':
Metadata:
creation_time : 2014-08-17 18:30:31
Duration: 01:01:22.52, start: 0.000000, bitrate: 202001 kb/s
Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 183513 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc (default)
Metadata:
creation_time : 2014-08-17 18:30:31
handler_name : Apple Alias Data Handler
encoder : Apple ProRes 422 (HQ)
Stream #0:1(eng): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s (default)
Metadata:
creation_time : 2014-08-17 18:30:31
handler_name : Apple Alias Data Handler