
Recherche avancée
Autres articles (67)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-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
Sur d’autres sites (8632)
-
ffmpeg - offset cropped part of a video
23 mai 2020, par SomeWindowsUserProblem :



- 

- I have a video that is made of two separate Videos next to each other





-------------------------
| ------- |
| |vid2 | |
| | | vid1 |
| ------- |
| |
| |
| |
-------------------------




- 

- the 2nd video is delayed in respect to the first, that's why I want to offset the second video by the difference





For the cropping part, I figured using the crop-option might work, but I don't quite know, how to put the video back together, so that the cropped part of the video ends up at the same place as before, i.e. how to set the position, while overlaying the 2 videos.


-
OpenCV : FFMPEG : tag 0x00000021/' !???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
10 juin 2020, par Hepo8421I got error when trying to run a python script. Iam trying to make a project based on pyimagesearch tutorial.



Code :
In first script :



filename = tempVideo.path[tempVideo.path.rfind("/") + 1:]
 s3.upload_file(tempVideo.path, self.conf["s3_bucket"],
 filename, ExtraArgs={"ACL": "public-read",
 "ContentType": "video/mp4"})




In main script :



tempVideo = TempFile(ext=".mp4")
 writer = cv2.VideoWriter(tempVideo.path, 0x21, 30, (W, H),
 True)




Error I recieved :



OpenCV: FFMPEG: tag 0x00000021/'!???' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'
Exception in thread Thread-4:
Traceback (most recent call last):
 File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
 File "/usr/lib/python3.7/threading.py", line 865, in run
 self._target(*self._args, **self._kwargs)
 File "/home/pi/Desktop/pi-security-camera/pyimagesearch/notifications/twilionotifier.py", line 27, in _send
 "ContentType": "video/mp4"})
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/inject.py", line 131, in upload_file
 extra_args=ExtraArgs, callback=Callback)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/boto3/s3/transfer.py", line 279, in upload_file
 future.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 106, in result
 return self._coordinator.result()
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/futures.py", line 265, in result
 raise self._exception
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/tasks.py", line 255, in _main
 self._submit(transfer_future=transfer_future, **kwargs)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 549, in _submit
 upload_input_manager.provide_transfer_size(transfer_future)
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/upload.py", line 237, in provide_transfer_size
 transfer_future.meta.call_args.fileobj))
 File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/s3transfer/utils.py", line 245, in get_file_size
 return os.path.getsize(filename)
 File "/usr/lib/python3.7/genericpath.py", line 50, in getsize
 return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: './/13675f07-ecec-48ae-97bf-32109eb3ed7d.mp4'




Thanks for advices :)


-
All audios should be played after combing using ffmpeg. But there is only audio for the first part
6 mai 2020, par Eric ZThis code is combining 3 mp4 files using ffmpeg command. Each file has audio. 
After combining, I can listen audio for only first part. 
How can I solve this problem ?



===========================================================================



ffmpeg -y -i "tmp/titled-0c33a83dc70534c67f66.mp4" -i "tmp/titled-1c2fc9a95e644ab135a3.mp4" -i "tmp/titled-73c3fb1a3ea435cacdd2.mp4" -i "logo/logo.png" -filter_complex "
nullsrc=s=1280x720[bg];
[0:v]setpts=PTS-STARTPTS+0/TB[v0];
[1:v]setpts=PTS-STARTPTS+4.039/TB[v1];
[2:v]setpts=PTS-STARTPTS+8.078/TB[v2];
[bg][v0]overlay=x='if(lte(t,4.039),0,min(0,-w*min(1,max(0,0.98*(t-4.039)^2))))':y=0,trim=duration=13.145[bg];
[bg][v1]overlay=x='if(gte(t,8.078),-w*min(1,max(0,0.98*(t-8.078)^2)),max(0,1280*(1-min(1,max(0,0.69*(atan(8*(t-4.039)^2.7)))))))':y=0[bg];
[bg][v2]overlay=x='max(0,1280*(1-min(1,max(0,0.69*(atan(8*(t-8.078)^2.7))))))':y=0"
-y -vcodec h264 -crf 13 -acodec aac -strict -2 "out.mp4"