
Recherche avancée
Autres articles (97)
-
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" (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (5336)
-
FFMPEG : Extract Audio with exact Timing despite corrupted intermediate audio chunks
5 novembre 2020, par user2029101I have a full automated tool chain which first concatenate video chunks and adjusts user events to it.
This first step uses 3rd party software, I am not able to fix the problem there.
Later in the process I extract the audio from the video. Sometimes there are corrupted audio chunks inbetween. FFMPEG ignores the corrupted parts on extraction. So I got a mutch shorter audio (the linked events rely on the exact length of the org A/V). It wouldnt be a big issue if it would only happen at the end, I know how to pad it there, but at random poistions, I didnt find an option at the documentation doing the job.
The only solution that worked was (pretty dirty I know) to convert the video to another video container with removed video stream and rename the file to MP3/AAC. It was working at windows/Android but all Mac-Browser didnt play it.


The -filter_complex -discard looks promising but I didnt find any good example for the correct syntax.
I have found an Adobe Tool doing the job correctly so I hope there is a way to do with ffmpeg, too.


General
Complete name : C:\tmp123\video.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 57.8 MiB
Duration : 6 min 51 s
Overall bit rate : 1 177 kb/s
Writing application : Lavf58.26.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L4
Format settings, CABAC : No
Format settings, RefFrames : 2 frames
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 6 min 51 s
Bit rate : 1 003 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.303 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.016
Stream size : 49.2 MiB (85%)

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 6 min 51 s
Bit rate mode : Constant
Bit rate : 168 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 8.22 MiB (14%)
Default : Yes
Alternate group : 1



-
Can build & make video call with pjsip and ffmpeg
10 mai 2023, par QVietI try to build PJSIP with ffmpeg with this config :


i Follow those step :


- 

- build need lib and place in thirdparty folder name ffmpeg
- setup link lib & header already.
- run build with "$configure —with-ffmpeg="
- config_site.h add :












#define PJMEDIA_HAS_OPENH264_CODEC 1 
#define PJMEDIA_HAS_VIDEO 1 
#define PJMEDIA_VIDEO_DEV_HAS_FFMPEG 1 
#define PJMEDIA_HAS_FFMPEG_VID_CODEC 1 
#define PJMEDIA_HAS_FFMPEG 1 
#define PJMEDIA_HAS_FFMPEG_CODEC_H264 1 
#define PJMEDIA_HAS_LIBAVDEVICE 1 
#define PJMEDIA_HAS_OPENH264_CODEC 1





I see have to enable PJMEDIA_HAS_OPENH264_CODEC , if not, can build success but when import will receive this error :


Undefined symbol: _WelsCreateDecoder



cause miss wels package exits in openh264 lib.


The build with success after all with above config but in this :


pj_status_t status = pjsua_vid_enum_codecs(videoCodecInfo, &videoCodecCount);



the codec info just show 1 codec is "H264/97" -> is OpenH264 codec, i can't see ffmpeg here.
When im start call like normal, see log openh264 init call/ open camera .


What i need step to using ffmpeg, i can see any docs about it


can you help me ?


** this i log call stack :**


2023-04-24 10:17:21.522976+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.523 [SIPSample -[SIPSample startEndpointWithEndpointConfiguration:error:]:272] Creating new PSUASIP Endpoint instance.
10:17:21.525 os_core_unix.c !pjlib 2.13-dev for POSIX initialized
10:17:21.526 sip_endpoint.c .Creating endpoint instance...
10:17:21.527 pjlib .select() I/O Queue created (0x1050a32c8)
10:17:21.527 sip_endpoint.c .Module "mod-msg-print" registered
10:17:21.527 sip_transport.c .Transport manager created.
10:17:21.527 pjsua_core.c .PJSUA state changed: NULL --> CREATED
2023-04-24 10:17:21.528077+0700 PSUAKitSample[83000:15642817] 10:17:21.528 sip_endpoint.c .Module "mod-pjsua-log" registered

2023-04-24 10:17:21.528204+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.528 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-PSUA-log" registered
2023-04-24 10:17:21.529375+0700 PSUAKitSample[83000:15642817] 10:17:21.529 sip_endpoint.c .Module "mod-tsx-layer" registered

