
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 (53)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (5138)
-
discord.player ffmpeg process 12040 successfully terminated with return code of 1
28 novembre 2024, par morichhcode :


@client.tree.command()
async def play(interaction: Interaction, url: str):
 global voice
 channel = interaction.user.voice.channel
 voice = get(client.voice_clients, Guild=interaction.guild)
 if voice and voice.is_connected():
 await voice.move_to(channel)
 await interaction.response.send_message(f"error")
 else:
 voice = await channel.connect()
 await interaction.response.send_message(f"joined")
 voice.play(discord.FFmpegPCMAudio(executable="C:/ffmpeg/bin/ffmpeg.exe", source = url)) 



error :


2022-12-10 19:32:48 INFO discord.voice_client Connecting to voice...
2022-12-10 19:32:48 INFO discord.voice_client Starting voice handshake... (connection attempt 1)
2022-12-10 19:32:48 INFO discord.voice_client Voice handshake complete. Endpoint found russia9326.discord.media
2022-12-10 19:32:50 INFO discord.player ffmpeg process 12040 successfully terminated with return code of 1.



initially there was an error that ffmpeg was not found, I downloaded it separately, indicated the path to it and now it's coming out like this


-
JavaCV Video Player with FFmpeg and JavaFx
2 juin 2021, par ِِYazdan NaderiI want to create a media player using Java CV, but I can not adjust the frame rate
And because of this, some videos play fast and some play slow


Is it possible to read the information of a video through a FFmpegFrameGrraber object and set it in another object to solve the problem ?
Of course, I did this and did not get an answer, but if there is another way, please help


playThread = new Thread(new Runnable() {
 public void run() {
 try {
 final String videoFilename = "E:\\Java\\s1\\3.mp4";
 final String videoFilename2 = "E:AudioVideo.mp4";
 final String videoFilename3 = "E:\\1.mp4";
 final String videoFilename4 = "E:\\Java\\s1\\3.mp4";


 FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(videoFilename);



 grabber.start();

 grabber.setFrameRate(30.00);


 primaryStage.setWidth(grabber.getImageWidth());
 primaryStage.setHeight(grabber.getImageHeight());

 final AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 16, grabber.getAudioChannels(), true, true);

 final DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
 final SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);
 soundLine.open(audioFormat);
 soundLine.start();

 JavaFXFrameConverter converter = new JavaFXFrameConverter();

 ExecutorService executor = Executors.newSingleThreadExecutor();

 while (!Thread.interrupted()) {
 Frame frame = grabber.grab();
 if (frame == null) {
 break;
 }
 if (frame.image != null) {
 final Image image = converter.convert(frame);//
 Platform.runLater(() -> {
 
 imageView.setImage(image);

 });
 }
 else if (frame.samples != null) {
 final ShortBuffer channelSamplesShortBuffer = (ShortBuffer) frame.samples[0];
 channelSamplesShortBuffer.rewind();

 final ByteBuffer outBuffer = ByteBuffer.allocate(channelSamplesShortBuffer.capacity() * 2);

 for (int i = 0; i < channelSamplesShortBuffer.capacity(); i++) {
 short val = channelSamplesShortBuffer.get(i);
 outBuffer.putShort(val);
 }

 try {



 executor.execute(() -> {
 soundLine.write(outBuffer.array(), 0, outBuffer.capacity());
 outBuffer.clear();
 });
 } catch (Exception interruptedException) {
 Thread.currentThread().interrupt();
 }
 }

 }
 executor.shutdownNow();
 executor.awaitTermination(10, TimeUnit.SECONDS);

 soundLine.stop();
 grabber.stop();
 grabber.release();
 Platform.exit();
 } catch (Exception exception) {
 LOG.log(Level.SEVERE, null, exception);
 System.exit(1);
 }
 }
 });
 playThread.start();
 }



-
It is possible stream chunks from a mpegts video file to VLC Player and how I can format UDP packets on MPEG-TS format ?
27 juillet 2023, par ArendarI've been searching about UDP Streaming. I know that I can stream video files with LibVLC but... It is possible to do this with UDPClient in C# ?

I'm stuck with a work that consist on stream video file chunks into VLC player... But sending byte packets with UDPClient just does nothing. How could be streamed these chunks ?

I've tried to encode a mp4 file into a MPEG-TS file, then extract the bytes with a fileStream and last send it into packets of 1500 bytes. But when I see at the VLC console register I see this errors.

VLC console shows error with UDP Streaming with UDPClient.