
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (74)
-
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 -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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 (5489)
-
merging audio files using FFmpegFrameRecorder
1er juin 2015, par Sargam ModakI have successfully merged(not concatenate) two .aac audio files using ffmpegframerecorder but the output file is like very slow.
Below is the code i have used.
Is there anything i can use to speed up the output audio file. Is it related to framerate ?FFmpegFrameGrabber frameGrabber =
new FFmpegFrameGrabber("storage/sdcard0/Audio/audio.aac");
f=new File("/storage/sdcard0/Audio/audnew.aac");
try {
f.createNewFile();
} catch (IOException e2) {
// TODO Auto-generated catch block
Log.d("def",e2.getLocalizedMessage());
}
FFmpegFrameGrabber grabber1 = new FFmpegFrameGrabber("/storage/sdcard0/Audio/smoke.aac");
try {
frameGrabber.start();
grabber1.start();
} catch (org.bytedeco.javacv.FrameGrabber.Exception e1) {
// TODO Auto-generated catch block
Log.d("here",e1.getLocalizedMessage());
}
FFmpegFrameRecorder recorde = new FFmpegFrameRecorder(f, frameGrabber.getAudioChannels());
try {
recorde.setAudioCodec(AV_CODEC_ID_AAC);
Log.d("12","here");
recorde.setFrameRate(12);
recorde.start();
Frame frame1 = new Frame();
Frame frame2 = new Frame();
for (int i=0;i<1000000;i++)
{
frame1 = grabber1.grabFrame();
frame2 = frameGrabber.grabFrame();
if (frame1==null || frame2==null) {
Log.d("er","Failed cvQueryFrame");
frameGrabber.release();
grabber1.release();
break;
}
recorde.record(frame1);
recorde.record(frame2);
}
recorde.stop();
grabber1.stop();
}catch(Exception e){
Log.d("abc", e.getLocalizedMessage());
} -
How to reduce jitter in gstreamer udp multicast. I can't make it less than 140ms. And who makes it so big. Demultiplexer or multiplexer. ffmpeg work
4 septembre 2023, par SlavaI need to feed a udp multicast stream to gstreamer. Make the conversion to audio without touching the video and output it again to udp multicast. The design is simple and it works. But the output is a very large 140ms jitter. How can I reduce the jitter. Here is the construction I use


gst-launch-1.0 udpsrc uri="udp://224.0.191.147:1234" ! tsdemux name=tsdemux0 tsdemux0.video_0_03f3 ! queue ! h264parse ! mpegtsmux name=tsmux0 ! queue ! udpsink host=230.3.2.2 port=1234 auto-multicast=true ttl-mc=64 tsdemux0.audio_0_03f4 ! queue ! decodebin ! audioconvert ! audiokaraoke ! avenc_mp2 ! tsmux0.



I tried to use various parameters but couldn't get a good result. Please help. I've been solving this problem for a week now


This design works well. But I need it on gstreamer


./ffmpeg -threads auto -thread_type 1 -re -i "udp://224.0.191.147:1234?fifo_size=50000000&overrun_nonfatal=1" -filter_complex "aderivative" -max_delay 3000000 -max_muxing_queue_size 1000000 -muxrate 5000000 -c:v copy -f mpegts -muxrate 5M -pcr_period 20 -pat_period 0.10 -sdt_period 0.25 -metadata service_provider="My Provider" -metadata service_name="MyTV Channel" -metadata title="MyTV Channel" -metadata:s:a:0 language=rus -mpegts_flags +pat_pmt_at_frames -flags cgop+ilme -sc_threshold 1000000000 "udp://230.3.2.2:1234?pkt_size=1316&ttl=64&&bitrate=5000000&overrun_nonfatal=1"



In ffmpeg, the -re parameter makes the jitter small. But I didn't find which parameter does the same in gstreamer


-
Java Runtime exec() get stuck after a while
20 décembre 2013, par codareeeI'm building a simple UI for ffmpeg launching ffmpeg.exe with parameters using exec(). it works on Os X but on Windows 7-8 after few seconds the ffmpeg process suspends itself and resumes only when I kill the father process. (also ddlhost.exe is created)
Ffmpeg.exe converts successfully the same video from cmd.Searching on the internet I've found this answer but I have the same problem running a simple test program which is not using the Input and Error streams.
Here is the test program code which has the same problem of the main one :
public class Main {
static String param_ffmpeg_1 = "./data/ffmpeg.exe";
static String param_ffmpeg_2 = "-i";
static String in = "./data/source.mov";
static String out = "./data/out.flv";
static Process p;
public static void main(String[] args) {
/*File f = new File(out);
if (f.exists()){
f.delete();
}*/
Runtime rt = Runtime.getRuntime() ;
//String cmd1 = param_ffmpeg_1 + param_ffmpeg_2 + in_path + param_ffmpeg_3 + out_path ;
System.out.println(in);
System.out.println(out);
String[] cmd1 = new String[] { param_ffmpeg_1, param_ffmpeg_2, in, "-ar", "44100", "-vb", "2500k", "-s", "882x496", "-f", "flv", out};
try {
p = rt.exec(cmd1);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int r = 123456;
try {
r = p.waitFor();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(r);
}}