
Recherche avancée
Autres articles (31)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...) -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (5872)
-
'pjsip-apps/Samples' Cannot functionally run vid_streamutil.c sample
2 décembre 2020, par ShootingKIngIssue Description
After building[
Build Varient=Debug
,Build Config=x64
] the latest pjproject-vs14 (retargeted to MSVS 2017, WINSDK=8.1, because my application works at these config) as per the build instruction on trac website. Successfully built pjsua and samples.

I want to use only RTP + FFMPEG APIs (pjmedia) for my application from pjproject.


My config_site.h


#define PJMEDIA_HAS_VIDEO 1
#define PJMEDIA_HAS_FFMPEG 1



FFMPEG (pre build from ffmpeg-N-100121-g052b4c3481-win64-gpl-shared.zip)


But running the example, vid_streamutil.c did not work as expected (? Whats the normal expected behaviour ?).
It says


ffmpeg_vid_cod ffmpeg err -22: Invalid argument
vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)



To Reproduce
Steps to reproduce the behavior :


- 

- run
vid_streamutil.exe
with parameter :--codec=H264 --remote=127.0.0.1:5000 --play-file=test.avi --send-only

(test.avi file being a sample file)




Expected behavior
Get some RTP packets in wireshark while listening to ports 4000 and 5000 maybe ? I dont know whats the expected behaviour, documentation dosent say anything about this :(


Logs/Screenshots
Couldn't catch anything on Wireshark.
Console log of vid_streamutil.exe is


vid_streamutil.exe --codec=H264 --remote=127.0.0.1:5000 --send-only --play-file=test.avi
10:25:24.757 os_core_win32. !pjlib 2.10 for win32 initialized
 
10:25:24.840 wmme_dev.c WMME found 12 devices:
10:25:24.858 wmme_dev.c dev_id 0: Wave mapper (in=2, out=2)
10:25:24.860 wmme_dev.c dev_id 1: Headset Microphone (Arctis 7 Ch (in=2, out=0)
10:25:24.860 wmme_dev.c dev_id 2: Microphone (AMM Virtual Audio D (in=2, out=0)
10:25:24.861 wmme_dev.c dev_id 3: CABLE Output (VB-Audio Virtual (in=2, out=0)
10:25:24.864 wmme_dev.c dev_id 4: VoiceMeeter Output (VB-Audio Vo (in=2, out=0)
10:25:24.864 wmme_dev.c dev_id 5: Microphone (Realtek Audio) (in=2, out=0)
10:25:24.865 wmme_dev.c dev_id 6: Headphones (Arctis 7 Game) (in=0, out=2)
10:25:24.866 wmme_dev.c dev_id 7: Speakers / Headphones (Realtek (in=0, out=2)
10:25:24.867 wmme_dev.c dev_id 8: VoiceMeeter Input (VB-Audio Voi (in=0, out=2)
10:25:24.884 wmme_dev.c dev_id 9: Headset Earphone (Arctis 7 Chat (in=0, out=2)
10:25:24.885 wmme_dev.c dev_id 10: Speakers (AMM Virtual Audio Dev (in=0, out=2)
10:25:24.887 wmme_dev.c dev_id 11: Speakers (VB-Audio Virtual Cabl (in=0, out=2)
10:25:24.887 wmme_dev.c WMME initialized
10:25:24.890 pjlib select() I/O Queue created (0000016B2C5F9608)
10:25:24.892 colorbar_dev.c Colorbar video src initialized with 2 device(s):
10:25:24.915 colorbar_dev.c 0: Colorbar generator
10:25:24.935 colorbar_dev.c 1: Colorbar-active
10:25:24.956 avi_player.c The AVI file has 2 streams.
10:25:24.976 avi_player.c AVI file player 'test.avi' created with 2 media ports
10:25:24.994 vid_streamutil Reading video stream 1280x720 H264 @30.00fps
10:25:25.033 rtp.c pjmedia_rtp_session_init: ses=0000016B2C6793C8, default_pt=97, ssrc=0x294823
10:25:25.053 vstdec0000016B Decoding channel created 720x480 I420<-H264 22/1(~22)fps
10:25:25.054 rtp.c pjmedia_rtp_session_init: ses=0000016B2C62DF1C, default_pt=97, ssrc=0x294823
10:25:25.057 vstenc0000016B Encoding channel created 1280x720 I420->H264 30/1(~30)fps
10:25:25.060 udp0000016B2C6 SO_RCVBUF set to 65536
10:25:25.061 udp0000016B2C6 SO_SNDBUF set to 65536
10:25:25.062 vid_stream.c Video stream vstrm0000016B2C678508 created
10:25:25.086 vstenc0000016B Encoder stream started
10:25:25.104 vstdec0000016B Decoder stream paused
 [VID_STEAMUTIL] Stream is active, dir is send-only, sending to 127.0.0.1:5000
10:25:25.114 vid_streamutil Sending 1280x720 H264 @30.00fps

Commands:
 q Quit

Command: 10:25:25.147 ffmpeg_vid_cod !ffmpeg err -22: Invalid argument
10:25:25.222 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.237 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.250 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.251 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.287 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.311 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.316 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.341 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.353 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.369 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.386 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.387 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.411 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.415 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.452 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.469 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.486 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.496 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.506 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.527 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.547 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.568 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.576 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.604 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.606 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.627 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.648 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.668 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.686 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.711 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.731 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.752 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.769 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.778 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.804 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.827 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.833 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.868 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.886 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.895 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.921 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.923 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.943 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:25.963 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:25.983 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.003 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.019 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.038 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.041 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.060 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.081 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.086 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.109 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.130 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.138 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.162 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.183 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.202 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.220 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.228 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.260 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.281 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.312 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.321 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.321 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.322 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.323 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.323 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.324 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.324 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.333 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.353 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.353 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.381 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.401 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.414 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.429 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.449 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.469 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.480 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.510 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.531 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.553 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.571 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.594 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.615 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.636 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.653 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.671 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.678 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.714 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.736 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.754 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.777 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.781 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
10:25:26.816 ffmpeg_vid_cod ffmpeg err -22: Invalid argument
10:25:26.836 vstenc0000016B Codec encode_begin() error: Codec internal creation error (PJMEDIA_CODEC_EFAILED)
EOF while reading stdin, will quit now..

Commands:
 q Quit

^C



Desktop information :


- 

- OS, Distribution & Version : MS Windows 10 Home, 1909
- PJSIP

- 

- version : 2.10
- applied patch(es) : Nothing Extra
configure
script params : Defaultconfig_site.h
contents : Aforementioned- related third party libraries & versions :
FFMPEG 4.3


















#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 91
#define LIBAVCODEC_VERSION_MICRO 100



Additional context
I didnt change the default program that must except adding some printf's when program goes to exit label, without this it will be very difficult to know which part of the program jumped to exit : label. Anyways, here is the full code,


vid_streamutil.c (with printfs)


Any help is appreciated ^^'
Thanks.


- run
-
aacenc_pred : rework the way prediction is done
29 août 2015, par Rostislav Pehlivanovaacenc_pred : rework the way prediction is done
This commit completely alters the algorithm of prediction.
The original commit which introduced prediction was completely
incorrect to even remotely care about what the actual coefficients
contain or whether any options were enabled. Not my actual fault.This commit treats prediction the way the decoder does and expects
to do : like lossy encryption. Everything related to prediction now
happens at the very end but just before quantization and encoding
of coefficients. On the decoder side, prediction happens before
anything has had a chance to even access the coefficients.Also the original implementation had problems because it actually
touched the band_type of special bands which already had their
scalefactor indices marked and it’s a wonder the asserion wasn’t
triggered when transmitting those.Overall, this now drastically increases audio quality and you should
think about enabling it if you don’t plan on playing anything encoded
on really old low power ultra-embedded devices since they might not
support decoding of prediction or AAC-Main. Though the specifications
were written ages ago and as times change so do the FLOPS.Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>
-
OpenCV accept HTTP video streaming with different endpoints
22 juin 2019, par nabroyanI am writing a server, which receives live video stream over HTTP and performs some operations for different endpoints.
I am using
OpenCV
for that and my basic code looks somethings like thisvoid f1()
{
cv::VideoCapture cap("http://localhost:8080/operation1");
if (!cap.isOpened())
return;
for (;;)
{
cv::Mat frame;
cap >> frame;
// do something
}
}
void f2()
{
cv::VideoCapture cap("http://localhost:8080/operation2");
if (!cap.isOpened())
return;
for (;;)
{
cv::Mat frame;
cap >> frame;
// do something else
}
}
void f3() {...}As you see each function listens to a different HTTP endpoint and does different operation. Each function runs in a separate thread.
The problem is that for some reason
OpenCV
ignores the resource part in endpoint i.e. ifip:port
is correct it will accept the stream no matter it is fromoperation1
oroperation2
.For testing purposes I use this command as a stream generator
ffmpeg -i sample.mp4 -listen 1 -f matroska -c:v libx264 -preset fast -tune zerolatency http://localhost:8080/operation1
How can I make
OpenCV
to differentiate between HTTP endpoints ? What am I missing ? I have no any previous experience withOpenCV
and photo/video stuff.