Recherche avancée

Médias (91)

Autres articles (75)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (10595)

  • convert .mts to flv using ffmpeg and file size will 300 mb and more [closed]

    20 juin 2013, par user1966466

    i have problem , when i have uploaded video and convert to flv for all formate .

    my code is not working when i have used .mts formate and size 300 MB and more

    if(move_uploaded_file($tmp, $path.$video_name_extension)){

       exec("/usr/local/bin/ffmpeg -i courses/$video_name_extension  -ar 44100  -ab 128k  -r 25  -vcodec flv -crf 15 -b 700000 courses/$video_name");          
       exec("/usr/local/bin/ffmpeg  -itsoffset -4  -i courses/$video_name_extension -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 courses/$video_image");


           $cmd = "/usr/local/bin/ffmpeg -i courses/$video_name 2>&1";
           if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {
              $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];            
           }
           exec($cmd);
           $time = convertToHHMMSS($total);
           //echo "updated 2";
       //  exit;
           mysql_query("INSERT INTO tbl_teacher_video (user_id,title,video,video_image,duration,arts_name,video_type,added_on) VALUES ('".$_SESSION['id']."','$txt','$video_name','$video_image','$time','".$_POST['courseradio']."','2','".date('Y-m-d')."')");
           unlink('courses/'.$video_name_extension);
  • Generating 64kbps audio-only mpegts for HTTP Live segmenter to meet 64kbps audio only requirement

    14 juin 2013, par Pobre

    I am trying to convert our mp4 files into mpeg-ts and segment it into .ts files for my iphone app to play. I am using Carson McDonalds's HTTP-Live-Video-Stream-Segmenter-and-Distributor to do that.

    I got his stuff complied and working correctly. I am currently trying to meet Apple's requirement where I need to provide a baseline 64 kbps audio only stream to my m3u8 playlist.
    Carson doesn't seem to have a profile for that.

    I need to be able to generate 64kbps audio-only stream from mp4, and turn that into mpeg-ts for the segmenter into ts. I am trying to find the right ffmpeg command that will validate without problem using Apple's mediastreamvalidator.

    So far I modified an existing encoding profile to try to achieve 64kbps total :

    ffmpeg -er 4 -i %s -f mpegts -acodec libmp3lame -ar 22050 -ab 32k -s 240x180 -vcodec libx264 -b 16k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 64k -maxrate 16k -bufsize 16k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 4:3 -r 10 -g 30 -async 2 - | %s %s %s %s %s

    but then when I try to validate it using mediastreamvalidator, it gives error after few ts :

    Playlist Validation : OK

    Segments :

    sample_cell_4x3_64k-00001.ts :

    WARNING : Media segment exceeds target duration of 10.00 seconds by 1.30 seconds (segment duration is 11.30 seconds)

    sample_cell_4x3_64k-00002.ts :

    WARNING : Media segment exceeds target duration of 10.00 seconds by 1.40 seconds (segment duration is 11.40 seconds)

    ....
    ....

    sample_cell_4x3_64k-00006.ts :

    ERROR : (-1) Unknown video codec : 1836069494 (program 0, track 0)
    ERROR : (-1) failed to parse segment as either an MPEG-2 TS or an ES

    sample_cell_4x3_64k-00007.ts :

    ERROR : (-1) Unknown video codec : 1836069494 (program 0, track 0)
    ERROR : (-1) failed to parse segment as either an MPEG-2 TS or an ES

    ....
    ....
    Average segment duration : 10.26 seconds
    Average segment bitrate : 376797.92 bps
    Average segment structural overhead : 349242.17 bps (92.69 %)

    Is there someway I can generate this correctly with just audio which totals 64kbps and turn it into mpeg-ts ready to be segmented and validated correctly ?

    Am I approaching the problem right ?

  • Crossfade between images in video using ffmpeg in android

    11 septembre 2015, par vishnus

    I have managed to create a video from a series of images using this ffmpeg library ffmpeg-android-java

    My command to generate the video is

    "-y -r 1/3 -i /path/img%d.jpg  +
     "-strict experimental -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -t 21 -crf 30 /path/out.mp4"

    In my case each image is shown for 3 seconds in the video and video is made of total 7 images.

    I want to achieve a crossfade effect when the images change in the video.

    If anyone has done this before then please point me in the right direction.