Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (46)

  • À propos des documents

    21 juin 2013, par

    Que faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
    Document bloqué en file d’attente ?
    Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

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

Sur d’autres sites (10952)

  • Can't convert audio files to mp3 using ffmpeg in laravel on linux server

    29 décembre 2020, par Tieria

    I installed FFmpeg, php-ffmpeg, laravel-ffmpeg. Then I tried to convert Video and Audio files to mp3 on laravel.

    



    Then it worked properly on Windows10 XAMPP.
However, when I installed the same on my linux shared server,

    



    get error : Class 'FFMpeg\Format\Audio\mp3' not found and

    



    A composer dependency is missing You might be missing a composer dependency. A possible package that was found is php-ffmpeg/extras.


    



    So, I did composer require php-ffmpeg/extras and installed, however, still it produces same error.
So What would it be problem ?

    



    VoiceRecController.php

    



    namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Post;
use App\User;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Auth;
use Illuminate\support\Facades\DB;
use FFMpeg;

class VoiceRecController extends Controller
{

    public function update(Request $request, $id)
    {
        $form = Post::findOrFail($id);

        if($request->capture->extension() == 'mp4'){

            $request->capture->storeAs('public/voice/', $form->id .'.mp4');

            // Open your video file
            $video =FFMpeg::fromDisk('public')->open('/voice/'. $form->id .'.mp4');

            // Set an audio format
            $audio_format = new FFMpeg\Format\Audio\mp3();

            // Extract the audio into a new file as mp3
            $video->save($audio_format, public_path().'/storage/voice/'. $form->id .'.mp3');

            if (file_exists(public_path().'/storage/voice/'. $form->id .'.mp3')){
                \File::delete(public_path().'/storage/voice/'. $form->id .'.mp4');
            }

        }elseif($request->capture->extension() == 'mp3' || $request->capture->extension() == 'mpga'){

            $request->capture->storeAs('public/voice/', $form->id .'.mp3');

        }elseif($request->capture->extension() == 'wav'){

            $request->capture->storeAs('public/voice/', $form->id .'.wav');

            // Open your video file
            $video =FFMpeg::fromDisk('public')->open('/voice/'. $form->id .'.wav');

            // Set an audio format
            $audio_format = new FFMpeg\Format\Audio\mp3();

            // Extract the audio into a new file as mp3
            $video->save($audio_format, public_path().'/storage/voice/'. $form->id .'.mp3');

            if (file_exists(public_path().'/storage/voice/'. $form->id .'.mp3')){
                \File::delete(public_path().'/storage/voice/'. $form->id .'.wav');
            }
        }else{
        $request->capture->store('public/voice/');
        }


        return redirect('/home/mypage');
    }

}


    



    Thank you.

    


  • Transcode video using celery and ffmpeg in django

    28 octobre 2015, par Robin

    I would like to transcode user uploaded videos using celery. I think first I should upload the video, and spawn a celery task for transcoding.

    Maybe something like this in the tasks.py :

    subprocess.call('ffmpeg -i path/.../original path/.../output')

    Just completed First steps with celery, so confused how to do so in the views.py and tasks.py. Also is it a good solution ? I would really appreciate your help and advice. Thank you.

    models.py :

    class Video(models.Model):
       user = models.ForeignKey(User)
       title = models.CharField(max_length=100)
       original = models.FileField(upload_to=get_upload_file_name)
       mp4_480 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
       mp4_720 = models.FileField(upload_to=get_upload_file_name, blank=True, null=True)
       privacy = models.CharField(max_length=1,choices=PRIVACY, default='F')
       pub_date = models.DateTimeField(auto_now_add=True, auto_now=False)

    my incomplete views.py :

    @login_required
    def upload_video(request):
       if request.method == 'POST':
           form = VideoForm(request.POST, request.FILES)
           if form.is_valid():
               if form.cleaned_data:
                   user = request.user
                   #
                   #
                   # No IDEA WHAT TO DO NEXT
                   #
                   #
                   return HttpResponseRedirect('/')

       else:
           form = VideoForm()
           return render(request, 'upload_video.html', {
               'form':form
               })
  • Does interrupting ajax function stop it from being completed ?

    6 avril 2014, par Khaled Hasania

    What i'am trying to do is converting a video by using ffmpeg which take a long time to complete by sending ajax request to the server but without making the user wait until the video conversion done.

    if the user refresh the page after the request is sent dose that stop the function form completing ?
    is this a good way or i should make a queue for video converting ?