
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (51)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 (...)
Sur d’autres sites (6572)
-
avutil/common : Move everything inside inclusion guards
4 février 2021, par Andreas Rheinhardtavutil/common : Move everything inside inclusion guards
libavutil/common.h is a public header that provides generic math
functions whereas libavutil/intmath.h is a private header that contains
plattform-specific optimized versions of said math functions. common.h
includes intmath.h (when building the FFmpeg libraries) so that the
optimized versions are used for them.This interdependency sometimes causes trouble : intmath.h once contained
an inlined ff_sqrt function that relied upon av_log2_16bit. In case there
was no optimized logarithm available on this plattform, intmath.h needed
to include common.h to get the generic implementation and this has been
done after the optimized versions (if any) have been provided so that
common.h used the optimized versions ; it also needed to be done before
ff_sqrt. Yet when intmath.h was included from common.h and if an ordinary
inclusion guard was used by common.h, the #include "common.h" in intmath.h
was a no-op and therefore av_log2_16bit was still unknown at the end of
intmath.h (and also in ff_sqrt) if no optimized version was available.Before a955b5965825631986ba854d007d4e934e466c7d this was solved by
duplicating the #ifndef av_log2_16bit check after the inclusion of
common.h in intmath.h ; said commit instead moved these checks to the
end of common.h, outside the inclusion guards and made common.h include
itself to get these unguarded defines. This is still the current
state of affairs.Yet this is unnecessary since 9734b8ba56d05e970c353dfd5baafa43fdb08024
as said commit removed ff_sqrt as well as the #include "common.h" from
intmath.h. Therefore this commit moves everything inside the inclusion
guards and makes common.h not include itself.Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
Nodejs couldn't find the ffmpeg module for some reason
29 décembre 2020, par ChawchawchawI need to display the live streaming vidoe(rtsp) on a website(http, vue framework) with nodejs and vue framework.


I've looked it up a lot and got the basic logic of what they are and how it works.
So I'm planning on to convert rtsp to hls with nodejs using socket.io and display it on a web.(let me know if there's more efficient way way to do it)


The thing is, for some reason, when I try to develop it in my backend(nodejs), node just keep sends me an error that FFMpeg module wasn't found. It's been over a week.. please help.


Btw, all works with ffmpeg cmd(window powerShell).


How I set up(ffmpeg) :


- 

-
downloaded ffmpeg from https://ffmpeg.org/


-
added to system path : C :\Users\Marie\Desktop\ffmpeg-4.3.1-2020-11-19-full_build\bin


-
tested with window powerShell and converted rstp to m3u8 :


ffmpeg -i 'rtsp ://ip.ip.ip/media/video1' -hls_time 3 -hls_wrap 10 'C :\Users\Marie\Desktop\tmp\hls/streaming.m3u8'










below is a screen shot of no. 3 result




how I set up(nodejs)


- 

- npm i ffmpeg fluent-ffmpeg rtsp-ffmpeg
- I've just copied and pasted the example working code and changed rtsp link to mine. e.g : (https://www.npmjs.com/package/rtsp-ffmpeg)






=> didn't work out, error says can't find ffmpeg module


- 

- set up path manually e.g.) ffmpeg.setFfmpegPath(path)




=> didn't work out. error says can't find ffmpeg module


...
I've seriously tried almost everything like delete, re-install ffmpeg, changed path, added path manyally, .. Please help....


Edited :
package.json


{
 "name": "streaming",
 "version": "1.0.0",
 "description": "",
 "main": "index.js",
 "scripts": {
 "start": "node app.js"
 },
 "author": "",
 "license": "ISC",
 "dependencies": {
 "express": "^4.17.1",
 "ffmpeg": "0.0.4",
 "fluent-ffmpeg": "^2.1.2",
 "jsmpeg": "^1.0.0",
 "node-media-server": "^2.2.4",
 "node-onvif": "^0.1.7",
 "node-rtsp-stream": "0.0.9",
 "rtsp-ffmpeg": "0.0.15",
 "socket.io": "^3.0.4",
 "ws": "^7.4.1"
 }
}



app.js


const Stream = require('node-rtsp-stream')

// let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/ffmpeg.exe'
// let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/'
let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin'
const ffmpeg = require('fluent-ffmpeg')

ffmpeg.setFfmpegPath(path)

stream = new Stream({
 name: 'name',
 streamUrl: 'rtsp://ip.ip.ip.ip/media/video1',
 wsPort: 9999,
 ffmpegOptions: { // options ffmpeg flags
 '-stats': '', // an option with no neccessary value uses a blank string
 '-r': 30 // options with required values specify the value after the key
 }
})



Error : spawn ffmpeg ENOENT


app.js (for another test)


const app = require( 'express' )(),
 server = require( 'http' ).Server( app ),
 io = require( 'socket.io' )( server ),
 rtsp = require( 'rtsp-ffmpeg' )

process.env.FFMPEG_PATH = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/ffmpeg.exe'
// console.log( rtsp.FFMpeg )

server.listen( 6147 )
var uri = 'rtsp://ip.ip.ip.ip/media/video1',
 stream = new rtsp.FFMpeg( { input: uri } )
