
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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" (...)
Sur d’autres sites (14640)
-
How to convert raw camera Android data into usual mpeg4 by ffmpeg ?
12 octobre 2014, par trololoI can recieve raw camera data :
fos = new FileOutputStream (new File(Environment.getExternalStorageDirectory().getPath() + "/video_raw.raw"));
_.mCamera.setPreviewCallback(new Camera.PreviewCallback() {
public synchronized void onPreviewFrame(byte[] data, Camera camera) {
try {
if (fos != null)
fos.write(data);//I can save data to a file
//Environment.getExternalStorageDirectory().getPath() + "/video_raw.raw"
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try{
camera.addCallbackBuffer(data);
}catch (Exception e) {
Log.e("CameraTest", "addCallbackBuffer error");
return;
}
return;
}
});and trying to use this library to manipulate with video(audio)-data
File dir = new File(_.mediaFile).getParentFile();
FfmpegController fc = new FfmpegController(this, dir);
Clip clip_in = new Clip(Environment.getExternalStorageDirectory().getPath() + "/video_raw.raw");
clip_in.height = 480;
clip_in.width = 720;
clip_in.videoCodec = "rawvideo";
clip_in.videoFilter= "rawvideo";
Clip clip_out = new Clip(Environment.getExternalStorageDirectory().getPath() + "/video15a.mp4");
//put flags in clip
clip_out.videoFps = "30";
clip_out.width = 480;
clip_out.height = 320;
clip_out.videoCodec = "libx264";
clip_out.audioCodec = "copy";
fc.processVideo(clip_in, clip_out, false, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
System.out.println("MIX> " + shellLine);
}
@Override
public void processComplete(int exitValue) {
if (exitValue != 0) {
System.err.println("concat non-zero exit: " + exitValue);
Log.d("ffmpeg","Compilation error. FFmpeg failed");
Toast.makeText(AMain.this, "result: ffmpeg failed", Toast.LENGTH_LONG).show();
} else {
}
}
});Link to the project :
https://github.com/guardianproject/android-ffmpeg-javaThis code works correctly for any videofile which created before (the other apps). BUt this oce doesn’t work in my case. How to fix it ?
-
FFmpeg RTSP to mp4 recording speed raises to x60 when camera microphone is ON
20 juin 2022, par przemochI'm working with some kind of recorder that uses FFmpeg to capture RTSP stream from various IP cameras. It used to work fine on every camera I tried. That were cameras from various manufacturers, but the configuration was pretty the same.

1080p, ~10 fps, H.264, ~12000 kbps, microphone OFF


Recently, I faced a problem with recording process on some Dahua cameras, when I turned the microphone ON.


Normally I use
segment
argument to get 60 s video clips, and when microphone is ON,speed
parameter grows up to x60 what causes saving clip almost every 1 s. This problem is even stranger as I don't capture audio (-an
option), and it occurs only on some Dahua models and doesn't show up on other models.

My command is


ffmpeg -rtsp_transport tcp -i 'rtsp://<user>:<password>@' -vcodec copy -an -dn -y -segment_time 60 -strftime 1 -reset_timestamps 1 -f segment %Y-%m-%d-%H-%M.mp4
</password></user>


This problem starts in 2-5 minutes since I change camera settings event if the recording process is already running.
The log from ffmpeg when problem shows up is following :


frame= 609 fps= 10 q=-1.0 size=N/A time=01:01:01.64 bitrate=N/A speed= 63x
frame= 609 fps= 10 q=-1.0 size=N/A time=01:01:01.64 bitrate=N/A speed= 63x
frame= 625 fps= 10 q=-1.0 size=N/A time=01:01:03.24 bitrate=N/A speed=61.4x
frame= 625 fps= 10 q=-1.0 size=N/A time=01:01:03.24 bitrate=N/A speed=61.4x
frame= 630 fps= 10 q=-1.0 size=N/A time=01:01:03.76 bitrate=N/A speed=60.8x
frame= 630 fps= 10 q=-1.0 size=N/A time=01:01:03.76 bitrate=N/A speed=60.8x
frame= 641 fps= 10 q=-1.0 size=N/A time=01:01:04.85 bitrate=N/A speed=59.8x
frame= 641 fps= 10 q=-1.0 size=N/A time=01:01:04.85 bitrate=N/A speed=59.8x



I've tried all audio codecs available for this camera



Camera model is Dahua IPC-EW5541-AS. The same problem is on Dahua IPC-HDBW4231F-AS, but IPC-HDW4433C-A works just normal.


I'm trying to understand what can be wrong here, and how to resolve this issue. It would be really useful for me to be able to turn on microphone and record audio stream in parallel (with other script)


Do you have any idea ?


-
Ubuntu 16.04 + OpenCV + FFMPEG + CUDA don't open default camera
20 juillet 2018, par Newton Pasqualini FilhoI am trying to work with accelerated OpenCV using my own build of FFMPEG with CUDA support for GPU video processing using Python.
My application must support any kind of video devices, including USB and IP cameras.
I have a config file parsed with
ConfigParser
that loads the camera device path, as described in OpenCV documentation we can access usb camera by index number and for IP camera we use RTSP protocol so the path could be sometimes0
orrtsp://192.168.1.2/0
.To force the use of FFMPEG behind OpenCV I am trying to open the video capture stream like bellow :
video_capture = cv.VideoCapture()
stream_opened = video_capture.open(camera_path, cv.CAP_FFMPEG)The problem is when I try to open the default USB camera
camera_path = 0
thevideo_capture.open
method always returns false, but when it is a RTSP likecamera_path = "rtsp://192.168.1.2/1"
it open the video capture stream ok.When I let OpenCV decide what backend will be used it calls to GStreammer and it opens the capture stream like this :
video_capture = cv.VideoCapture(camera_path)
I suspect that FFMPEG does not have any support for capture video from a USB camera, does it ? Is there some missing feature to my ffmpeg build ?
ffmpeg version N-91487-g1809f1c Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --pkg-config-flags=--static --enable-cuda-sdk --enable-cuvid --enable-libnpp --extra-cflags=-I/usr/local/cuda/include/ --extra-ldflags=-L/usr/local/cuda/lib64/ --nvccflags='-gencode arch=compute_61,code=sm_61 -O2' --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --extra-libs=-lpthread --enable-libx265 --enable-nvenc --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 21.105 / 58. 21.105
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...