Docu

General process

Author your animation

/*
 * Hello World EDC
 */

fonts {
	font: "clasict2.ttf" "default";
}

collections {
	group {
		name: "main";
		parts {
			part {
				name: "bg";
				type: RECT;
				description {
					state: "default" 0.0;
					color: 0 0 0 255;
				}
			}

			part {
				name: "label";
				type: TEXT;
				effect: OUTLINE;
				description {
					state: "default" 0.0;
					color: 255 0 0 255;
					color2: 255 255 255 255;
					text {
						text: "hello world";
						size: 50;
						font: "default";
						align: 0.5 0.5;
					}
				}
				description {
					state: "default" 1.0;
					inherit: "default" 0.0;
					color: 255 255 255 255;
					color2: 255 0 0 255;
				}
			}
		}

		programs {
			program {
				signal: "start";
				after: "loop";
			}
			program {
				name: "stop";
				action: SIGNAL_EMIT "stop" "";
			}

			program {
				name: "loop";
				action: STATE_SET "default" 1.0;
				transition: SINUSOIDAL 5.0;
				target: "label";
				after: "stop";
			}
		}
	}
}

Compile your animation

edje_cc hello.edc hello.edj

Preview your animation (window width 320px, height 180px and 60 frames per second)

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -t

Render your animation to yuv (yuv420 by default) and safe it to file

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -o hello.yuv

Render your animation to yuv420

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -y 420 -o hello.yuv

Render your animation to yuv444

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -y 444 -o hello.yuv

Render your animation to yuv422

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -y 422 -o hello.yuv

Render your animation to yuv411

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -y 411 -o hello.yuv

Render your animation to grayscale yuv (mono)

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -y mono -o hello.yuv

Render your animation to raw RGBA

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -r -o hello.rgba

Render your animation to yuv and pipe it to ffmpeg to compress to mp4

edje2yuv -i hello.edj -w 320 -h 180 -f 60 | ffmpeg -y -f yuv4mpegpipe -i - -b 500000 hello.mp4

Render your animation to raw RGBA and pipe it to ffmpeg to convert it to yuv420 and pipe it to ffplay to view

edje2yuv -i hello.edj -w 320 -h 180 -f 60 -r | ffmpeg -y -s 320x240 -r 60 -f rawvideo -vcodec rawvideo -pix_fmt rgba -i - -f yuv4mpegpipe -pix_fmt yuv420p - | ffplay -autoexit -