
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (44)
-
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" (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (4704)
-
Unable to run a program in PATH from Java code
17 novembre 2012, par user1831004I am developing a Red5 media server application on a Mac (Dynamic Web Project in Eclipse). The app has to invoke FFMPEG to convert the video to a different format.
I added "/Applications/FFMPEG" to PATH variable by running the following command in Terminal :
echo 'export PATH=/Applications/FFMPEG:$PATH' >> ~/.profile
When I invoke FFMPEG from terminal, it works fine. However, every time I run it from Java code with :
Process p = Runtime.getRuntime().exec("ffmpeg");
p.waitFor();I get the following error :
Cannot run program "ffmpeg": error=2, No such file or directory
I thought this might be a security limitation specific to the type of project, but even a simple Java program produces the same result. What am I missing ?
Changing "ffmpeg" to full path of the application works, but I don't want to upload FFMPEG into the same directory as Red5 on a production server.
-
Why rtp streaming of a .avi video file fails to be received ?
14 juillet 2016, par user1914692In ffmpeg streamingGuide, it writes :
ffmpeg -re -f lavfi -i aevalsrc="sin(400*2*PI*t)" -ar 8000 -f mulaw -f rtp rtp://127.0.0.1:1234 &
ffplay rtp://127.0.0.1:1234I want to use a real video file to replace the artificial signal.
Then I write the below at terminal A :ffmpeg -re -i outputFile.avi -f mulaw -f rtp rtp://127.0.0.1:1234
it seems it is working :
The frame information is counting. Here are information on the terminal A at the end :frame= 309 fps= 29 q=31.0 Lsize= 931kB time=00:00:10.30 bitrate= 740.8kbits/s video:922kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.030813%
When the frame at terminal A is still counting (not finished), I type the below at terminal B :
ffplay rtp://127.0.0.1:1234
But it does not work :
The error information is :[udp @ 0x7fb370001500] bind failed: Address already in useB f=0/0
rtp://127.0.0.1:1234: Input/output errorWhy ?
[Update 1] Following the instruction from Camille Goudeseune
I used the foo.sdp
The input for the ffmpeg terminal is :ffmpeg -re -i out.avi -f mulaw -f rtp rtp ://127.0.0.1:1235
The terminal for ffplay is :
ffplay -i foo.sdp
The ffplay terminal shows a lot of error, without images.
libpostproc 52. 2.100 / 52. 2.100
[sdp @ 0x7fafdc0008c0] Undefined type (30) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 25453 86 0B f=0/0
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-25367)
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 25453 86
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-25367)
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Undefined type (31) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 62414 6130B f=0/0
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-61801)
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 62414 613
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-61801)
[h264 @ 0x7fafdc003020] non-existing PPS referencedq= 0B f=0/0
[h264 @ 0x7fafdc003020] non-existing PPS 0 referenced
[h264 @ 0x7fafdc003020] decode_slice_header error
[h264 @ 0x7fafdc003020] Invalid mix of idr and non-idr slices
[sdp @ 0x7fafdc0008c0] Undefined type (31) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Unhandled type (29) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (26) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
Last message repeated 2 times 0KB vq= 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Undefined type (31)
[sdp @ 0x7fafdc0008c0] Unhandled type (26) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (25) (See RFC for implementation details
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] missing picture in access unit with size 84589
[h264 @ 0x7fafdc003020] Partitioned H.264 support is incomplete
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] no frame!
[h264 @ 0x7fafdc003020] RTP: missed 2563 packetsB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Undefined type (30)
Last message repeated 1 times
[sdp @ 0x7fafdc0008c0] Undefined type (31) -
retriving video details with ffprobe in php
16 mai 2023, par Roohbakhsh Masoudi'm using this command for retrieve video information in ubuntu terminal :



ffprobe -show_streams sample.mp4




this command show all information about video in terminal, but when i use this command in php and use exec function to retrieve result , return



string(0) ""
{}




how i can retrieve result in php ?



my code :



public function information($ffmpeg,$file)
 {
 $info = exec("$ffmpeg -show_streams $file");
 return $info;
 }