Anciennes révisionsLiens de retourExporter en PDFHaut de page Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer RedditDerniers changementsSend via e-MailImprimerPermalien × La vidéo sous linux video Avant c'était le super casse-tête, maintenant c'est easy! ffmpeg https://lecrabeinfo.net/comment-utiliser-ffmpeg-fichiers-video-et-audio.html réduire / resizer ffmpeg -i input.avi -s 720x480 -c:a copy output720.mkv ffmpeg -i input.avi -s 360x240 -c:a copy output360.mkv concatener cat fileList.txt file '/home/file1.mp4' file '/home/file1.mp4' ./ffmpeg -f concat -safe 0 -i fileList.txt -c copy mergedVideo.mp4 videocouper.sh echo "couper une video" echo "entrer le nom de la video" ls read video echo "entrer le debut (h:min:sec.00) eg 00:02:30.00" read debut echo "entrer la duree en minutes eg 00:01:30.00" read duree ffmpeg -i $video -ss $debut -t $duree -c:v copy -c:a copy new.mp4 Merger bande son echo "Coller une bande-son à une video" echo "entrer le nom de la video" ls read video echo "entrer la bande son" ls read bandeson echo "Collage en cours" ffmpeg -i $video -i $bandeson -c:v copy -c:a aac -map 0:v:0 -map 1:a:0 output.mp4 Convertir Convertir (pas seulement des vidéos, tout type de fichier) https://cloudconvert.com/formats Lire un dvd http://doc.ubuntu-fr.org/lire_un_dvd vlc vlc - Documentation Ubuntu Francophone http://doc.ubuntu-fr.org/vlc VLC est à la fois un lecteur et un serveur multimédia multiplateforme. apt-get install vlc (il y a aussi une version pour windows) VLC HowTo/Adjust subtitle delay tribler Tribler est un logiciel libre d'échange de données en pair à pair (P2P/Peer-to-Peer). Il utilise un protocole propre qui étend celui de BitTorrent et avec lequel il est rétrocompatible. Il permet donc également le partage de fichiers en pair à pair. Le développement de Tribler est en partie financé par l'Union européenne. http://www.tribler.org/ youtube-dl télécharger une vidéo YouTube sous linux youtube, propriété du sympathique Google depuis 2006 a récemment interdit les plugins de téléchargement qui permettaient de rapatrier une vidéo pour la consulter sans connexion internet (très pratique p. ex. pour mon taichi au chalet des Ravières) sous linux c'est pourtant très facile sudo apt-get install youtube-dl youtube-dl (url de votre youtube) voir doc: http://doc.ubuntu-fr.org/youtube-dl et les sources http://rg3.github.io/youtube-dl/ et si on veut juste le son, utiliser ce petit script qui convertit votre mp4 en mp3: mp42mp3 ou plus court encore: youtube2mp3 Télécharger et convertir les transcriptions (sous-titres)youtube https://www.dvdvideosoft.com/online-youtube-subtitles-download youtube-dl n'est plus maintenu: voir infra yt-dlp yt-dlp https://www.linuxtricks.fr/wiki/yt-dlp-telecharger-des-videos-sur-internet-youtube-dl apt install yt-dlp yt-dlp http://url_de_la_video man yt-dlp Autre format yt-dlp -F https://www.youtube.com/watch?v=XXLi25Pz3pk yt-dlp -f 22 https://www.youtube.com/watch?v=XXLi25Pz3pk Extraire la bande son d'une vidéo yt-dlp -x --audio-format mp3 --audio-quality 0 https://www.youtube.com/watch?v=XXLi25Pz3pk Télécharger une playlist yt-dlp https://www.youtube.com/playlist?list=PLfzx4DkKpC6JyBiXNntNIWJXAYeLy9KEO Montage vidéo http://doc.ubuntu-fr.org/montage_video https://www.kinemaster.com/ pas du linux mais bien pratique pour les smartphone (android comme i) shotcut Shotcut is a free, open source, cross-platform video editor. http://www.shotcut.org/ http://www.shotcut.org/bin/view/Shotcut/Tutorials http://www.shotcut.org/bin/view/Shotcut/FrequentlyAskedQuestions OBS Studio Free and open source software for video recording and live streaming. Download and start streaming quickly and easily on Windows, Mac or Linux. https://obsproject.com/ Copies / Graver une sauvegarde k9copy excellent programme sudo apt-get install k9copy k3b Le plus simple et le plus rapide! http://fr.wikipedia.org/wiki/K3b Dévédé http://www.rastersoft.com/programas/devede.html si vous rencontrez des problèmes liés aux protections etc: http://doc.ubuntu-fr.org/ripper_un_dvd HandBrake http://trac.handbrake.fr/wiki/CompileOnLinux?version=5 pour Ubuntu Lucid Lynx Pour convertir une vidéo au format propriétaire AVI etc.: le plus simple est d'utiliser YouTube! http://handbrake.fr/ excellent, utiliser formats mkv et m4v avec le client, rien de plus simple: First, simple input and output. HandBrakeCLI -i source -o destination That will encode with default values: 1000kbps ffmpeg video and 160kbps AAC audio in an .mp4 container. Easy, right? So now you can start customizing those settings. You can pile on all sorts of things, and end up with a monster like: HandBrakeCLI -i /Volumes/MyBook/VIDEO_TS -o /Volumes/MyBook/movie.m4v -v -P -m -E aac,ac3 -e x264 -q 0.65 -x ref=3:mixed-refs:bframes=6:b-pyramid=1:weightb=1:analyse=all:8x8dct=1:subme=7:me=umh :merange=24:filter=-2,-2:trellis=1:no-fast-pskip=1:no-dct-decimate=1:direct=auto For now, think about less complex stuff: HandBrakeCLI -i /media/cdrom0/VIDEO_TS -o movie.mp4 -e x264 -b 2000 -B 192 cd videos HandBrakeCLI -i /media/cdrom0/VIDEO_TS -o movie.m4v -e x264 -b 2000 -B 192 la même chose avec les sous-titres disponibles ### Subtitle Options------------------------------------------------------------ -s, --subtitle <number> Select subtitle (default: none) -U, --subtitle-scan Scan for subtitles in an extra 1st pass, and choose the one that's only used 10 percent of the time or less. This should locate subtitles for short foreign language segments. Best used in conjunction with --subtitle-forced. -F, --subtitle-forced Only display subtitles from the selected stream if the subtitle has the forced flag set. May be used in conjunction with --subtitle-scan to auto-select a stream if it contains forced subtitles. -N, --native-language Select subtitles with this language if it does not <string> match the Audio language. Provide the language's iso639-2 code (fre, eng, spa, dut, et cetera) cd videos HandBrakeCLI -i /media/cdrom0/VIDEO_TS -o movie.m4v -e x264 -b 2000 -B 192 --subtitle-scan Client graphique http://www.commentcamarche.net/faq/sujet-18915-linux-ubuntu-convertir-un-dvd-en-divx-avec-handbrake ajouter aux dépôts deb http://ppa.launchpad.net/handbrake-ubuntu/ppa/ubuntu karmic main puis sudo apt-get update sudo apt-get install handbrake-gtk dvdshrink Pour faire des backups (attention, pas des copies pirates!) de vos disques, vous pouvez utiliser dvdshrink (programme windaube) sous l'émulateur wine ou xdvdshrink: http://dvdshrink.sourceforge.net/ faire le download du rpm puis: apt-get install alien alien dvdshrink-2.6.1-10mdk.noarch.rpm dpkg -i dvdshrink_2.6.1-11_all.deb dvdshrink S'il râle, il faut peut-être encore: apt-get install transcode mjpegtools dvdauthor subtitleripper http://doc.ubuntu-fr.org/xdvdshrink Protection CSS new: https://doc.ubuntu-fr.org/lire_un_dvd sudo /usr/share/doc/libdvdread4/install-css.sh Many DVDs use css for encryption. To play these discs, a special library is needed to decode them, libdvdcss. Due to legal problems, Debian and most Linux distro cannot distribute libdvdcss, but it is available on other places on the internet. If it is legal for you to use css, you can download & run install-css.sh script (same script may be installed at location '/usr/share/doc/libdvdread3/examples/install-css.sh'). sous-titres / subs Une fois que vous avez les sous-titres, pour les intégrer, voir sur l'excellent blog de lord: Remux : script pour muxer les films Trouver Si le film que vous avez acheté n'a pas les bons sous-titres… rien de plus simple! https://www.podnapisi.net/ http://www.opensubtitles.org Ou encore, allez sur votre moteur de recherche favori et tapez subs "nom de votre Film" Et si vos subs sont décalés, vous pouvez vous en sortir avec vlc et une fois le temps de décalage identifié le modifier dans le fichier de subs avec Move Your Sub Online (permet d'avancer ou de retarder l'affichage d'un de vos fichiers sous-titre) ou installer https://github.com/maxrd2/subtitlecomposer: sudo apt-get install subtitlecomposer Faire Jubler Subtitle Εditor http://jubler.org/ Jubler is a tool to edit text-based subtitles. It can be used as an authoring software for new subtitles or as a tool to convert, transform, correct and refine existing subtitles. The most popular subtitle formats can be used. Preview of the subtitles in realtime or in design time, spell checking, translation mode and styles editing are some of the main features. Webcam Open a terminal window. Type in the following command: sudo apt-get install cheese Run Cheese. Cheese should automatically detect your webcam and display live video stream. To record video or take a snapshot, click either on photo or video and select Take a Photo or Start recording. https://help.ubuntu.com/community/Webcam Faire un gif animé Installer le soft requis: sudo apt-get install ffmpeg gifsicle imagemagick Convertir la vidéo en une série de petites images mkdir /tmp/gif/ ffmpeg -i YOURVIDEOFILE.mp4 -r 10 -s 711×400 /tmp/gif/out%04d.gif Combiner ces images dans une animation gif: gifsicle –delay=10 –loop /tmp/gif/*.gif > animation.gif Optimiser l'animation GIF pour en réduire la taille: convert -layers Optimize animation.gif animation_optimized.gif info/la_video_sous_linux.txt Dernière modification : 2023/08/10 09:32de radeff S'identifier