
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (69)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)
Sur d’autres sites (10201)
-
avformat/tls : fix {} error for the GNUTLS case
27 septembre 2013, par Michael Niedermayer -
expected str, bytes or os.PathLike object, not NoneType for subprocess of ffmpeg
15 janvier 2024, par ejmin ejoniI 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.
this is my model :


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

def __str__(self):
 return self.song.title



and views.py


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

 else:
 messages.error(request, 'ویدیوی شما بارگداری نشد')
 return redirect(request.META.get('HTTP_REFERER'))



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 :
expected str, bytes or os.PathLike object, not NoneType
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


-
checkasm/vf_eq : add test for vf_eq
18 septembre 2019, par Ting Fucheckasm/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>