
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (23)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (7237)
-
ffmpeg : Video is not start streaming in instance
23 juillet 2019, par Sachin ShahI have setup the streaming code which use the
ffmpeg
. It works perfectly fine in my local system.Version in local
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)Version in live
ffmpeg version 3.4.6 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (GCC)GCC versions
Local
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Live
gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Code which works fine in my local
var args = [
'-y',
'-re',
'-i', `${filePath}`,
'-listen', '1',
'-s', '640x480',
'-codec:a', 'aac -strict experimental',
'-b:a', '44.1k',
'-preset', 'superfast',
'-r', '15',
'-b:v', '1000k',
'-tune', 'zerolatency',
'-c:a', 'aac',
'-ar', '44100',
'-c:v', 'libx264',
'-f', 'flv', streamURL
];
let ffmpeg = spawn(`ffmpeg`, args);
ffmpeg.on('exit', (statusCode) => {
console.log("statusCode ::::::::::::::::::::::::::::::::: ", statusCode);
if (statusCode === 0) {
console.log('conversion successful')
}
})
ffmpeg.stderr.on('data', (err) => {
console.log('err:', new String(err))
})
ffmpeg.on('close', function () {
console.log('finished');
});Error :
ffmpeg -re -i '{MyS3URL}' -c:v libx264 -preset superfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://{{instanceIp}}/live/myStream
err: [String: 'ffmpeg version 3.4.6']
err: [String: ' Copyright (c) 2000-2019 the FFmpeg developers']
err: [String: '\n']
err: [String: ' built with gcc 7 (GCC)\n']
err: [String: ' configuration: \n']
err: [String: ' libavutil 55. 78.100 / 55. 78.100\n']
err: [String: ' libavcodec 57.107.100 / 57.107.100\n']
err: [String: ' libavformat 57. 83.100 / 57. 83.100\n libavdevice
57. 10.100 / 57. 10.100\n libavfilter 6.107.100 / 6.107.100\n
libswscale 4. 8.100 / 4. 8.100\n libswresample 2. 9.100 /
2. 9.100\nUnrecognized option \'tune\'.\nError splitting the argument
list: Option not found\n']
statusCode ::::::::::::::::::::::::::::::::: 1
finishedNote :
As you can see I have console the URL which I have made dynamic URL.In addition, I directly got statusCode = 1. When I paste the same URL in my local termial and hit the enter then my streaming starts.
So the question is why it is not working in live ?
-
ffmpeg itsoffset doesnt apply offset to mp4
26 juillet 2019, par bruxThe following command mixes an mp4 and an mp3 together, keeping the audio from the mp4.
ffmpeg -i video.mp4 -i audio.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest out.mp4
The command works as expected.
Now I want to offset the mp4 file (both the audio and video stream of the mp4) so that there is a delay of 500ms at the start of the mp4, here is my command :
ffmpeg -itsoffset 00:00:00.500 -i video.mp4 -i audio.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest out.mp4
This doesnt work as expected, the output doesnt have the expected delay of 500ms at the start of the mp4 streams. It appears the output is just the same as the first command I ran.
The version of ffmpeg I am using is :
ffmpeg version n4.0-39-gda39990
Here are the files I’m using :
video.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/video.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2019-07-26T03:28:49.000000Z
com.android.version: 8.0.0
Duration: 00:00:07.64, start: 0.000000, bitrate: 20534 kb/s
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 20966 kb/s, SAR 1:1 DAR 16:9, 29.70 fps, 29.75 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 270
creation_time : 2019-07-26T03:28:49.000000Z
handler_name : VideoHandle
Side data:
displaymatrix: rotation of 90.00 degrees
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
Metadata:
creation_time : 2019-07-26T03:28:49.000000Z
handler_name : SoundHandleaudio.mp3
Input #0, mp3, from '/storage/emulated/0/audio.mp3':
Metadata:
album : Sunflower (Spider-Man: Into the Spider-Verse) - Single
composer : Louis Bell, Carter Lang, Austin Richard Post, Billy Walsh & Khalif Malik Ibin Shaman Brown
genre : Hip-Hop/Rap
copyright : This Compilation ℗ 2018 Republic Records, a division of UMG Recordings, Inc.
title : Sunflower (Spider-Man: Into the Spider-Verse)
artist : Post Malone & Swae Lee
album_artist : Post Malone & Swae Lee
track : 01/01
TYER : 2018-10-18T07:00:00Z
Duration: 00:02:38.07, start: 0.000000, bitrate: 325 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1400x1400 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front) -
How to Write to AVI with OpenCV Python on Windows 10
29 juillet 2019, par NovakI want to write properly formed frames of video data to an AVI.
All attempts fail.
What I end up with, after long efforts of debugging, are *.avi files of non-zero length in the desired directory, which will not play with any of multiple video players already installed on my system.
Please note : High quality answers will be COMPLETE and DETAIL oriented. In particular, questions about writing video with OpenCV tend to generate drive-by responses including little more than another four-letter code to stick in
fourcc
. Answers which do so without also telling me at a minimum what file extension to use, what file type it will generate, and why it is expected to work over what I give above are unhelpful.Here are the salient details of the system :
Operating System : Windows 10
Language : Python 3.7, with Anaconda 3
OpenCV : 4.1.0Here Is What I Have Done/Tried :
Installed FFMPEG as per this link, restarted Anaconda, and verified ffmpeg (
ffmpeg -version
) from within Anaconda, with the following result :ffmpeg version N-94396-g47b6ca0b02 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190716
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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 32.100 / 56. 32.100
libavcodec 58. 55.100 / 58. 55.100
libavformat 58. 30.100 / 58. 30.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 58.100 / 7. 58.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100Multiple variations on the theme of :
import cv2
fourcc = cv2.VideoWriter_fourcc(*"DIVX")
vidout = cv2.VideoWriter(baseDir + "videos\\foo.avi", fourcc, 30, (530, 476))
for frame in frames:
<do stuff="stuff" to="to" generate="generate" foo="foo">
cv2.imshow("foo", foo)
vidout.write(foo)
vidout.release()
</do>Verified shape, dtype, and general viability of output data with
cv2.imshow("foo", foo)
Results : Unplayable AVI files