Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (72)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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 (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7337)

  • Different namefiles rather those provided using ffmpeg and bash

    13 mars 2020, par takeTo

    I have this code :

    input=""
    touch file.tmp
    echo "Drag and drop destination folder, and press enter:"

    read destination_folder
    folder="$destination_folder/"
    while [ "$input" !=  "e" ]
    do
     echo ""
     echo "Drag and drop file, and press enter (or press e and enter to end):"
     read input
     if [ "$input" != "e" ]
     then
       echo "$input"  | tee -a file.tmp >/dev/null
     fi
    done
    echo ""
    echo "Processing..."
    echo ""
    input="file.tmp"
    while IFS= read line
    do
     FILE="$line"
     basenames=$(basename "$FILE")
     echo "$basenames"
     folders="$folder$basenames"
     echo "$folders"
     ffmpeg -y -loglevel quiet -hwaccel vdpau -i "$line" -filter:a "crossfeed=strength=0.3:range=0.5","extrastereo=m=0.0:c=false","highpass=f=80:t=q:w=0.8","afftdn=nr=8.5:nt=c:bn=125|250|520|745|920","deesser=i=0.12","equalizer=f=110:t=q:w=1.12:g=2","equalizer=f=285:t=q:w=3:g=-3","equalizer=f=500:t=q:w=2.72:g=-4","equalizer=f=1030:t=q:w=1.95:g=2","highshelf=g=3:f=4250:t=q:w=0.6","loudnorm=i=-16:lra=14:tp=-0.8:dual_mono=true" -c:a aac -ab 320k -ar 48000 -c:v libx264 -x264-params b=10000:keyint_min=15:coder=ac:b-bias=2 -preset slow "$folders"
    done <"$input"
    echo "Done."

    Running the script on this directory/files structure :

    /done/1.mp4
    /done/2.mp4
    /done/3.mp4

    The output is :

    1.mp4
    3.mp4

    Why I’m getting as output only 1.mp4 and 3.mp4 ? And, why "2.mp4" basename is echoed as ".mp4" and not as "2.mp4" ?

    EDIT : Now all files are processed normally, but i’m getting processed also .mp4 files for each file processed.

  • ffmpeg - How to filter video when record Window Application in the same time

    16 mai 2018, par user3181176

    I have a problem when record Window Application and filter (overlay, audio mixing...) with others filter video.

    This code work perfectly :

    ffmpeg -rtbufsize 1500M -f dshow -i audio="virtual-audio-capturer" -f gdigrab -framerate 30 -draw_mouse 0 -i title="Main" -vf crop=850:480:156:100 -pix_fmt yuv420p -profile:v baseline -y ok.mp4   (With Main is my Application)

    But this code bellow doesn’t :

    ffmpeg  -rtbufsize 1500M -f dshow -y -i audio="virtual-audio-capturer" -f gdigrab -framerate 30 -draw_mouse 0 -i title="Main" -vf crop=850:480:156:100 -pix_fmt yuv420p -profile:v baseline -stream_loop 999 -i "filter/filter.mp4" -filter_complex "[2:v]scale=385:216, setdar=dar=16/9[v1]; [2:v]scale=385:216, setdar=dar=16/9[v2]; [v1][v2]blend=shortest=1:all_opacity=1[v3]; movie=filter/nds_bg.mp4:loop=999,setpts=N/(FRAME_RATE*TB), scale=640:360[v4] ;[v4][v3]overlay=shortest=1:x=20:y=130;[2:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,asetrate=8.5/10*44100,atempo=10/8.5,lowpass=f=2500,highpass=f=400,volume
    =3,bass=g=-30,equalizer=f=10.5:width_type=o:width=1:g=-30, equalizer=f=31.5:width_type=o:width=1:g=-
    30,equalizer=f=63:width_type=o:width=1:g=-10, equalizer=f=125:width_type=o:width=1:g=-20,equalizer=f=250:width_type=o:width=1:g=-1.5,equalizer=f=500:width_type=o:width=1:g=-20,equalizer=f=1000:width_type=o:width=1:g=-20,equalizer=f=8000:width_type=o:width=3:g=1,equalizer=f=16000:width_type=o:width=3:g=1" -vcodec libx264 -pix_fmt yuv420p -r 26 -g 30 -b:30
    800k -shortest -acodec libmp3lame -b:a 128k -preset:v ultrafast -ar 44100 -f flv -bufsize 3000k -s 640x360 out.mp4

    I think this code need to output to video first

    ffmpeg -rtbufsize 1500M -f dshow -y -i audio="virtual-audio-capturer" -f gdigrab -framerate 30 -draw_mouse 0 -i title="Main" -vf crop=850:480:156:100 -pix_fmt yuv420p -profile:v baseline

    Please show me how to merge these code or any solution. Thank you so much !

  • Equalizers, bassboost and reverb effect not working (using FFmpegMediaPlayer)

    9 février 2018, par Arren

    I’m currently using FFmpegMediaPlayer from github and the effects are not working in the phone but works perfectly in the emulator which of both are the same API 22.

    The strange thing is that when I switch the code from FFmpegMediaplayer to standard android media player the effects start working again in the real phone device. But when I switch back to ffpmeg the effect only works in the emulator and not in the real device. My code is as below,

    public void setupVisualizerFxAndUI() {

       try {
           mVisualizer = new Visualizer(mMediaPlayer.getAudioSessionId());
           mEqualizer = new Equalizer(0, mMediaPlayer.getAudioSessionId());
           mEqualizer.setEnabled(true);

           try {
               bassBoost = new BassBoost(0, mMediaPlayer.getAudioSessionId());
               bassBoost.setEnabled(false);
               BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
               BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
               bassBoostSetting.strength = (1000 / 19);
               bassBoost.setProperties(bassBoostSetting);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

               presetReverb = new PresetReverb(0, mMediaPlayer.getAudioSessionId());
               presetReverb.setPreset(PresetReverb.PRESET_NONE);
               presetReverb.setEnabled(false);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);
           } catch (Exception e) {
               e.printStackTrace();
           }

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

       if (homeActivity.isEqualizerEnabled) {
           try {
               bassBoost.setEnabled(true);
               BassBoost.Settings bassBoostSettingTemp = bassBoost.getProperties();
               BassBoost.Settings bassBoostSetting = new BassBoost.Settings(bassBoostSettingTemp.toString());
               if (homeActivity.bassStrength == -1) {
                   bassBoostSetting.strength = (1000 / 19);
               } else {
                   bassBoostSetting.strength = homeActivity.bassStrength;
               }
               bassBoost.setProperties(bassBoostSetting);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);


               if (homeActivity.reverbPreset == -1) {
                   presetReverb.setPreset(PresetReverb.PRESET_NONE);
               } else {
                   presetReverb.setPreset(homeActivity.reverbPreset);
               }
               presetReverb.setEnabled(true);
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

           } catch (Exception e) {
               e.printStackTrace();
           }
       }
       if (homeActivity.isEqualizerEnabled && homeActivity.isEqualizerReloaded) {
           try {
               homeActivity.isEqualizerEnabled = true;
               int pos = homeActivity.presetPos;
               if (pos != 0) {
                   mEqualizer.usePreset((short) (pos - 1));
               } else {
                   for (short i = 0; i < 5; i++) {
                       mEqualizer.setBandLevel(i, (short) homeActivity.seekbarpos[i]);
                   }
               }
               if (homeActivity.bassStrength != -1 && homeActivity.reverbPreset != -1) {
                   bassBoost.setEnabled(true);
                   bassBoost.setStrength(homeActivity.bassStrength);
                   presetReverb.setEnabled(true);
                   presetReverb.setPreset(homeActivity.reverbPreset);
               }
               mMediaPlayer.setAuxEffectSendLevel(1.0f);

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

    where mMediaPlayer is ffmpeg...Other than that the library is working fine in regards to streaming. The only problem is that it doesn’t get any effect put in. I thought this might be a coding problem so I just switched ffmpeg with Android standard media player like I mentioned above and it works. FFmpeg - bass boost and equalizer only works in the emulator and not in real phone device.

    Another strange thing was that the effect initially worked at first in debug run mode and stopped working after I signed the apk. From which point on it stopped working both in the debug as well as any other run modes i.e - release also....I’m not using any pro guard rules also.

    Points to note :
    1. Replacing FFmpegmediaplayer with Standard Media player the effects works.
    2. Effects worked before signing the apk then stopped working in all run modes
    3. Using the same code above for FFMpegmediaplayer effects only work in the
    Emulator and not in real device.
    4. Other than the effects problem, FFmpegmediaplayer is functional regarding
    streaming and local playback - in real phone device as well as emulator.