Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (107)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (15163)

  • JavaFX media issue on Ubuntu : Could not create player

    14 mai, par parsa2820

    I am trying to play mp3 file on JavaFX-11.0.2 on Ubuntu-20.04 using JDK-13.0.2 but I keep getting this same error every time. While I was searching for that I found that JavaFX uses older version of some libraries(See this issue on github). So I compiled and installed ffmpeg-3.1.11 from source. But the same exception is thrown. I put my code and error message bellow. I stuck on this for days so I really appreciate any help. Thanks.

    


    note : This is not duplicate qeustion. All other questions regarding to this error happend on different versions and had different causes. I tried most of them but none of them works for me.

    


    /usr/lib/jvm/jdk-13.0.2/bin/java --module-path /opt/javafx-sdk-11.0.2/lib --add-modules=javafx.controls,javafx.fxml,javafx.media -Djava.library.path=/opt/javafx-sdk-11.0.2/lib -javaagent:/opt/idea-IU-201.7846.76/lib/idea_rt.jar=46237:/opt/idea-IU-201.7846.76/bin -Dfile.encoding=UTF-8 -classpath /home/parsa/Documents/welanner/target/classes:/opt/javafx-sdk-11.0.2/lib/src.zip:/opt/javafx-sdk-11.0.2/lib/javafx-swt.jar:/opt/javafx-sdk-11.0.2/lib/javafx.web.jar:/opt/javafx-sdk-11.0.2/lib/javafx.base.jar:/opt/javafx-sdk-11.0.2/lib/javafx.fxml.jar:/opt/javafx-sdk-11.0.2/lib/javafx.media.jar:/opt/javafx-sdk-11.0.2/lib/javafx.swing.jar:/opt/javafx-sdk-11.0.2/lib/javafx.controls.jar:/opt/javafx-sdk-11.0.2/lib/javafx.graphics.jar:/home/parsa/.m2/repository/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar view.GUI&#xA;Exception in Application start method&#xA;java.lang.reflect.InvocationTargetException&#xA;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#xA;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&#xA;    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&#xA;    at java.base/java.lang.reflect.Method.invoke(Method.java:567)&#xA;    at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:464)&#xA;    at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:363)&#xA;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&#xA;    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&#xA;    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&#xA;    at java.base/java.lang.reflect.Method.invoke(Method.java:567)&#xA;    at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)&#xA;Caused by: java.lang.RuntimeException: Exception in Application start method&#xA;    at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)&#xA;    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)&#xA;    at java.base/java.lang.Thread.run(Thread.java:830)&#xA;Caused by: MediaException: UNKNOWN : com.sun.media.jfxmedia.MediaException: Could not create player! : com.sun.media.jfxmedia.MediaException: Could not create player!&#xA;    at javafx.media/javafx.scene.media.MediaException.exceptionToMediaException(MediaException.java:146)&#xA;    at javafx.media/javafx.scene.media.MediaPlayer.init(MediaPlayer.java:518)&#xA;    at javafx.media/javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:421)&#xA;    at view.GUI.start(GUI.java:13)&#xA;    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)&#xA;    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)&#xA;    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)&#xA;    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)&#xA;    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)&#xA;    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)&#xA;    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)&#xA;    at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)&#xA;    ... 1 more&#xA;Caused by: com.sun.media.jfxmedia.MediaException: Could not create player!&#xA;    at javafx.media/com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(NativeMediaManager.java:295)&#xA;    at javafx.media/com.sun.media.jfxmedia.MediaManager.getPlayer(MediaManager.java:118)&#xA;    at javafx.media/javafx.scene.media.MediaPlayer.init(MediaPlayer.java:474)&#xA;    ... 11 more&#xA;Exception running application view.GUI&#xA;&#xA;Process finished with exit code 1&#xA;</init>

    &#xA;

    This is my code. I know path and other things are correct because I can run it on Windows properly.

    &#xA;

    package view;&#xA;&#xA;import javafx.scene.media.Media;&#xA;import javafx.scene.media.MediaPlayer;&#xA;import javafx.stage.Stage;&#xA;&#xA;import java.io.File;&#xA;&#xA;public class GUI extends javafx.application.Application{&#xA;    public void start(Stage stage) throws Exception {&#xA;        String path = "/home/parsa/Music/Ninoush.mp3";&#xA;        Media media = new Media(new File(path).toURI().toString());&#xA;        MediaPlayer mediaPlayer = new MediaPlayer(media);&#xA;        mediaPlayer.setAutoPlay(true);&#xA;        stage.setTitle("Playing audio");&#xA;        stage.show();&#xA;    }&#xA;&#xA;    public static void main(String[] args) {&#xA;        launch(args);&#xA;    }&#xA;}&#xA;

    &#xA;

    This is my ffmpeg and libraries versions :

    &#xA;

    ffmpeg version 3.1.11 Copyright (c) 2000-2017 the FFmpeg developers&#xA;built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)&#xA;configuration: &#xA;libavutil      55. 28.100 / 55. 28.100&#xA;libavcodec     57. 48.101 / 57. 48.101&#xA;libavformat    57. 41.100 / 57. 41.100&#xA;libavdevice    57.  0.101 / 57.  0.101&#xA;libavfilter     6. 47.100 /  6. 47.100&#xA;libswscale      4.  1.100 /  4.  1.100&#xA;libswresample   2.  1.100 /  2.  1.100&#xA;

    &#xA;

    Edit 3 : I can play wav file this way but I can't play mp3.

    &#xA;

  • Node Media Server not stream when i try to pass the argument "transpose=1" to ffmpeg

    28 mai 2020, par joao.jlf4

    I'm using node-media-server to stream to instagram, and i need to rotate the original vídeo, to be portrait. I know that there is a flag on ffmpeg called transpose (there is rotate too), but when i pass it on node_relay_session.js on 24 line at the argv array, it returns me a "[Relay end]" on console, and it does'nt stream. When I remove the transpose flag from argv array it backs to stream normaly. Here is my config to nms :

    &#xA;&#xA;

    import NodeMediaServer from &#x27;node-media-server&#x27;;&#xA;import removeBarOfRtmpUrl from &#x27;./utils/removeBarRtmpUrl&#x27;;&#xA;import path from &#x27;path&#x27;;&#xA;import { remote } from &#x27;electron&#x27;;&#xA;&#xA;export default function(data) {&#xA;&#xA;const streams = data.map(stream => ({&#xA;endpoint: removeBarOfRtmpUrl(stream.endpoint),&#xA;key: stream.key,&#xA;}))&#xA;&#xA;const config = {&#xA;rtmp: {&#xA;port: 1935,&#xA;chunk_size: 60000,&#xA;gop_cache: true,&#xA;ping: 30,&#xA;ping_timeout: 60&#xA;},&#xA;http: {&#xA;port: 8000,&#xA;allow_origin: &#x27;*&#x27;&#xA;},&#xA;relay: {&#xA;// C:\Users\Usuario\Desktop\multistream\node_modules.bin\ffmpeg.exe&#xA;ffmpeg: path.join(remote.app.getPath(&#x27;appData&#x27;), &#x27;..&#x27;, &#x27;Local&#x27;, &#x27;Programs&#x27;, &#x27;multistream&#x27;, &#x27;app&#x27;, &#x27;ffmpeg&#x27;, &#x27;bin&#x27;, &#x27;ffmpeg.exe&#x27;),&#xA;tasks: streams.map(stream => ({&#xA;app: &#x27;live&#x27;,&#xA;mode: &#x27;push&#x27;,&#xA;edge: ${stream.endpoint}/${stream.key},&#xA;&#xA;  }))&#xA;},&#xA;};&#xA;&#xA;const nms = new NodeMediaServer(config);&#xA;return nms;&#xA;}&#xA;&#xA;// {&#xA;// app: &#x27;live&#x27;,&#xA;// mode: &#x27;push&#x27;,&#xA;// edge: &#x27;rtmp://a.rtmp.youtube.com/live2/keyyoutube&#x27;,&#xA;// },```&#xA;

    &#xA;

  • Matching a specific media format with ffmpeg/avconv

    5 mai 2020, par Markus A.

    I need to encode a video from static images in such a way that it format-matches another one so I can splice the video streams together.

    &#xA;&#xA;

    Here is the mediainfo of the file I'm trying to match :

    &#xA;&#xA;

    Video&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : Baseline@L3.1&#xA;Format settings, CABAC                   : No&#xA;Format settings, ReFrames                : 1 frame&#xA;Codec ID                                 : 7&#xA;Duration                                 : 2mn 46s&#xA;Bit rate                                 : 1 614 Kbps&#xA;Width                                    : 1 280 pixels&#xA;Height                                   : 720 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Variable&#xA;Standard                                 : NTSC&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Stream size                              : 32.0 MiB (87%)&#xA;Color primaries                          : BT.601 PAL&#xA;Transfer characteristics                 : BT.601&#xA;Matrix coefficients                      : BT.601&#xA;

    &#xA;&#xA;

    So far, what I have been able to come up with is the following :

    &#xA;&#xA;

    avconv -f image2 -framerate 1.2 -i loop_%d.tif -c:v libx264 -preset veryslow -profile:v baseline -level:v 31 -b:v 1614K -refs 1 loop.flv&#xA;

    &#xA;&#xA;

    This gets me to :

    &#xA;&#xA;

    Video&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format profile                           : Baseline@L3.1&#xA;Format settings, CABAC                   : No&#xA;Format settings, ReFrames                : 1 frame&#xA;Codec ID                                 : 7&#xA;Duration                                 : 2s 917ms&#xA;Bit rate                                 : 1 614 Kbps&#xA;Width                                    : 1 280 pixels&#xA;Height                                   : 720 pixels&#xA;Display aspect ratio                     : 16:9&#xA;Frame rate mode                          : Constant&#xA;Frame rate                               : 1.200 fps&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 1.459&#xA;Stream size                              : 575 KiB&#xA;Writing library                          : x264 core 142 r2431 a5831aa&#xA;Encoding settings                        : cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=abr / mbtree=1 / bitrate=1614 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00&#xA;

    &#xA;&#xA;

    Which, unfortunately, still isn't good enough as VLC Media Player crashes hard (just closes), logging main error: Failed to compensate for the format changes, removing all filters; main error: Failed to create video converter as soon as the stream splice occurs. I tried splicing another stream in that does have the exact same encoding, and it works fine. I'm also making sure to only splice on key-frames and I am including the NALU containing the AVCDecoderConfigRecord, so I'm pretty sure I'm not doing anything else wrong, especially since a couple other programs are fine with the splice. It's just VLC that expects an even closer match.

    &#xA;&#xA;

    Here are things I've tried :

    &#xA;&#xA;

      &#xA;
    • Adding -vsync 2 to get variable frame rate mode. Doesn't change anything.
    • &#xA;

    • Adding -color_primaries bt470bg -color_trc gamma28 -colorspace bt470bg to try to get BT.601 PAL settings (several websites mentioned this). Doesn't change anything.
    • &#xA;

    • Adding -s ntsc to set the standard to NTSC. This also changes the resolution to 720x480 (not OK), and specifying -s 1280x720 in addition gets rid of the NTSC tag again.
    • &#xA;

    &#xA;&#xA;

    If anyone knows what flags I need to supply to get closer, that would be super-helpful ! The stream I'm trying to match is encoded on an Android device (it's a live-stream), so I'm assuming it is built using the standard Android MediaCoder framework, in case that helps.

    &#xA;