
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (27)
-
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 -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (6138)
-
Strange results when converting rgb yuv using ffmpeg in python
20 avril 2020, par user3569998I have JPG images and I am trying to do the following :



- 

- resize the input and save the result into PNG
- convert PNG images to YUV (for instance yuv444p10le) in AVI container
- convert AVI back to PNG image.









I am using python 3 and ffmpeg Linux version installed on Colab



I printed the difference between resized_png and restored_png. I have values of 255 which doesn't make sense at all.



[[[ 0 255 1]
 [ 0 0 1]
 [ 0 255 1]
 ...
 [ 1 0 0]
 [ 1 0 0]
 [ 2 0 1]]

 [[ 0 255 1]
 [ 0 255 1]
 [ 1 0 0]
 ...
 [ 1 0 0]
 [ 1 0 0]
 [ 1 0 0]]

 [[ 0 0 1]
 [ 0 0 1]
 [ 0 0 1]
 ...
 [ 1 255 0]
 [ 1 255 1]
 [ 1 0 0]]

 ...

 [[255 0 0]
 [255 0 1]
 [255 0 1]
 ...
 [ 0 0 0]
 [ 0 0 1]
 [255 0 1]]

 [[255 0 1]
 [255 0 1]
 [255 0 1]
 ...
 [ 0 0 1]
 [ 0 0 1]
 [ 0 0 0]]

 [[255 0 1]
 [255 0 1]
 [255 0 1]
 ...
 [255 1 0]
 [255 0 0]
 [255 0 1]]]




input_image = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.jpg'
output_resized = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.png'
folder_path = '/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/'

#do resize
# code = subprocess.call('cd /usr/bin/ffmpeg', shell=True)
# print(code)
cmd_resize = ['ffmpeg', '-y', '-i', input_image,'-vf', 'scale=224:224', output_resized]
process = subprocess.Popen(cmd_resize, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
print(out)
print(err)

fmt = ['yuv420p', 'yuv420p10le', 'yuv444p', 'yuv444p10le']
for f in fmt:
 cmd2YUV = ['ffmpeg', '-y', '-i', output_resized, '-c:v', 'libx264', '-preset', 'placebo',\
 '-qp', '0', '-x264-params', "keyint=15:no-deblock=1", '-pix_fmt', f, \
 '-sws_flags', 'spline+accurate_rnd+full_chroma_int', \
 '-vf', "colorspace=bt709:iall=bt601-6-625:fast=1", '-color_range', '1', '-colorspace', '1', 
 '-color_primaries', '1', '-color_trc', '1', folder_path+'im2_'+f+'.avi']
 process = subprocess.Popen(cmd2YUV, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 out, err = process.communicate()
 print(out)
 print(err)

 cmd2PNG = ['ffmpeg', '-y', '-i', folder_path+'im2_'+f+'.avi', '-compression_level', '10', '-pred', 'mixed', \
 '-pix_fmt', 'rgb24', '-sws_flags', '+accurate_rnd+full_chroma_int', \
 folder_path+'im2_'+f+'.png']
 process = subprocess.Popen(cmd2PNG, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 out, err = process.communicate()
 print(out)
 print(err)

im1=pilim.open('/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2.png')
im2=pilim.open('/content/drive/My Drive/Colab Notebooks/adv_dnn/datasets/im2_yuv444p10le.png')
im1_2d = np.asarray(im1)
im2_2d = np.asarray(im2)
print(im2_2d-im1_2d)



-
FFMPEG - Output video not playing after effect
11 mai 2021, par D.B.I am using FFMPEG for giving effects to video.


I tried to give effect to video using below commands.


ffmpeg -i Input1.mp4 -i Input2.mp4 -filter_complex xfade=transition=circleopen:duration=5:offset=0 OutPutVideo.mp4



My command runs fine but output video is not running even in VLC media player.


I got these commands from location :
https://ottverse.com/crossfade-between-videos-ffmpeg-xfade-filter/


My videos are at location :
https://drive.google.com/drive/folders/1SLsrRUjyGH3eM7Oe3cptU_YPkga7EoCO?usp=sharing


Please advise what is the issue ?


Kind Regards,


-
Anomalie #2542 : forum interne
8 mars 2012, par christophe ulmeravec sqlite3 , cela fonctionne