Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (5)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • ANNEXE : Les extensions, plugins SPIP des canaux

    11 février 2010, par

    Un plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
    Les extensions que MediaSPIP nécessite pour fonctionner
    Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
    Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...)

Sur d’autres sites (2523)

  • Could not write header for output file #0 (incorrect codec parameters ?) after using newer FFmpeg version

    8 septembre 2022, par Hyron

    I've created this small FFmpeg script which works fine on the Ubuntu FFmpeg version. But now I need to use it on a windows machine. On it im using the latest FFmpeg version i could find. Now my script is not working any more due to some updated arguments i guess. But i don't know how to solve it. I tried Multiple different ways with dealing with the 2 video streams i need but none worked.

    


    ffmpeg.exe -rtsp_transport tcp -an -i rtsp://192.168.2.150/axis-media/media.amp -flags +cgop -g 25 -sc_threshold 0 -map 0:v:0 -map 0:v:0 -c:v:0 h264 -filter:v:0 "scale=w=640:h=360:force_original_aspect_ratio=decrease" -b:v:0 365k -fps_mode auto -c:v:1 copy -fps_mode auto -var_stream_map "v:0 v:1" -master_pl_name "master.m3u8" -fflags flush_packets -an -copyts -f hls -strftime 1 -strftime_mkdir 1 -hls_time 6 -hls_playlist_type event -hls_flags second_level_segment_index -hls_segment_filename "stream_%v/%Y-%m-%d_%H:%M/data%%06d.ts"  "stream_%v.m3u8"


    


    other then the ffmpeg call at the beginning and the -fps_mode, nothing else changed.

    


    This is the error :

    


    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --


    


    The versions :
Ubuntu : 4.3.4
Windows 5.1.1

    


  • How to Add Spacing Between Bars in showfreqs Visualization in FFmpeg

    21 janvier, par Jad Alaouie

    I'm trying to create a video visualization using FFmpeg that shows an audio waveform with bars representing frequency data using the showfreqs filter. However, I would like to add some space between the bars in the bar chart-style visualization, but the showfreqs filter doesn't seem to provide a built-in option for controlling the spacing.

    


    filter_complex = (
        # Create bar chart style visualization with reduced overlap for spacing
        "[0:a]aformat=channel_layouts=mono," +
        "showfreqs=mode=bar:ascale=log:fscale=log:win_size=900:size=1920x300:" +  # Adjust win_size for overall effect
        "colors=white:win_func=blackman:overlap=0.05[vis];" +  # Reduce overlap
        # Insert space by scaling and resizing the visualization
        "[1][vis]overlay=(W-w)/2:(H-h)/2-150:format=auto[bg_with_wave];" +
        # Add play button
        "[2]scale={0}:{1}[play_button];" +
        # Combine everything, with added space between bars by manipulating output size
        "[bg_with_wave][play_button]overlay=(W-w)/2:(H-h)/2:format=auto[v];" +
        "[v]scale=1.2*iw:1.2*ih[v_rescaled]"  # Increase space by scaling video output
    ).format(play_button_width, play_button_height)


    


  • How to compress the video using of ffmpeg

    8 janvier 2016, par New Developer

    Hi I am trying to capture the video and compress the video using of ffmpeg and upload to server.

    I am trying like this :

    private void compress(String path,String storePath){
           System.out.println("path==> "+path);
           System.out.println("storePath==> "+storePath);
            final Clip clip_in = new Clip(path);

            Activity activity = (Activity) VideocameraActivity.this;
            File fileTmp = activity.getCacheDir();
            File fileAppRoot = new File(activity.getApplicationInfo().dataDir);

            final Clip clip_out = new Clip(storePath);
            //put flags in clip
            clip_out.videoFps = "30";
            clip_out.width = 480;
            clip_out.height = 320;
            clip_out.videoCodec = "libx264";
            clip_out.audioCodec = "copy";

            try {
                FfmpegController fc = new FfmpegController(this, fileAppRoot);
                fc.processVideo(clip_in, clip_out, false, new ShellUtils.ShellCallback() {

                    @Override
                    public void shellOut(String shellLine) {
                        System.out.println("MIX> " + shellLine);
                    }

                    @Override
                    public void processComplete(int exitValue) {

                        if (exitValue != 0) {
                            System.err.println("concat non-zero exit: " + exitValue);
                            Log.d("ffmpeg","Compilation error. FFmpeg failed");
                            Toast.makeText(VideocameraActivity.this, "result: ffmpeg failed", Toast.LENGTH_LONG).show();
                        } else {
                            if(new File( "/storage/emulated/0/Developer/result2.mp4").exists()) {
                                Log.d("ffmpeg","Success file:"+ "/storage/emulated/0/Developer/result2.mp4");
                            }
                        }
                    }
                });
            } catch (FileNotFoundException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

       }

    I downloaded the lib from this site.

    Now I am getting this error :-

    Exit Value :- 11

    /data/data/com.androidexample.camera/app_bin/ffmpeg -y -i /file:/mnt/sdcard/Pictures/MyCameraVideo/VID_20160108_220044.mp4 -s 480x320 -r 30 -vcodec libx264 -acodec copy /file:/mnt/sdcard/Pictures/VideoCompress/VID_20160108_220045.mp4

    Path print like this :-

    path==>  file:///mnt/sdcard/Pictures/MyCameraVideo/VID_20160108_222223.mp4

    storePath==> file:///mnt/sdcard/Pictures/VideoCompress/VID_20160108_222224.mp4

    Please help me to compress the video.