Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (43)

  • 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

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (4872)

  • ffmpeg 'error parsing the packet header' when concatenating mp3 files

    27 décembre 2020, par Dtomper

    I downloaded many songs from youtube and mixed them using this command : ffmpeg -f concat -safe 0 -i mylist.txt -map 0:a mixed.mp3 where mylist.txt is a list of all the downloaded files.
During the exportation I kept getting the following error :

    


    [opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input
[opus @ 0000022f1bea3700] Error parsing the packet header.
Error while decoding stream #0:0: Invalid data found when processing input


    


    After the mix was exported, I heard it and there was a weird sound playing when it was the turn of this song : https://www.youtube.com/watch?v=iY0RwKIG_BQ

    


    At first, I used youtube-dl to download the song from python. After that, I used https://ytmp3.cc/ but none of them worked. I keep getting this error and that weird sound in the mix file.

    


  • checkasm/vf_eq : add test for vf_eq

    18 septembre 2019, par Ting Fu
    checkasm/vf_eq : add test for vf_eq
    

    Signed-off-by : Ting Fu <ting.fu@intel.com>
    Signed-off-by : Ruiling Song <ruiling.song@intel.com>

    • [DH] libavfilter/vf_eq.c
    • [DH] libavfilter/vf_eq.h
    • [DH] tests/checkasm/Makefile
    • [DH] tests/checkasm/checkasm.c
    • [DH] tests/checkasm/checkasm.h
    • [DH] tests/checkasm/vf_eq.c
    • [DH] tests/fate/checkasm.mak
  • expected str, bytes or os.PathLike object, not NoneType for subprocess of ffmpeg

    15 janvier 2024, par ejmin ejoni

    I dont know much about ffmpeg, subprocess and its functions, im trying to take a screenshot form a video and save it at my other field of my model.&#xA;this is my model :

    &#xA;

    class SubSong(models.Model):&#xA;song = models.ForeignKey(SongPage, on_delete=models.CASCADE, related_name=&#x27;related_song&#x27;)&#xA;create = jmodels.jDateField(auto_now_add=True)&#xA;user = models.ForeignKey(User, on_delete=models.CASCADE, related_name=&#x27;related_user&#x27;)&#xA;video = models.FileField(upload_to=&#x27;sub_video/&#x27;,)&#xA;like = models.ManyToManyField(User, blank=True, )&#xA;total_like = models.PositiveIntegerField(default=0)&#xA;is_allowed = models.BooleanField(default=False)&#xA;image_sub = ThumbImage(upload_to=&#x27;sub_songs/&#x27;, default=&#x27;1.jpg&#x27;)&#xA;&#xA;def __str__(self):&#xA;    return self.song.title&#xA;

    &#xA;

    and views.py

    &#xA;

        if request.method == &#x27;POST&#x27;:&#xA;    authen(request)&#xA;    form = MyTryForm(request.POST, request.FILES)&#xA;    if form.is_valid():&#xA;        data = form.cleaned_data&#xA;        x = SubSong.objects.create(song_id=id,&#xA;                                   user_id=request.user.id,&#xA;                                   video=data[&#x27;video&#x27;], )&#xA;        path = x.video.name&#xA;        out = path.replace(&#x27;sub_video/&#x27;, &#x27;&#x27;).replace(&#x27;mp4&#x27;, &#x27;jpg&#x27;)&#xA;        z=subprocess.check_output(&#xA;            ffmpeg.input(&#x27;media/&#x27; &#x2B; path, ss=&#x27;00:00:50&#x27;).filter(&#xA;                &#x27;thumbnail&#x27;).output(&#x27;media/sub_songs/&#x27; &#x2B; out, vframes=1).run(), text=True)&#xA;        x.image_sub=z&#xA;        x.save()&#xA;        messages.success(request, &#x27;ویدیوی شما با موفقیت ارسال شد ، پس از بررسی منتشر خواهد شد&#x27;)&#xA;        return redirect(request.META.get(&#x27;HTTP_REFERER&#x27;))&#xA;&#xA;    else:&#xA;        messages.error(request, &#x27;ویدیوی شما بارگداری نشد&#x27;)&#xA;        return redirect(request.META.get(&#x27;HTTP_REFERER&#x27;))&#xA;

    &#xA;

    it can save the video and also default picture 1.jpg at image_sub. also it can save scrrenshot at the media/sub_song/.but my problem is that it gives me error :&#xA;expected str, bytes or os.PathLike object, not NoneType&#xA;how i should return the screen from subprocess to save it as my image_sub field ? and why do this error raise ? i dont want to see this error again

    &#xA;