2023-04-24 10:17:21.529477+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.529 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-tsx-layer" registered
2023-04-24 10:17:21.529491+0700 PSUAKitSample[83000:15642817] 10:17:21.529 sip_endpoint.c .Module "mod-stateful-util" registered

2023-04-24 10:17:21.529592+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-stateful-util" registered
2023-04-24 10:17:21.529895+0700 PSUAKitSample[83000:15642817] 10:17:21.529 sip_endpoint.c .Module "mod-ua" registered

2023-04-24 10:17:21.530024+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-ua" registered
2023-04-24 10:17:21.530068+0700 PSUAKitSample[83000:15642817] 10:17:21.530 sip_endpoint.c .Module "mod-100rel" registered

2023-04-24 10:17:21.530181+0700 PSUAKitSample[83000:15642817] 10:17:21.530 sip_endpoint.c .Module "mod-pjsua" registered

2023-04-24 10:17:21.530217+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-100rel" registered
2023-04-24 10:17:21.530283+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.530 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-PSUA" registered
2023-04-24 10:17:21.530865+0700 PSUAKitSample[83000:15642817] 10:17:21.530 sip_endpoint.c .Module "mod-invite" registered

2023-04-24 10:17:21.530970+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.531 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-invite" registered
2023-04-24 10:17:21.677206+0700 PSUAKitSample[83000:15642817] 10:17:21.677 coreaudio_dev.c .. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz

2023-04-24 10:17:21.677497+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.677 [SIPSample void logCallBack(int, const char *, int):1034] coreaudio_dev.c .. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz
2023-04-24 10:17:21.677588+0700 PSUAKitSample[83000:15642817] 10:17:21.677 coreaudio_dev.c ..core audio initialized

2023-04-24 10:17:21.677804+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.678 [SIPSample void logCallBack(int, const char *, int):1034] coreaudio_dev.c ..core audio initialized
2023-04-24 10:17:21.678538+0700 PSUAKitSample[83000:15642817] 10:17:21.678 pjlib ..select() I/O Queue created (0x1060684a8)

2023-04-24 10:17:21.678743+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.679 [SIPSample void logCallBack(int, const char *, int):1034] pjlib ..select() I/O Queue created (0x1060684a8)
2023-04-24 10:17:21.683380+0700 PSUAKitSample[83000:15642817] 10:17:21.683 pjsua_vid.c ..Initializing video subsystem..

2023-04-24 10:17:21.683585+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.683 [SIPSample void logCallBack(int, const char *, int):1034] PSUA_vid.c ..Initializing video subsystem..
2023-04-24 10:17:21.684058+0700 PSUAKitSample[83000:15642817] 10:17:21.684 vid_conf.c ...Created video conference bridge with 32 ports

2023-04-24 10:17:21.684260+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.684 [SIPSample void logCallBack(int, const char *, int):1034] vid_conf.c ...Created video conference bridge with 32 ports
2023-04-24 10:17:21.684983+0700 PSUAKitSample[83000:15642817] 10:17:21.684 openh264.cpp ...OpenH264 codec initialized

2023-04-24 10:17:21.685168+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.685 [SIPSample void logCallBack(int, const char *, int):1034] openh264.cpp ...OpenH264 codec initialized
2023-04-24 10:17:21.685237+0700 PSUAKitSample[83000:15642817] 10:17:21.685 opengl_dev.c ...OpenGL device initialized

2023-04-24 10:17:21.685370+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.685 [SIPSample void logCallBack(int, const char *, int):1034] opengl_dev.c ...OpenGL device initialized
2023-04-24 10:17:21.715616+0700 PSUAKitSample[83000:15642817] 10:17:21.715 darwin_dev.m ...Darwin video initialized with 5 devices:

2023-04-24 10:17:21.715796+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ...Darwin video initialized with 5 devices:
2023-04-24 10:17:21.715812+0700 PSUAKitSample[83000:15642817] 10:17:21.715 darwin_dev.m ... 0: [Renderer] iOS - UIView