io.on( 'connection', function ( socket )
{
 var pipeStream = function ( data )
 {
 socket.emit( 'data', data.toString( 'base64' ) )
 }
 stream.on( 'data', pipeStream )
 socket.on( 'disconnect', function ()
 {
 stream.removeListener( 'data', pipeStream )
 } )
} )
app.get( '/', function ( req, res )
{
 res.sendFile( __dirname + '/index.html' )
} )



error :
FMpeg executable wasn't found. Install this package and check FFMpeg.cmd property


nodejs version = 10.16.3


-
-
Unable to find a suitable output format for ' -framerate 5' -framerate 5 : Invalid argument
7 décembre 2020, par Rashmi NI am trying to create .ts files from a set of images. My ffmpeg command is


[/usr/bin/ffmpeg, -framerate 5, -re -f image2pipe , -i - , -pix_fmt yuv420p , -preset veryfast , -c:v libx264 , -profile:v main , -crf 20 , -sc_threshold 0 , -g 48 , -keyint_min 48 , -hls_time 5 , -hls_list_size 0 , -hls_flags append_list+omit_endlist+round_durations , -b 800k , -maxrate 1100k , -bufsize 2200k , /home/rashmi/Music/output.m3u8]



Im calling this from a java function


List<string> command = new ArrayList<>();
 command.add(PATH);
 command.add(" -framerate " + streamInput.getVideoFPS());
 command.add(" -re -f image2pipe ");
 command.add(" -i - ");
 command.add(" -pix_fmt yuv420p ");
 command.add(" -preset veryfast ");
 command.add(" -c:v libx264 ");
 command.add(" -profile:v main ");
 command.add(" -crf 20 ");
 command.add(" -sc_threshold 0 ");
 command.add(" -g 48 ");
 command.add(" -keyint_min 48 ");
 command.add(" -hls_time " + streamInput.getSegmentLength() + " ");
 command.add(" -hls_list_size 0 ");
 command.add(" -hls_flags append_list+omit_endlist+round_durations ");
 command.add(" -b 800k ");
 command.add(" -maxrate 1100k ");
 command.add(" -bufsize 2200k ");
 command.add(streamInput.getManifestFilePath());


 System.out.println("FFMPEG COMMAND:\n"+ command.toString());
 ProcessBuilder pb = new ProcessBuilder(command);
 pb.redirectInput(ProcessBuilder.Redirect.PIPE);
 pb.directory(Paths.get(streamInput.getFolderPath()).toFile());
 Process ffmpegProcess = pb.inheritIO().start();

 OutputStream ffmpegInput = ffmpegProcess.getOutputStream();



 for(File frame: frames){
// System.out.println(frame.getAbsolutePath());

 byte[] image;
 image = new byte[(int)frame.length()];

 FileInputStream fileInputStream = new FileInputStream(frame);
 fileInputStream.read(image);
 ImageInputStream iis = ImageIO.createImageInputStream(
 new ByteArrayInputStream(image));
 BufferedImage img = ImageIO.read(iis);
 ImageIO.write(img, "PNG", ffmpegInput);



 }
</string>


I am getting


[/usr/bin/ffmpeg, -framerate 5, -re -f image2pipe , -i - , -pix_fmt yuv420p , -preset veryfast , -c:v libx264 , -profile:v main , -crf 20 , -sc_threshold 0 , -g 48 , -keyint_min 48 , -hls_time 5 , -hls_list_size 0 , -hls_flags append_list+omit_endlist+round_durations , -b 800k , -maxrate 1100k , -bufsize 2200k , /home/rashmi/Music/output.m3u8]
ffmpeg version 4.3-2~18.04.york0 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --prefix=/usr --extra-version='2~18.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
[NULL @ 0x55a3c18a3e40] Unable to find a suitable output format for ' -framerate 5'
 -framerate 5: Invalid argument
javax.imageio.IIOException: I/O error writing PNG file!
 at java.desktop/com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1277)
 at java.desktop/javax.imageio.ImageWriter.write(ImageWriter.java:613)
 at java.desktop/javax.imageio.ImageIO.doWrite(ImageIO.java:1628)
 at java.desktop/javax.imageio.ImageIO.write(ImageIO.java:1594)
 at com.streaming.hls.utils.StreamSegmentGenerator.buildStreamSegmet(StreamSegmentGenerator.java:81)
 at com.streaming.hls.utils.StreamSegmentGenerator.main(StreamSegmentGenerator.java:110)
Caused by: java.io.IOException: Stream closed
 at java.base/java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:442)
 at java.base/java.io.OutputStream.write(OutputStream.java:162)
 at java.desktop/javax.imageio.stream.FileCacheImageOutputStream.flushBefore(FileCacheImageOutputStream.java:255)
 at java.desktop/com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:142)
 at java.desktop/com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.java:487)
 at java.desktop/com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1244)
 ... 5 more



I tried replacing -framerate with -r, that also threw the same error. But when I run the command directly in the terminal its working. I am not sure what is wrong.
[NULL @ 0x55a3c18a3e40] Unable to find a suitable output format for ' -framerate 5'
-framerate 5 : Invalid argument