Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (58)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (7212)

  • How to detect anamorphic video with FFProbe ?

    29 mai 2015, par FlavorScape

    This is the output I get using FFProbe for a video I’m certain is anamorphic. I’ve converted it as a test with ffmpeg and the results are consistent with the video having a different PAR and DAR (video is squished). I ran some command line params to fix anamorphic video and it worked. Possibly my diagnosis is incorrect, the PAR and DAR are just plain wrong ?

    The code I used to "correct" the anamamorphic is

    --custom-anamorphic --display-width 1280 --keep-display-aspect --modulus 8 --crop 0:0:0:0

    Is there an additional command with FFProbe to detect for anamorphic ? So far I’m just seeing if the sample_aspect_ratio and display_aspect_ratio are the same or not.

    Additionally, a ratio of 0:1 seems incorrect. My video is not infinitely wide. Is there a bug with FFProbe output ?

    This is the command

    -print_format json -show_format -show_streams {originalFilePath}

    FFProbe version N-54233-g86190af built on Jun 27 2013 outputs the following :

    "Output{
       \"streams\": [
           {
               \"index\": 0,
               \"codec_name\": \"h264\",
               \"codec_long_name\": \"H.264/AVC/MPEG-4AVC/MPEG-4part10\",
               \"profile\": \"Main\",
               \"codec_type\": \"video\",
               \"codec_time_base\": \"1/5994\",
               \"codec_tag_string\": \"avc1\",
               \"codec_tag\": \"0x31637661\",
               \"width\": 1280,
               \"height\": 720,
               \"has_b_frames\": 0,
               \"sample_aspect_ratio\": \"0: 1\",
               \"display_aspect_ratio\": \"0: 1\",
               \"pix_fmt\": \"yuv420p\",
               \"level\": 31,
               \"r_frame_rate\": \"2997/100\",
               \"avg_frame_rate\": \"2997/100\",
               \"time_base\": \"1/2997\",
               \"start_pts\": 0,
               \"start_time\": \"0.000000\",
               \"duration_ts\": 204100,
               \"duration\": \"68.101435\",
               \"bit_rate\": \"3894381\",
               \"nb_frames\": \"2041\",
               \"disposition\": {
                   \"default\": 0,
                   \"dub\": 0,
                   \"original\": 0,
                   \"comment\": 0,
                   \"lyrics\": 0,
                   \"karaoke\": 0,
                   \"forced\": 0,
                   \"hearing_impaired\": 0,
                   \"visual_impaired\": 0,
                   \"clean_effects\": 0,
                   \"attached_pic\": 0
               },
               \"tags\": {
                   \"creation_time\": \"2013-05-0318: 33: 37\",
                   \"language\": \"eng\",
                   \"handler_name\": \"AppleAliasDataHandler\"
               }
           },
           {
               \"index\": 1,
               \"codec_name\": \"aac\",
               \"codec_long_name\": \"AAC(AdvancedAudioCoding)\",
               \"codec_type\": \"audio\",
               \"codec_time_base\": \"1/44100\",
               \"codec_tag_string\": \"mp4a\",
               \"codec_tag\": \"0x6134706d\",
               \"sample_fmt\": \"fltp\",
               \"sample_rate\": \"44100\",
               \"channels\": 2,
               \"bits_per_sample\": 0,
               \"r_frame_rate\": \"0/0\",
               \"avg_frame_rate\": \"0/0\",
               \"time_base\": \"1/44100\",
               \"start_pts\": 0,
               \"start_time\": \"0.000000\",
               \"duration_ts\": 3003392,
               \"duration\": \"68.104127\",
               \"bit_rate\": \"125304\",
               \"nb_frames\": \"2933\",
               \"disposition\": {
                   \"default\": 0,
                   \"dub\": 0,
                   \"original\": 0,
                   \"comment\": 0,
                   \"lyrics\": 0,
                   \"karaoke\": 0,
                   \"forced\": 0,
                   \"hearing_impaired\": 0,
                   \"visual_impaired\": 0,
                   \"clean_effects\": 0,
                   \"attached_pic\": 0
               },
               \"tags\": {
                   \"creation_time\": \"2013-05-0318: 33: 37\",
                   \"language\": \"eng\",
                   \"handler_name\": \"AppleAliasDataHandler\"
               }
           }
       ],
       \"format\": {
           \"filename\": \"\\\\\\\\dell690\\\\vsf\\\\_asset_intake\\\\v2\\\\ed69c939-4fe1-40dd-a045-db72ed2e0009\\\\original\\\\USTC_Overview2.mov\",
           \"nb_streams\": 2,
           \"format_name\": \"mov,
           mp4,
           m4a,
           3gp,
           3g2,
           mj2\",
           \"format_long_name\": \"QuickTime/MOV\",
           \"start_time\": \"0.000000\",
           \"duration\": \"68.100000\",
           \"size\": \"34267583\",
           \"bit_rate\": \"4025560\",
           \"tags\": {
               \"major_brand\": \"qt\",
               \"minor_version\": \"537199360\",
               \"compatible_brands\": \"qt\",
               \"creation_time\": \"2013-05-0318: 33: 37\"
           }
       }
    }"
  • Eliminate old, neglected DocBook XML version of Vorbis spec doc. It's

    26 février 2015, par Monty
    Eliminate old, neglected DocBook XML version of Vorbis spec doc.  It's
    not been consistently maintained n a number of years and does not
    contain all additions/corrections made to the TeX.
    

    git-svn-id : http://svn.xiph.org/trunk/vorbis@19446 0101bb08-14d6-0310-b084-bc0e0c8e3800

    • [DH] doc/Makefile.am
    • [DH] doc/Vorbis_I_spec.html
    • [DH] doc/Vorbis_I_spec.pdf
    • [DH] doc/Vorbis_I_spec0x.png
    • [DH] doc/Vorbis_I_spec10x.png
    • [DH] doc/Vorbis_I_spec11x.png
    • [DH] doc/Vorbis_I_spec12x.png
    • [DH] doc/Vorbis_I_spec1x.png
    • [DH] doc/Vorbis_I_spec2x.png
    • [DH] doc/Vorbis_I_spec3x.png
    • [DH] doc/Vorbis_I_spec4x.png
    • [DH] doc/Vorbis_I_spec5x.png
    • [DH] doc/Vorbis_I_spec6x.png
    • [DH] doc/Vorbis_I_spec7x.png
    • [DH] doc/Vorbis_I_spec8x.png
    • [DH] doc/Vorbis_I_spec9x.png
    • [DH] doc/xifish.pdf
    • [DH] doc/xml/01-introduction.xml
    • [DH] doc/xml/02-bitpacking.xml
    • [DH] doc/xml/03-codebook.xml
    • [DH] doc/xml/04-codec.xml
    • [DH] doc/xml/05-comment.xml
    • [DH] doc/xml/06-floor0.xml
    • [DH] doc/xml/07-floor1.xml
    • [DH] doc/xml/08-residue.xml
    • [DH] doc/xml/09-helper.xml
    • [DH] doc/xml/10-tables.xml
    • [DH] doc/xml/TODO
    • [DH] doc/xml/Vorbis_I_spec.xml
    • [DH] doc/xml/a1-encapsulation_ogg.xml
    • [DH] doc/xml/a2-encapsulation_rtp.xml
    • [DH] doc/xml/footer.xml
    • [DH] doc/xml/spec-common.xsl
    • [DH] doc/xml/spec-fo.xsl
    • [DH] doc/xml/spec-html.xsl
  • FFMPEG : Merge Image and Audio Convert into Video in android using FFMPEG library

    30 janvier 2014, par Nitish Singla

    i want to convert images into video in android using FFMPEG,still now i compiled the library successfully,and also get Libffmpeg.so.
    Using Platform : UBUNTU,Eclipse
    My problem is- when i use this library command too convert video into images through Java code i mean through my Activity i got Error-
    JAVA.IO.EXCEPTION.Enable to execute .Exec() command
    But if i exceute this command through CMD then my video file is created successfully.
    i want to know whats the problem behind it,i am searching from 2 days on it,but could not get the solution,i thing its problem of Execute Permission In android.Plzzz help me,,,or tell me is it possible to in android to make a video file using FFMPEG.

    Code :

    public class Mpeg extends Activity {

    String cmd;

    static {

       System.loadLibrary("ffmpeg");

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_mpeg);
       File mf = Environment.getExternalStorageDirectory();




       String install="$adb push ./asl-native /sdcard/asl-native";

       String ins="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";

       String start="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";
       String str="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";

       try{
           Process p = Runtime.getRuntime().exec(install);

           p = Runtime.getRuntime().exec(ins);

           p = Runtime.getRuntime().exec(start);

           p = Runtime.getRuntime().exec(str);


           Log.e("filee name", "goodddddd"+ install);
           Log.e("full command", "goodddddd"+ ins);

           }
           catch (Exception e) {
               Log.e("image", "exception");
           }



       String livestream = mf.getAbsoluteFile()+"/smile.png";
       Log.e("image", "imageeeeeeeee " + livestream);

       String folderpth = mf.getAbsoluteFile()+"/RABBA.MP3";




       Log.e("Test", "songggggggggg " + folderpth);


       String output=mf.getAbsoluteFile()+"/plztest.mp4";;

       //String output = new File(Environment.getExternalStorageDirectory(), "plzz.mp4").getAbsolutePath();
       Log.e("Test", "outputttttt " + output);

       cmd= "ffmpeg -i "+ livestream +" -i "+ folderpth +" -acodec copy "+ output;

        Log.e("chck plzzzzz", "after "+ cmd);

       //String jaiho="ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4";

       // Boolean heloo=isDeviceRooted_BySu();

        //Log.e("check file", "after "+ heloo);


       Button   run=(Button)findViewById(R.id.btn);


           run.setOnClickListener(new View.OnClickListener() {
                public void onClick(View v) {
                    // Perform action on click

                    try {
                        Execute();
                       } catch (IOException e) {
                           // TODO Auto-generated catch block
                           e.printStackTrace();
                       } catch (InterruptedException e) {
                           // TODO Auto-generated catch block
                           e.printStackTrace();
                       }
                }
            });


       /*

        try{

       Process p = Runtime.getRuntime().exec(cmd);
       Log.e("check file", "main fileeee ");

       }
       catch (IOException e) {
           throw new RuntimeException(e);

       }
       */

    }


    public void Execute() throws IOException, InterruptedException{


          Process process=Runtime.getRuntime().exec(cmd);
           // process = pb.command(com).redirectErrorStream(true).start();


       }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
       // Inflate the menu; this adds items to the action bar if it is present.
       getMenuInflater().inflate(R.menu.mpeg, menu);
       return true;
    }


    public static boolean isDeviceRooted_BySu() {
       try {
           Log.d("BySu", "BySu");
           Process p = Runtime.getRuntime().exec("su");
           return true;
       } catch (IOException e) {
           e.printStackTrace();
       }
       return false;
    }

    }

    Logcat output :

    06-05 17:58:10.686: D/dalvikvm(1189): Trying to load lib /data/data/com.example.myfmpeg /lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.756: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:10.955: D/dalvikvm(1189): Added shared lib /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.955: D/dalvikvm(1189): No JNI_OnLoad found in /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0, skipping init
    06-05 17:58:11.024: I/dalvikvm(1189): Wrote stack traces to '/data/anr/traces.txt'
    06-05 17:58:11.215: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:11.326: I/dalvikvm(1189): Wrote stack traces to '/data/anr/traces.txt'
    06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
    06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
    06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
    06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4
    06-05 17:58:11.896: E/AndroidRuntime(1189): FATAL EXCEPTION: main
    06-05 17:58:11.896: E/AndroidRuntime(1189): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfmpeg/com.example.myfmpeg.Mpeg}: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.os.Handler.dispatchMessage(Handler.java:99)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.os.Looper.loop(Looper.java:137)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.main(ActivityThread.java:4424)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at java.lang.reflect.Method.invokeNative(Native Method)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at java.lang.reflect.Method.invoke(Method.java:511)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at dalvik.system.NativeStart.main(Native Method)
    06-05 17:58:11.896: E/AndroidRuntime(1189): Caused by: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null