martes, 30 de julio de 2019

recortar un video desde la linea de comandos

ffmpeg -i input.mp4 -ss 01:10:27 -to 02:18:51 -c:v copy -c:a copy output.mp4

ffmpeg -i uncut.mp4 -ss 00:02:27 -to 00:02:36 -c:v copy cut.mp4 

This will cut out the section from about 1h10min to 2h18min losslessly, and will only take a few seconds to run.
https://www.arj.no/2018/05/18/trimvideo/

Efecto espejo
>ffmpeg -i orig.avi -vf "hflip" flipped.avi
https://corestar.com.au/mirror-video-with-ffmpeg/

subir el volumen de un video
https://desarrollo.espino.info/open-source/dos-excelentes-funciones-de-ffmpeg-subir-volumen-y-recortar-video.html

recombinar un video y audio
https://www.atareao.es/software-linux/mejorar-el-audio-de-un-video/


https://opensourceforu.com/2016/05/cool-ffmpeg-tricks/
https://www.ostechnix.com/20-ffmpeg-commands-beginners/
https://linuxaria.com/howto/tricks-ffmpeg
https://medium.com/@dernis/ffmpeg-tips-tricks-and-and-lessons-learned-a6f3c1187085


Unir 2 videos

FOR MP4 FILES

For .mp4 files (which I obtained from DailyMotion.com: a 50 minute tv episode, downloadable only in three parts, as three .mp4 video files) the following was an effective solution for Windows 7, and does NOT involve re-encoding the files.

I renamed the files (as file1.mp4, file2.mp4, file3.mp4) such that the parts were in the correct order for viewing the complete tv episode.

Then I created a simple batch file (concat.bat), with the following contents:

:: Create File List
echo file file1.mp4 >>  mylist.txt 
echo file file2.mp4 >> mylist.txt
echo file file3.mp4 >> mylist.txt

:: Concatenate Files
ffmpeg -f concat -i mylist.txt -c copy output.mp4
The batch file, and ffmpeg.exe, must both be put in the same folder as the .mp4 files to be joined. Then run the batch file. It will typically take less than ten seconds to run.
.

Addendum (2018/10/21) -

If what you were looking for is a method for specifying all the mp4 files in the current folder without a lot of retyping, try this in your Windows batch file instead (MUST include the option -safe 0):

:: Create File List
for %%i in (*.mp4) do echo file '%%i'>> mylist.txt

:: Concatenate Files
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
This works on Windows 7, in a batch file. Don't try using it on the command line, because it only works in a batch file!

*************
2023 comprimir
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4
fuente:
https://unix.stackexchange.com/questions/28803/how-can-i-reduce-a-videos-size-with-ffmpeg

No hay comentarios:

Publicar un comentario