Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (94)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (7274)

  • How to convert video file to audio file by using FFMPEG ?

    15 janvier 2020, par Aamir Naseer

    I’m making video to audio converter app but need help to convert video to audio using ffmpeg. I checked many answers and websites but their answers are not easy to understand and I’m confused with command that is used to convert. What is the proper command to convert video to audio and is I’m executing the command in right way ?

    public class VideoConvertActivity extends AppCompatActivity {

       private VideoView videoView;
       private Button convertButton;
       private String filePath;
       private FFmpeg ffmpeg;


       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_video_convert);

           videoView = findViewById(R.id.videoviewID);
           convertButton = findViewById(R.id.convertbuttonID);

           ffmpeg = FFmpeg.getInstance(VideoConvertActivity.this);

    // in variable video i'm getting the path of video path from previous activity through intent and that video will have to convert to audio file
           Intent extras = getIntent();
           final String video = extras.getStringExtra("video");

           videoView.setVideoPath(video);
           videoView.start();

           convertButton.setOnClickListener(new View.OnClickListener() {
               @Override
               public void onClick(View v) {

                   try {

                       File moviesDir = Environment.getExternalStoragePublicDirectory(
                               Environment.DIRECTORY_MUSIC
                       );

                       String filePrefix = "convert_audio";
                       String fileExtn = ".mp3";
                       File dest = new File(moviesDir, filePrefix + fileExtn);

                       int fileNo = 0;
                       while (dest.exists()) {
                           fileNo++;
                           dest = new File(moviesDir, filePrefix + fileNo + fileExtn);
                       }
                       filePath = dest.getAbsolutePath();

                       // to execute "ffmpeg -version" command you just need to pass "-version"
                       String[] command = {"-y", "-i", video, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "256k", "-f", "mp3", filePath};
                       ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {

                           @Override
                           public void onStart() {
                               Toast.makeText(VideoConvertActivity.this,"Started",Toast.LENGTH_LONG).show();
                           }

                           @Override
                           public void onProgress(String message) {
                               Toast.makeText(VideoConvertActivity.this,"Progress",Toast.LENGTH_LONG).show();
                           }

                           @Override
                           public void onFailure(String message) {
                               Toast.makeText(VideoConvertActivity.this,"Failed",Toast.LENGTH_LONG).show();
                           }

                           @Override
                           public void onSuccess(String message) {
                               Toast.makeText(VideoConvertActivity.this,"Succeed",Toast.LENGTH_LONG).show();
                           }

                           @Override
                           public void onFinish() {
                               Toast.makeText(VideoConvertActivity.this,"Finished",Toast.LENGTH_LONG).show();
                           }
                       });
                   } catch (FFmpegCommandAlreadyRunningException e) {
                       // Handle if FFmpeg is already running
                   }

                    Toast.makeText(VideoConvertActivity.this,"Converted Successfully",Toast.LENGTH_SHORT).show();

               }
           });

       }

    }
  • How can i combine a 1 video file (flv) with image file using ffmpeg ?

    6 mars 2016, par user6964

    I have the following question. I need to combine 1 video (.Flv) to an image (png or jpg) generating a new video (.Flv) and then combine it with another video (.Flv). The flow should be as follows :

    First, combine a video image where the video should play normally until the last second and then the image should appear.

    Second, combining the resulting video with another video.

    I tried to do the first step with the following command :

    ffmpeg-i-loop_input movie_1.flv picture.png-i-acodec copy-shortest movie_output.flv

    But the result is that the image is displayed over video.

    Then try connecting 2 flv videos with the following command :

    ffmpeg-i-i movie_2.flv output_final.flv movie_output.flv

    But only shows 1 video in "output_final.flv".

    Can you tell me I’m doing wrong in my command ?

    Thank you.

  • Playback drops frames or stutter on good hardware [closed]

    30 décembre 2023, par Lemonek

    I'm planning to use TDARR and tring to prevent any issues before with (re)encoding. And I have stumbled on issue with one TV Show - recently I have downloaded refreshed old show but playback stutters on TV or drops frames (few frames every few secs - so video plays nicely but suddenly few frames are dropeed and then for next few secs it playsnicely - no issues with sound)

    


    I guess this particular video has some options which causes issues or I dont know but here are some facts I have gathered (ffprobe -v quiet -print_format json -show_format -show_streams) :

    


      

    1. The TV is capable of playing FullHD HECV 10bit smoothly https://pastebin.com/0efSGjk9
    2. 


    3. Original video stutters https://pastebin.com/vvLn8y4a
    4. 


    5. Converted video (QSV) stutters (linux/ffmpeg https://pastebin.com/XbazLEft
Below cutout part of script parameters for converting - $FPS is supplied as without it ffmpeg does not create I Frames but that is not a problem here)
    6. 


    


            -hide_banner -y -init_hw_device qsv:hw \
        -hwaccel qsv -hwaccel_output_format qsv \
        -i "$FILENAME_BACK" \
        -map 0:v:0 -map 0:a:0 \
        -c:v hevc_qsv -preset slow -global_quality 22 -g $FPS\
        -c:a copy \
        -movflags faststart "$FILENAME_OUTPUT"


    


      

    1. Converted video (NVENC) plays nicely (win/handbrake) https://pastebin.com/HbBNMZvT
    2. 


    


    In the end I wish I could create "safe" parameters list which I will supply to TDARR and not to worry about issues while converting videos.

    


    Forgot to mention - Hardware on which Im planning to mass encode has Intel proc with QSV capabilities - I'm not planning to encode on NV.

    


    If needed - I can provide any other information.