Advanced search

Medias (1)

Tag: - Tags -/musée

Other articles (50)

  • Le plugin : Podcasts.

    14 July 2010, by

    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 video/mp4 (...)

  • Configurer la prise en compte des langues

    15 November 2010, by

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Publier sur MédiaSpip

    13 June 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

On other websites (10541)

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

    29 December 2020, by 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 October 2015, by 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 April 2014, by 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 ?