martes, 30 de julio de 2019

Ejecutar cmd desde una carpeta

https://www.softzone.es/2016/10/24/abre-rapidamente-una-ventana-cmd-una-carpeta-este-truco/

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

Apagar remotamente windows 10

https://www.youtube.com/watch?v=_uhbiQWX7lg

https://www.youtube.com/watch?v=7XrbImHaxZU
Result: COMPUTERNAME: Access is denied.(5) CHANGE THE FOLLOWING SETTINGS ON THE REMOTE COMPUTER: Goto: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System Right click and add new DWORD "LocalAccountTokenFilterPolicy" save it and double click on that and make it hexadecimal 1 When user name and password are not the same on both computers change the following on the remote computer: Change Local Security Policy RUN secpol.msc Security Settings, Local Policies, User Rights Assignment search for "Force shutdown from a remote system" and add "Network" Devil Gaming instagram ID : UserName : "devil_gaming_619"

https://www.youtube.com/watch?v=LyDBrKc1s4A

C:\Users\Usuario>shutdown -s -t 30 -m \\192.168.1.7

https://es.phhsnews.com/how-remotely-shutdown


*************
Error 53 windows 10
desactivar el firewall
https://community.spiceworks.com/topic/252818-shutdown-m-hostname-troubleshooting

apagar windows sin dejar que actualize

shutdown –s –f –t 00

La -s es el comando para apagar, la -f para que se cierren todos los programas y la -t 00, para que sea de inmediato, con un retardo de 0 segundos.
Esto funciona desde Windows XP a Windows 10, pero eso sí, ten en cuenta que cuando vuelvas a encender el ordenador, entonces sí se aplicarán las actualizaciones. Es sólo un atajo de emergencia.