The magic of commands_ Edition of Video.

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

The magic of commands_ Edition of Video.

#1 Post by mister_electronico »

I’ll show you a way to treat the videos as would make any program for video processing that are out there, this way is original and invented by myself so anyone to publish it in some other site I hope to show their origin.

This video processing blocks ffmpeg command and the command nconvert, for more information about nconvert:


https://misterelectronicoes.wordpress.c ... -nconvert/


Well that modify the video by commands when professionals and non-professionals for this program is simple to explain, as we will see, the combinations you can make using the commands are endless.

No professional program it may make as many combinations.

For our example we will leave a video cast by me on the coast of Gijon in Spain

https://www.youtube.com/watch?v=5AP5IwRtxyM


__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/
Last edited by mister_electronico on Sat 14 Feb 2015, 18:25, edited 2 times in total.

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER1

#2 Post by mister_electronico »

Editing video using commands

In this section I’ll show you a way to treat the videos as would make any program for video processing that are out there, this way is original and invented by myself so anyone to publish it in some other site I hope to show their origin.



Well that modify the video by commands when professionals and non-professionals for this program is simple to explain, as we will see, the combinations you can make using the commands are endless.

No professional program it may make as many combinations.

For our example we will leave a video cast by me on the coast of Gijon in Spain

From this video or any other video that we ourselves, ensure that not too large for example 20, 30 or 60 seconds.

1) create a temporary folder using:

mkdir /temp
2) We put the video call eg “video1.mov

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER2

#3 Post by mister_electronico »

Doing the same steps as in the previous case but shortening the explanation:

1) mkdir /temp moving video.mov to /temp

2) open terminal in temporal and type:

ffmpeg -i video.mov -qscale 0 imagen%d.jpg

3) After the terminal type from the following filter to convert images to png:

nconvert -out png -grey 256 -embossmore -grey 256 -balance 30 30 30 -gamma 3.0 -contrast 20 -hls -904 -20 100 *.jpg

4) Deleting all «jpg» images rm *.jpg

6) Packing again imagens all png by:

ffmpeg -f image2 -i imagen%d.png -target pal-dvd -aspect 16:9 final.mpeg

Deleting all «png» images rm *.jpg

Well the resulting video is as follows.

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



__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER3

#4 Post by mister_electronico »

more abbreviated
1) mkdir /temp video.mov a temp
2) terminal : ffmpeg -i video.mov -qscale 0 imagen%d.jpg
3) Filter: nconvert -out png -eedge 100 -eedge 100 -levels 1 30 -contrast 60 *.jpg
4) rm *.jpg
5) Terminal: ffmpeg -f image2 -i imagen%d.png -target pal-dvd -aspect 16:9 final.mpeg
6) rm *.png
7) The final video es:

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



__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER4

#5 Post by mister_electronico »

1) mkdir /temp video.mov a temp
2) terminal : ffmpeg -i video.mov -qscale 0 imagen%d.jpg
3) Filter: nconvert -out png -grey 10 -eedge detect -eedge detect *.jpg
4) rm *.jpg
5) Terminal: ffmpeg -f image2 -i imagen%d.png -target pal-dvd -aspect 16:9 final.mpeg
6) rm *.png
7) The final video es:

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




__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER5

#6 Post by mister_electronico »

1) mkdir /temp video.mov to temp
2) terminal : ffmpeg -i video.mov -qscale 0 imagen%d.jpg
3) Filter: nconvert -out png -sepia 90 *.jpg
4) rm *.jpg
5) Terminal: ffmpeg -f image2 -i imagen%d.png -target pal-dvd -aspect 16:9 final.mpeg
6) rm *.png
7) The final video:

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





__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER6

#7 Post by mister_electronico »

1) mkdir /temp video.mov to temp
2) terminal : ffmpeg -i video.mov -qscale 0 imagen%d.jpg
3) Filter: nconvert -out png -binary nodither *.jpg
4) rm *.jpg
5) Termianal: ffmpeg -f image2 -i imagen%d.png -target pal-dvd -aspect 16:9 final.mpeg
6) rm *.png


https://www.youtube.com/watch?v=6XdH_OWnGwE




__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

FILTER7

#8 Post by mister_electronico »

One of the wonders of the commands is that we can create script for command as in this case combined.

The following filter is not a filter but the application of a script for images.

We need to create a script on behalf eg “convert

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#9 Post by greengeek »

Very clever! I especially like the embossed one. The pixelando one nearly made my eyeballs fall out - but very interesting effect! :-)

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

#10 Post by mister_electronico »

The effects are infinite, as combinations of nconvert command, if anyone is encouraged to make one I would like to leave him here.

greetings.




__________________________________________________________

My Blog

https://misterelectronicoes.wordpress.c ... -homemade/

Post Reply