
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (89)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 ) (...)
Sur d’autres sites (9488)
-
Issue with yt-dlp and FFMPEG Converting Webm to MP4 for 360 video : Unsupported channel layout "ambisonic 1"
22 janvier 2024, par William L W LI am trying to convert .webm files to mp4. These are 360 videos that have been downloaded using yt-dlp.


I have been using this command successfully, but it does not work on an M2 macbook pro. It works fine on PC.


ffmpeg -y -i "/Users/x/Movies/Tropical_Rainforest_360.webm" -c:v libx265 -preset fast -crf 21 -vf "scale=4096x4096:out_range=full" -pix_fmt yuvj420p -aspect 1:1 -movflags faststart "/Users/x/Movies/Tropical_Rainforest_360.mp4"



The error messages are as follows :


[aac @ 0x12ae1fea0] Unsupported channel layout "ambisonic 1"
[aac @ 0x12ae1fea0] Qavg: nan
[aost#0:1/aac @ 0x12ae1fc30] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
Error while filtering: Invalid argument
[swscaler @ 0x110dd0000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x120158000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x130208000] deprecated pixel format used, make sure you did set range correctly
 Last message repeated 1 times
[out#0/mp4 @ 0x600003f8c480] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A 
Conversion failed!




Context : I work in an educational setting which caters for vulnearble pupils. We cannot use Youtube in real time, this is mainly due to adverts or suggested videos that may trigger our pupils. Some children have mental health issues. Some children have also not been outdoors for several months/years due to medical conditions. We use 360 videos and VR to help bring the outside world inside, The YoutubeVR app is not an option since there is no way to install adblockers.


The same script above works fine on a PC virtual machine which I can remote into from my Mac.


-
FFMPEG : how to create a "title slide" for 3 seconds before a video [closed]
15 mars 2024, par ashayI'm trying to make a lecture video to put online. I have the video itself, and I have a title slide that I'd like to play for 3 seconds before the main video.


I tried using ffmpeg to (1) create a 3 second long video from the title slide and (2) concat the two videos together.


I'm having issues concatenating the videos together — when I do so, the resulting video is much longer than it should be. When I look online, others have similar problems — and this seems to occur when the parameters of the two videos do not match perfectly.


I'd prefer to do this without re-encoding the main video — and it seems this should be possible because I should be able to control what parameters are set for the "lecture slide video".


Here are the commands I've run.
The main video has framerate 25, resolution 1920x1080, and an audio stream at #0:0 and a video stream at #0:1 (according to ffmpeg -i [video].


To create the video of the title slide, I ran
ffmpeg -framerate 25 -i lec01_title.png -t 3 -c:v libx264 -x265-params lossless=1 -pix_fmt yuvj420p -vf scale=1920:1080 lec01_title.mp4 -f lavfi -i anullsrc -c:a aac -shortest
.
Then to reorder the streams to match the main video, I ranffmpeg -i lec01_title.mp4 -map 0:a -map 0:v -c:v copy -c:a copy lec01_title_matched.mp4
.

Then to concatenate the two files together, I created a text file "concat_list" with :

file 'lec01_title_matched.mp4' file 'lec01.mp4'
, and ran the commandffmpeg -f concat -safe 0 -i concat_list.txt -c copy -movflags +faststart output.mp4
.

The main video is 53 minutes long, but the final output video after concatenating is 1 hour and 43 minutes long.


I'm looking for advice for how to create the "lecture title video" properly to match the parameters of the second video so that I can concatenate them without problems.


Here's the output of
ffmpeg -i lec01.mp4
:

ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
 built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
 configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
 libavutil 58. 29.100 / 58. 29.100
 libavcodec 60. 31.102 / 60. 31.102
 libavformat 60. 16.100 / 60. 16.100
 libavdevice 60. 3.100 / 60. 3.100
 libavfilter 9. 12.100 / 9. 12.100
 libswscale 7. 5.100 / 7. 5.100
 libswresample 4. 12.100 / 4. 12.100
 libpostproc 57. 3.100 / 57. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dcai_lec01.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 title : 2-190-wideshot
 encoder : Lavf60.16.100
 Duration: 00:47:39.08, start: 0.000000, bitrate: 1435 kb/s
 Stream #0:0[0x1](und): Audio: aac (LC) (mp4a / 0x6134706D), 96000 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1298 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc60.31.102 libx264



Described above in detail.


-
ffmpeg does not make a video from my images
10 mai 2024, par QuantumFoolI've currently got some images that I'd like to display in the form of a movie. So, I pocked around a bit and found ffmpeg. This is the tutorial I have been going with :



http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/



Since I don't care about reading, I skipped right to the writing section. As far as I can tell, this is what my program should say :





import subprocess as sp
FFMPEG_BIN = "ffmpeg" #I'm on Ubuntu
command = [ FFMPEG_BIN,
 '-y',
 '-f', 'rawvideo',
 '-vcodec', 'rawvideo',
 '-s', '1000x1000',
 '-pix_fmt', 'rgb24',
 '-r', '24',
 '-i', '-',
 '-an',
 '-vcodec', 'mpeg',
 'my_output_videofile.mp4' ]


pipe = sp.Popen( command, stdin = sp.PIPE, stderr = sp.PIPE)




However, when I run this in spyder, I get the error message :



Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
 execfile(filename, namespace)
 File "/home/xander/Downloads/python-meep/makeVideo.py", line 15, in <module>
 pipe = sp.Popen( command, stdin = sp.PIPE, stderr = sp.PIPE )
 File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
 errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
 raise child_exception
 OSError: [Errno 2] No such file or directory
</module></module></stdin>



Why is that happening ? I'm really suspicious : I never mention the names of my pictures ("Image0.jpeg", "Image1.jpeg", ..., "Image499.jpeg", "Image500.jpeg"). Any help will be greatly appreciated !



P.S. The guy in the tutorial also says that some codecs require a bitrate ; I tried that and it didn't work either.