
Recherche avancée
Autres articles (28)
-
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 (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (6438)
-
avutil/hwcontext_dxva2 : Don’t improperly free IDirect3DSurface9 objects
16 mai 2017, par Aaron Levinsonavutil/hwcontext_dxva2 : Don’t improperly free IDirect3DSurface9 objects
Add dxva2_pool_release_dummy() and use it in call to
av_buffer_create() in dxva2_pool_alloc().Prior to this change, av_buffer_create() was called with NULL for the
third argument, which indicates that av_buffer_default_free() should
be used to free the buffer’s data. Eventually, it gets to
buffer_pool_free() and calls buf->free() on a surface object (which is
av_buffer_default_free()).This can result in a crash when the debug version of the C-runtime is
used on Windows. While it doesn’t appear to result in a crash when
the release version of the C-runtime is used on Windows, it likely
results in memory corruption, since av_free() is being called on
memory that was allocated using
IDirectXVideoAccelerationService::CreateSurface().Signed-off-by : Aaron Levinson <alevinsn@aracnet.com>
Reviewed-by : wm4 <nfxjfg@googlemail.com>
Reviewed-by : Steven Liu <lingjiujianke@gmail.com>
Reviewed-by : Mark Thompson <sw@jkqxz.net>
Signed-off-by : Anton Khirnov <anton@khirnov.net> -
Android - MediaRecorder output to stream for ffmpeg
3 mai 2017, par TooManyEduardosI’m trying to stream the content of my screen to an rtmp server, and I believe the easiest/best way to do that is using ffmpeg.
So, here’s what I have so far :
try {
Socket socket = new Socket(url, port);
ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.fromSocket(socket);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE);
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mMediaRecorder.setOutputFile(fileDescriptor.getFileDescriptor());
mMediaRecorder.setVideoSize(DISPLAY_WIDTH, DISPLAY_HEIGHT);
mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mMediaRecorder.setVideoEncodingBitRate(512 * 1000);
mMediaRecorder.setVideoFrameRate(30);
int rotation = getWindowManager().getDefaultDisplay().getRotation();
int orientation = ORIENTATIONS.get(rotation + 90);
mMediaRecorder.setOrientationHint(orientation);
mMediaRecorder.prepare();
} catch (IOException e) {
e.printStackTrace();
}In here, the important portion is
Socket socket = new Socket(url, port);
ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.fromSocket(socket);
mMediaRecorder.setOutputFile(fileDescriptor.getFileDescriptor());So, when I place this inside an Asynctask I can make it attempt to send something, but I get a
UnknownHostException
java.net.UnknownHostException: Unable to resolve host "rtmps://rtmp-api....": No address associated with hostname
So, I’ve been told that I should use ffmpeg for this instead, but I don’t know how to get the original stream from MediaRecorder to pass it to ffmpeg.
If I understand correctly, ffmpeg be used as :
-i original_stream rtmps://rtmp-api...
So, how can I get output content of MediaRecorder in a format that I could use in ffmpeg for streaming (not with a saved file).
Thanks !
-
Initializing hwaccel_context in libavcodec
3 janvier 2018, par dlomanI am trying to get hardware accelerated video working using libavcodec. I am using the hw_decode.c example as a starting point and am unable to get it to work. both
AVCodecContext->hwaccel
andAVCodecContext->hwaccel_context
areNULL
I belive some part of the hwaccel is working as I see the output
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0Which is the same as when I run
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.mpg -f null -
but immediately after that I get the following error message
[h264 @ 0x1df2cc0] Hardware acceleration context (hwaccel_context) does not exist.
Failed to get HW surface format.
[h264 @ 0x1df2cc0] decode_slice_header error
[h264 @ 0x1df2cc0] no frame!I looked at the similar question and the answer to this shows how to get a
AVCodecContext->hwaccel
. But even with theAVCodecContext->hwaccel
being a valid VAApih264 decoder I still get the same error message.How do I initialize a
AVCodecContext->hwaccel_context
and after that what else do I need to do to get hardware accelerated video working in ffmpeg ?