Recherche avancée

Médias (0)

Mot : - Tags -/configuration

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (22)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (6247)

  • Cannot run program "/data/user/0/com.athkar.musliem/files/ffmpeg" : error=2, No such file or directory

    3 avril 2021, par gejivi2011

    I am trying to make a video with an audio and single image, but have the error that on the title, I am using android studio with FFmpeg :
I need to make that video with just one image and one mp3 file

    


    The error was :

    


    Exception while trying to run: [Ljava.lang.String;@b6e12b4
java.io.IOException: Cannot run program "/data/user/0/com.athkar.musliem/files/ffmpeg": 
error=2, No such file or directory

Caused by: java.io.IOException: error=2, No such file or directory


    


    1- this code to get the save directory

    


        String root = Environment.getExternalStorageDirectory().toString();
    myDir = new File(root);


    


    2- The image uri :

    


     imageUri = Uri.parse("android.resource://com.athkar.musliem/drawable/" + R.drawable.test_image);


    


    3- to select mp3 file :

    


        public void openMp3Selector() {
    Intent intent;
    intent = new Intent();
    intent.setAction(Intent.ACTION_GET_CONTENT);
    intent.setType("audio/*");
    startActivityForResult(Intent.createChooser(intent, "Select mp3"), REQ_CODE_PICK_SOUNDFILE);
}

 @Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == REQ_CODE_PICK_SOUNDFILE && resultCode == Activity.RESULT_OK) {
        if ((data != null) && (data.getData() != null)) {
            audioFileUri = data.getData();
        }
    }
}


    


    4- finally FFmpeg code :

    


      fFmpeg = FFmpeg.getInstance(VideoMakerActivity.this);
            String[] strArr = new String[]{"-y", "-r", imageUri.getPath(), "-i", imageUri.getPath(), "-vcodec", "libx264", "-r", "2", "-pix_fmt", "yuv420p", "-preset", "ultrafast", audioFileUri.getPath()};
            try {
                fFmpeg.execute(strArr, new ExecuteBinaryResponseHandler() {
                    @Override
                    public void onSuccess(String message) {
                        super.onSuccess(message);
                        Log.e("MAS", "onSuccess");
                    }

                    @Override
                    public void onProgress(String message) {
                        super.onProgress(message);
                        Log.e("MAS", "onProgress");

                    }

                    @Override
                    public void onFailure(String message) {
                        super.onFailure(message);
                        Log.e("MAS", "onFailure");

                    }

                    @Override
                    public void onStart() {
                        super.onStart();
                        Log.e("MAS", "onStart");

                    }

                    @Override
                    public void onFinish() {
                        super.onFinish();
                        Log.e("MAS", "onFinish");

                    }
                });
            } catch (FFmpegCommandAlreadyRunningException e) {
                e.printStackTrace();
            }


    


  • Getting the "Invalid data found when processing input" error when I try to convert a raw pcm file to mp3 ?

    10 août 2023, par Jiron

    I tried to convert a file from pcm into mp3 with ffmpeg and the npm package fluent-ffmpeg. This is my code :

    


    const ffmpeg = require('fluent-ffmpeg');

function convert(input, output, callback) {
    ffmpeg(input)
        .output(output)
        .on('end', function() {                    
            console.log('conversion ended');
            callback(null);
        }).on('error', function(err){
           console.log('error: ' + err);
           callback(err);
        }).run();
   }

   convert('./test.pcm', './converted.mp3', function(err){
   if(!err) {
      console.log('conversion complete');
   }
});


    


    But every time I execute the script, I get this error :

    


    error: Error: ffmpeg exited with code 1: ./test.pcm: Invalid data found when processing input


    


    When I tired running :

    


    ffmpeg -f s16le -ar 48k -ac 2 -i test.pcm converted.mp3


    


    Everything worked though. Is there something wrong with the npm package ? Is there something I missed out or something I did wrong on my code ?

    


    Edit :

    


    My code works when I try to convert an mp3 to a wav file (for example). So it's only struggling with pcm files.

    


  • ffmepg Video Encoding got a error with "invalid plane data size"

    28 octobre 2020, par Mrguo

    ffmpeg version:4.0.3 ; video size : 611G ; Duration:01:34:03

    


      

    • encoding command is :
    • 


    


    ffmpeg -i 2131.MOV -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -b:v 600k -vf scale=640 :-1 small.mp4

    


      

    • video info :
    • 


    


    ffprobe version 4.0.3 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --enable-shared --enable-libx264 --enable-gpl
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xca7ac0] overread end of atom '�mak' by 2 bytes
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xca7ac0] overread end of atom '�swr' by 3 bytes
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '04487162221cb76b0a4465037f4a3d7d.MOV':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2024-04-16T19:59:27.000000Z
    make            : Atomos
    make-eng        : Atomos
    encoder         : ShogunSumo - 9.11Cn 
    encoder-eng     : ShogunSumo - 9.11Cn 
    com.atomos.hdr.gamut: Rec709
    com.atomos.hdr.gamma: Rec709
    com.apple.proapps.image.{TIFF}.Make: Atomos
    com.apple.proapps.image.{TIFF}.Model: ShogunSumo
    com.apple.proapps.image.{TIFF}.Software: 9.11Cn
    timecode        : 00:00:00:00
  Duration: 01:34:03.86, start: 0.000000, bitrate: 929321 kb/s
    Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 4 channels, s32 (24 bit), 4608 kb/s (default)
    Metadata:
      creation_time   : 2024-04-16T19:59:27.000000Z
    Stream #0:1(eng): Video: prores (apcn / 0x6E637061), yuv422p10le(bt709, progressive), 3840x2160, 924704 kb/s, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 5k tbn, 5k tbc (default)
    Metadata:
      creation_time   : 2024-04-16T19:59:27.000000Z
      encoder         : Apple ProRes 422
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2024-04-16T19:59:27.000000Z
      timecode        : 00:00:00:00
Unsupported codec with id 0 for input stream 2


    


      

    • log with error :
    • 


    


    frame=166986 fps=9.8 q=24.0 size=  350976kB time=00:55:39.46 bitrate= 861.0kbits/s speed=0.196x    
frame=166991 fps=9.8 q=24.0 size=  350976kB time=00:55:39.56 bitrate= 861.0kbits/s speed=0.196x    
[prores @ 0x94f840] invalid plane data size
    Last message repeated 85 times
[prores @ 0x94f840] ac tex damaged 1024, 1024
[prores @ 0x94f840] invalid plane data size
    Last message repeated 1723 times
frame=166997 fps=9.8 q=24.0 size=  350976kB time=00:55:39.68 bitrate= 860.9kbits/s speed=0.196x    
[prores @ 0x94f840] invalid frame header
Error while decoding stream #0:1: Invalid data found when processing input


    


    how can I solve the problem ?