
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (49)
-
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (6684)
-
I am able to create m3u8 file using ffmpeg from rtmp live but not able to play the file in html5 video tag & apple device
3 janvier 2014, par NikitaI am able to create the m3u8 file by following steps :
1.Execute ffmpeg -v verbose -i rtmp://<host>:<port>/<stream> -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10 -start_number 1 <pathtofolderyouwantto>/<streamname>.m3u8
</streamname></pathtofolderyouwantto></stream></port></host>2.Make that folder you just mentioned on ffmpeg command () to be accessible by an http url.
3.Create a simple html page to play :
<video controls="controls" width="480" height="270" src="<streamName>.m3u8"></video>
But not able to play using html5 video tag as well as in apple device.
following is my ffmpeg console output :
sending ctrl. type: 0x0003
Invoking createStream
FCSubscribe: livestream
Invoking FCSubscribe
RTMP_ClientPacket, received: invoke 29 bytes
(object begin)
Property:
Property:
Property: NULL
Property:
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <createstream>
SendPlay, seekTime=0, stopTime=0, sending play: livestream
Invoking play
sending ctrl. type: 0x0003
RTMP_ClientPacket, received: invoke 21 bytes
(object begin)
Property:
Property:
Property: NULL
Property: NULL
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <fcsubscribe>
HandleChangeChunkSize, received: chunk size change to 1024
Received FLV packet before play()! Ignoring.
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 1
RTMP_ClientPacket, received: invoke 160 bytes
(object begin)
Property:
Property:
Property: NULL
Property:
(object begin)
Property:
Property:
Property:
Property:
Property:
(object end)
(object end)
HandleInvoke, server invoking <onstatus>
HandleInvoke, onStatus: NetStream.Play.Reset
RTMP_ClientPacket, received: invoke 154 bytes
(object begin)
Property:
Property:
Property: NULL
Property:
(object begin)
Property:
Property:
Property:
Property:
Property:
(object end)
(object end)
HandleInvoke, server invoking <onstatus>
HandleInvoke, onStatus: NetStream.Play.Start
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465657184
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465659184
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465661184
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465662184
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465663184
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465678183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465680183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465682183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465684183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465686183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465688183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465690183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465692183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465694183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465696183
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465698182
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465700182
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465702182
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465704182
sending ctrl. type: 0x0007
HandleCtrl, received ctrl. type: 6, len: 6
HandleCtrl, Ping 1465706182
sending ctrl. type: 0x0007
[flv @ 0263ce00] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://serveripaddress/oflaDemo/livestream live=1':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: vp6f, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
[graph 0 input from stream 0:0 @ 03020420] w:320 h:240 pixfmt:yuv420p tb:1/1000 fr:1000/1 sar:0/1 sws_param:flags=2
[libx264 @ 02833600] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 02833600] profile Constrained Baseline, level 4.2
[mpegts @ 038c1180] muxrate VBR, pcr every 100 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, hls, to 'C:/Program Files/Apache Software Foundation/apache-tomcat-6.0.35/webapps/mediaplayer/stream.m3u8':
Metadata:
encoder : Lavf54.37.100
Stream #0:0: Video: h264, yuv420p, 320x240, q=-1--1, 90k tbn, 1k tbc
Stream mapping:
Stream #0:0 -> #0:0 (vp6f -> libx264)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Error number -1 occurred
Last message repeated 2 times
*** 192 dup!
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=0.0 q=28.0 size= 0kB time=00:00:00.56 bitrate= 0.0kbits/s dup=601 drop=0
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 3 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 47 dup! fps=1129 q=47.0 size= 0kB time=00:00:01.17 bitrate= 0.0kbits/s dup=1199 drop=0
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1164 q=40.0 size= 0kB time=00:00:01.82 bitrate= 0.0kbits/s dup=1844 drop=0
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1181 q=57.0 size= 0kB time=00:00:02.48 bitrate= 0.0kbits/s dup=2489 drop=0
Last message repeated 1 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
*** 64 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 46 dup! fps=1181 q=44.0 size= 0kB time=00:00:03.09 bitrate= 0.0kbits/s dup=3088 drop=0
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
*** 64 dup!
*** 62 dup!
*** 63 dup!
*** 47 dup!
*** 64 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 62 dup! fps=1190 q=49.0 size= 0kB time=00:00:03.74 bitrate= 0.0kbits/s dup=3733 drop=0
*** 63 dup!
*** 48 dup!
*** 62 dup!
*** 64 dup!
*** 62 dup!
*** 48 dup!
*** 62 dup!
*** 64 dup!
*** 62 dup!
*** 47 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1201 q=32.0 size= 0kB time=00:00:04.40 bitrate= 0.0kbits/s dup=4377 drop=0
Last message repeated 2 times
*** 48 dup!
*** 63 dup!
Last message repeated 1 times
*** 62 dup!
*** 48 dup!
*** 63 dup!
Last message repeated 1 times
*** 62 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 48 dup! fps=1214 q=57.0 size= 0kB time=00:00:05.07 bitrate= 0.0kbits/s dup=5038 drop=0
*** 63 dup!
*** 62 dup!
*** 63 dup!
*** 48 dup!
*** 62 dup!
*** 63 dup!
Last message repeated 1 times
*** 47 dup!
*** 64 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 47 dup! fps=1226 q=52.0 size= 0kB time=00:00:05.79 bitrate= 0.0kbits/s dup=5747 drop=0
*** 63 dup!
Last message repeated 3 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1232 q=57.0 size= 0kB time=00:00:06.51 bitrate= 0.0kbits/s dup=6455 drop=0
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1240 q=57.0 size= 0kB time=00:00:07.23 bitrate= 0.0kbits/s dup=7163 drop=0
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1243 q=44.0 size= 0kB time=00:00:07.95 bitrate= 0.0kbits/s dup=7871 drop=0
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 3 times
*** 47 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1245 q=52.0 size= 0kB time=00:00:08.61 bitrate= 0.0kbits/s dup=8516 drop=0
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 2 times
*** 47 dup!
Bitrate not available, avio_tell() failed: Error number -22 occurred
*** 63 dup! fps=1250 q=49.0 size= 0kB time=00:00:09.33 bitrate= 0.0kbits/s dup=9224 drop=0
Last message repeated 2 times
*** 47 dup!
*** 63 dup!
Last message repeated 1 times
</onstatus></onstatus></fcsubscribe></createstream> -
External command does not execute completely - Java
18 avril 2012, par Hristo Valchev HristovSo, I am building a program that converts .flv files to other formats.
For that I'm using ffmpeg which does its job perfectly when executing it via command line. For example :ffmpeg -i C:\test.flv -acodec libmp3lame -y C:\test.mp3
This example works like a charm - there isn't a single problem when executing the command.
BUT when I try to execute the same command from within a Java class a problem occurs. I do this in a try-catch block :
System.out.println("Start");
Process p = Runtime.getRuntime().exec("cmd /c ffmpeg -i C:\test.flv -acodec libmp3lame -y C:\test.mp3");
System.out.println("End");The console prints "Start". It starts converting and it doesn't finish.
Can somebody help me ? -
How to generate SDP file from FFMPEG
20 novembre 2016, par MobilityLabSo, I have been working with FFMPEG on a project that involves streaming video from one computer to another across the internet with RTP. I want to take that into ffmpeg and use ffserver to display it on a local network.
As I understand it, you need to have a SDP information so that the receiving ffmpeg instance can interpret the RTP stream. Despite what webpages say, I can not find the SDP information in the information printed to the console.
How can I force the transmitting ffmpeg instance to output the SDP information so that I can use it to configure my receiving end ?
Right now, I am testing on Windows 7, but the final solution will be on linux.
The command I’m running for testing is
ffmpeg -fflags +genpts -i files\2005-SFSD-sample-mpeg1.mpg -threads 0 -r 10 -g 45
-s 352x240 -deinterlace -y 2005.mp4 -an -threads 0 -r 10 -g 45 -s 352x240
-deinterlace -f rtp rtp://192.168.200.198:9008My ffmpeg information is...
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 23 2011 14:22:23 with gcc 4.5.3
configuration:
--disable-static
--enable-shared
--enable-gpl
--enable-version3
--enable-memalign-hack
--enable-runtime-cpudetect
--enable-avisynth
--enable-bzlib
--enable-frei0r
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libfreetype
--enable-libgsm
--enable-libmp3lame
--enable-libopenjpeg
--enable-librtmp
--enable-libschroedinger
--enable-libspeex
--enable-libtheora
--enable-libvorbis
--enable-libvpx
--enable-libx264
--enable-libxavs
--enable-libxvid
--enable-zlib
--disable-outdev=sdl
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0