
Recherche avancée
Médias (1)
-
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 (53)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (10509)
-
How to use the QMediaPlayer module to connect to a rtsp stream ?
19 juin 2023, par DanielaI'm creating an RTSP stream using FFmpeg :


ffmpeg -f gdigrab -framerate 30 -probesize 100M -i title="" -c:v libx264 -preset veryfast -maxrate 1000k -bufsize 1000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 128k -f rtsp -rtsp_transport udp rtsp://...129:8554/stream



and trying to connect to it using the Qt module
QMediaPlayer
.

It stuck for many seconds when it read the line

player->setSource(QUrl("rtsp://....129:8554/stream"));


and then debug this message :


qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata



Also,
connect(player, &QMediaPlayer::errorOccurred
print :

Error: "Invalid argument"


class MediaPlayer : public QObject
{
 Q_OBJECT
public:
 MediaPlayer (QObject* parent = nullptr) : QObject(parent)
 {
 player = new QMediaPlayer;
 player->setSource(QUrl("rtsp://....129:8554/stream"));
 connect(player, &QMediaPlayer::errorOccurred, this, [this](QMediaPlayer::Error error, const QString& errorString)
 {
 qDebug() << "Error:" << errorString;
 });

 videoWidget = new QVideoWidget;
 player->setVideoOutput(videoWidget);

 videoWidget->show();
 player->play();
 }

private:
 QMediaPlayer* player;
 QVideoWidget* videoWidget;
};



Testing the exactly same
streamUrl
onvlc
does work correctly.
I'm using Qt 6.6, and Win10. ffmpeg 6.0

How I could debug this ?


-
nginx rtmp-module can't execute ffmpeg
6 juin 2023, par NasirI am having an issue with nginx-rtmp-module exec ffmpeg command. i have followed the example on 
www.github.com/arut/nginx-rtmp-module



/home/junaid/bin/ffmpeg -f video4linux2 -i /dev/video1 -c:v libx264 -an -f flv rtmp://127.0.0.1:1935/myapp/mystream




the command is working fine in terminal



Config file :



rtmp {
server {
 listen 1935;
 ping 30s;
 notify_method get;

 application myapp {
 live on;
 allow play all;
 exec_static /home/junaid/bin/ffmpeg -f video4linux2 -i /dev/video1 -c:v libx264 -an -f flv rtmp://127.0.0.1:1935/myapp/mystream; 
 }
}




Error log :
http://www.codepad.org/enD4wlZ9



I have tried :



- 

- nginx running as root (have permission to execute ffmpeg)
- using ip instead of localhost
- using complete path to ffmpeg
- executing bash file (having ffmpeg and echo commands : echo commands execute just fine) from nginx











please help me resolve this issue


-
No module named 'skvideo.io.ffmpeg' in the project
12 juillet 2024, par kyoboEven though I have installed the scikit-video and installed ffmpeg, I still meet this problem :

No module named 'skvideo.io.ffmpeg


Output :


(sd) huishi@huishi:~/workspace/projectsideo_python$ **pip install scikit-video**
Requirement already satisfied: scikit-video in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (1.1.11)
Requirement already satisfied: scipy in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (1.8.1)
Requirement already satisfied: pillow in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (9.2.0)
Requirement already satisfied: numpy in /home/huishi/anaconda3/envs/sdb/python3.8/site-packages (from scikit-video) (1.23.0)
(sd) huishi@huishi:~/workspace/projectsideo_python$ **sudo apt-get install ffmpeg**
正在读取软件包列表... 完成
正在分析软件包的依赖关系树 
正在读取状态信息... 完成 
ffmpeg 已经是最新版 (7:3.4.11-0ubuntu0.1)。
下列软件包是自动安装的并且现在不需要了:
 docker-scan-plugin gir1.2-goa-1.0 gir1.2-snapd-1
使用'sudo apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 20 个软件包未被升级。
(sd) huishi@huishi:~/workspace/projectsideo_python$ python RabbitMqUtils.py 
The license has expired.
/home/huishi/workspace/projectsideo_python/train_resource/train_split.py:12: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
 tr_configs = yaml.load(f)
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
/home/huishi/anaconda3/envs/sdb/python3.8/site-packages/skvideo/__init__.py:306: UserWarning: ffmpeg/ffprobe not found in path: /usr/local/bin
 warnings.warn("ffmpeg/ffprobe not found in path: " + str(path), UserWarning)
Traceback (most recent call last):
 File "RabbitMqUtils.py", line 17, in <module>
 from video_postprocess import post_Process
 File "/home/huishi/workspace/projectsideo_pythonideo_postprocess/post_Process.py", line 12, in <module>
 import skvideo.io
 File "/home/huishi/anaconda3/envs/sdb/python3.8/site-packages/skvideo/io/__init__.py", line 8, in <module>
 from .ffmpeg import *
ModuleNotFoundError: **No module named 'skvideo.io.ffmpeg'**
(sd) huishi@huishi:~/workspace/projectsideo_python$
</module></module></module>


I have tried to upgrade pip and skvideo but it doesn't work.


How can I solve this problem ?