Recherche avancée

Médias (91)

Autres articles (80)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (4111)

  • Android mp4 Media File Won't play

    17 juillet 2014, par Liron

    I had the same problem as here which I thought was because the files (recorded on iOS) were encoded as .mov instead of .mp4.

    I then changed the encoding mechanism on my iOS app to encode them as mp4, and I’m still seeing the same problem.

    When I load the file with

    File videoFile = ...;
    videoView.setVideoPath(videoFile.getAbsolutePath());
    videoView.start();

    I get E/MediaPlayer(2069): error (1, -2147483648).

    When I load the file with the following (from the link above).

    Uri uri = Uri.parse(VideoProvider.CONTENT_URI_BASE + Uri.encode(videoFile.getAbsolutePath()));
    videoView.setVideoURL(url);
    videoView.start();

    I get this in logcat

    07-17 08:05:58.283: W/VideoView(2276): Unable to open content: content://com.companyname.VideoProvider.files.files/%2Fdata%2Fdata%2Fcom.companyname.myappname%2Fcache%2FiX0mXVPxih.mp4
    07-17 08:05:58.283: W/VideoView(2276): java.io.IOException: setDataSource failed.: status=0x80000000

    ffmpeg tells me the following about the media file :

    ffmpeg -i media.mp4
    ffmpeg version 2.2 Copyright (c) 2000-2014 the FFmpeg developers
    built on Mar 26 2014 15:29:01 with Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
    configuration: --prefix=/usr/local/Cellar/ffmpeg/2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libavresample   1.  2.  0 /  1.  2.  0
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'media.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       creation_time   : 2014-07-17 08:59:24
     Duration: 00:00:08.14, start: 0.000000, bitrate: 1084 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 360x480, 1027 kb/s, 24.46 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)
       Metadata:
         creation_time   : 2014-07-17 08:59:24
         handler_name    : Core Media Video
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 62 kb/s (default)
         Metadata:
           creation_time   : 2014-07-17 08:59:24
           handler_name    : Core Media Audio

    Any idea why this file might be failing to load ?

    EDIT : Seems that this is mostly an issue when running in the emulator, but on a device I seem to have succeeded it getting it to work if I use a SurfaceView and MediaPlayer instead of VideoView.

  • JavaFX media issue on Ubuntu : Could not create player

    16 juin 2023, 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;

  • ffplay : use different decoder names for each media type

    2 février 2019, par Marton Balint
    ffplay : use different decoder names for each media type
    

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] fftools/ffplay.c