2023-04-24 10:17:21.715917+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ... 0: [Renderer] iOS - UIView
2023-04-24 10:17:21.715921+0700 PSUAKitSample[83000:15642817] 10:17:21.715 darwin_dev.m ... 1: [Capturer] AVF - Front Camera

2023-04-24 10:17:21.716006+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ... 1: [Capturer] AVF - Front Camera
2023-04-24 10:17:21.716033+0700 PSUAKitSample[83000:15642817] 10:17:21.716 darwin_dev.m ... 2: [Capturer] AVF - Back Camera

2023-04-24 10:17:21.716137+0700 PSUAKitSample[83000:15642817] 10:17:21.716 darwin_dev.m ... 3: [Capturer] AVF - Back Dual Camera

2023-04-24 10:17:21.716152+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ... 2: [Capturer] AVF - Back Camera
2023-04-24 10:17:21.716218+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ... 3: [Capturer] AVF - Back Dual Camera
2023-04-24 10:17:21.716247+0700 PSUAKitSample[83000:15642817] 10:17:21.716 darwin_dev.m ... 4: [Capturer] AVF - Back Telephoto Camera

2023-04-24 10:17:21.716375+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.716 [SIPSample void logCallBack(int, const char *, int):1034] darwin_dev.m ... 4: [Capturer] AVF - Back Telephoto Camera
2023-04-24 10:17:21.716409+0700 PSUAKitSample[83000:15642817] 10:17:21.716 colorbar_dev.c ...Colorbar video src initialized with 2 device(s):

2023-04-24 10:17:21.716673+0700 PSUAKitSample[83000:15642817] 10:17:21.716 colorbar_dev.c ... 0: Colorbar generator

2023-04-24 10:17:21.716764+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034] colorbar_dev.c ...Colorbar video src initialized with 2 device(s):
2023-04-24 10:17:21.716918+0700 PSUAKitSample[83000:15642817] 10:17:21.716 colorbar_dev.c ... 1: Colorbar-active

2023-04-24 10:17:21.716938+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034] colorbar_dev.c ... 0: Colorbar generator
2023-04-24 10:17:21.717192+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.717 [SIPSample void logCallBack(int, const char *, int):1034] colorbar_dev.c ... 1: Colorbar-active
2023-04-24 10:17:21.717528+0700 PSUAKitSample[83000:15642817] 10:17:21.717 sip_endpoint.c .Module "mod-evsub" registered

2023-04-24 10:17:21.717645+0700 PSUAKitSample[83000:15642975] 💚 DEBUG 10:17:21.718 [SIPSample void logCallBack(int, const char *, int):1034] sip_endpoint.c .Module "mod-evsub" registered
2023-04-24 10:17:21.717710+0700 PSUAKitSample[83000:15642817] 10:17:21.717 sip_endpoint.c .Module "mod-presence" registered



-
FFMPEG HTTP protocol closing after first packet
27 août 2019, par rustyI’m trying to send a live video stream from my webcam to FFMPEG via the HTTP protocol. However after the first packet is sent FFMPEG closes, but does indeed output a fully playable video. As my intention.
After going over the documentation for the protocol I thought mulitiple_requests would stop this behavior which it did not. After searching online for a few hours I can not find an example specific to my scenario. i.e. receiving a network stream over HTTP.
Code running on the client-side :
var xhttp=new XMLHttpRequest;
if (navigator.mediaDevices) {
var constraints = { audio: true, video: true };
navigator.mediaDevices.getUserMedia(constraints)
.then(function(stream) {
var mediaRecorder = new MediaRecorder(stream);
m = mediaRecorder;
m.start();
m.ondataavailable=e=>{
xhttp.open("POST","http://localhost:8080");
xhttp.send(e.data);
}
setInterval(function(){
m.requestData();
},2000);
}).catch(function(error) {
console.log(error.message);
});
}The FFMPEG command I have tried thus far :
ffmpeg -listen 1 -multiple_requests -i http://localhost:8080 file.webm
Maybe this is not possible with FFMPEG ? If this is the case then it appears the only solution would be to put this command in a loop and keep appending to the output.