From 750b4c97ce07ac9d2060360d2515d57efcf4b4fc Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 7 Jun 2010 09:28:14 +0200 Subject: ESC/2010: move all files into esc/ dir --- recipes/esc-gst/esc-gst_5.bb | 33 ------------ recipes/esc-gst/files/README | 67 ------------------------- recipes/esc-gst/files/a0 | 3 -- recipes/esc-gst/files/a_gst.c | 106 --------------------------------------- recipes/esc-gst/files/c1 | 8 --- recipes/esc-gst/files/n5 | 4 -- recipes/esc-media/esc-media_4.bb | 23 --------- recipes/esc/esc-gst/README | 67 +++++++++++++++++++++++++ recipes/esc/esc-gst/a0 | 3 ++ recipes/esc/esc-gst/a_gst.c | 106 +++++++++++++++++++++++++++++++++++++++ recipes/esc/esc-gst/c1 | 8 +++ recipes/esc/esc-gst/n5 | 4 ++ recipes/esc/esc-gst_5.bb | 33 ++++++++++++ recipes/esc/esc-media_4.bb | 23 +++++++++ 14 files changed, 244 insertions(+), 244 deletions(-) delete mode 100644 recipes/esc-gst/esc-gst_5.bb delete mode 100644 recipes/esc-gst/files/README delete mode 100755 recipes/esc-gst/files/a0 delete mode 100644 recipes/esc-gst/files/a_gst.c delete mode 100755 recipes/esc-gst/files/c1 delete mode 100755 recipes/esc-gst/files/n5 delete mode 100644 recipes/esc-media/esc-media_4.bb create mode 100644 recipes/esc/esc-gst/README create mode 100755 recipes/esc/esc-gst/a0 create mode 100644 recipes/esc/esc-gst/a_gst.c create mode 100755 recipes/esc/esc-gst/c1 create mode 100755 recipes/esc/esc-gst/n5 create mode 100644 recipes/esc/esc-gst_5.bb create mode 100644 recipes/esc/esc-media_4.bb diff --git a/recipes/esc-gst/esc-gst_5.bb b/recipes/esc-gst/esc-gst_5.bb deleted file mode 100644 index 7c508e79b9..0000000000 --- a/recipes/esc-gst/esc-gst_5.bb +++ /dev/null @@ -1,33 +0,0 @@ -DESCRIPTION = "Gstreamer scripts for Embedded Systems Conference workshop" -LICENSE = "Various" - -SRC_URI = "http://hivelocity.dl.sourceforge.net/project/showoff/esc_gst_scripts.tar.gz \ - file://README \ - file://a0 \ - file://c1 \ - file://n5 \ - file://a_gst.c \ -" -SRC_URI[md5sum] = "4af79d2967dca3c649d3a644ddd4c604" -SRC_URI[sha256sum] = "d7b486520bf22a1e0bc9a808b1bf42f36a329d5a9f67ea6e0f3a25a9dfde2936" - -S = "${WORKDIR}/esc-gst" - -do_install() { - ESC_FILES="a1 a2 a3 a4 a5 a6 d1 d2 d3 d4 d5 d6 g1 g2 g3 g4 g5 g6 g7 g8 g9" - ESC_FILES="${ESC_FILES} n1 n2 n3 n4 p1 s v1 v2 v3 v4" - install -d ${D}${datadir}/esc-gst - for F in ${ESC_FILES} ; do - install -m 0755 ${S}/${F} ${D}${datadir}/esc-gst - done - install -m 0644 ${S}/README ${D}${datadir}/esc-gst - install -d ${D}${datadir}/applications - install -m 0644 ${S}/GStreamer_Class.desktop ${D}${datadir}/applications/ - install -m 0644 ${WORKDIR}/README ${D}${datadir}/esc-gst - install -m 0755 ${WORKDIR}/a0 ${D}${datadir}/esc-gst - install -m 0755 ${WORKDIR}/c1 ${D}${datadir}/esc-gst - install -m 0755 ${WORKDIR}/n5 ${D}${datadir}/esc-gst - install -m 0644 ${WORKDIR}/a_gst.c ${D}${datadir}/esc-gst -} - -FILES_${PN} += "${datadir}/esc-gst" diff --git a/recipes/esc-gst/files/README b/recipes/esc-gst/files/README deleted file mode 100644 index acdddbab98..0000000000 --- a/recipes/esc-gst/files/README +++ /dev/null @@ -1,67 +0,0 @@ - Script | Description -------------------------+------------------------------------------- - -Setup - -s Set PATH and DISPLAY - - -Audio - -a0 ARM based MP3 audio decode -a1 [wave] [duration] Audio test source plays out ALSA audio out -a2 ARM based FLAC audio decode -a3 ARM based MP3 audio decode -a4 ARM based AAC audio decode -a5 [duration] DSP based AAC audio decode -a6 [duration] ALSA audio in to ALSA audio out - - -Video - -v1 [pattern] Video test source displays on X windows using XVideo -v2 [pattern] Warped video test source displays on X windows -v3 [pattern] Edge detection video test source displays on - X windows -v4 [pattern] Vertigo video test source displays on X windows - - -Demultiplexing - -d1 [duration] Figure-it-out-yourself decodebin audio example - (verbose enabled) -d2 [duration] Same as d1 with filter to just list element names -d3 [duration] QuickTime audio with DSP based decode to audio out -d4 [duration] AVI video MPEG2 and audio MP3 using ARM decode -d5 YouTube FLV video VP and audio MP3 using ARM decode -d6 [duration] QuickTime DSP video decode and ARM audio (AAC) decode - -Compiling source code - -c1 Compile and run audio example a_gst.c - -GStreamer Daemon - -g1 Start GStreamer Daemon -g2 Create QuickTime (d4) pipeline -g3 Change pipeline to pause state -g4 Change pipeline to play state -g5 Change pipeline to pause state -g6 Change pipeline to play state -g7 Set speed to 2x -g8 Set speed to 1/2 -g9 Kill pipeline (set pipeline to NULL) - - -Performance measurement - -p1 YouTube FLV (d5) with performance data - - -Networking - -n1 Reminder text on how to start live555 -n2 [host IP address] RTSP stream MP3 audio from host -n3 [host IP address] RTP stream send audio data -n4 RTP stream receive audio data -n5 Stream video from Leopard Board 365 diff --git a/recipes/esc-gst/files/a0 b/recipes/esc-gst/files/a0 deleted file mode 100755 index ae58377502..0000000000 --- a/recipes/esc-gst/files/a0 +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh -set -x -gst-launch filesrc location=/usr/share/esc-media/bbb.mp3 ! mad ! alsasink diff --git a/recipes/esc-gst/files/a_gst.c b/recipes/esc-gst/files/a_gst.c deleted file mode 100644 index 4b2763a1c8..0000000000 --- a/recipes/esc-gst/files/a_gst.c +++ /dev/null @@ -1,106 +0,0 @@ -/* Gstreamer Audio Player Example */ - -#include -#include - -static gboolean -bus_call (GstBus *bus, - GstMessage *msg, - gpointer data) -{ - GMainLoop *loop = (GMainLoop *) data; - - switch (GST_MESSAGE_TYPE (msg)) { - - case GST_MESSAGE_EOS: - g_print ("End of stream\n"); - g_main_loop_quit (loop); - break; - - case GST_MESSAGE_ERROR: { - gchar *debug; - GError *error; - - gst_message_parse_error (msg, &error, &debug); - g_free (debug); - - g_printerr ("Error: %s\n", error->message); - g_error_free (error); - - g_main_loop_quit (loop); - break; - } - default: - break; - } - - return TRUE; -} - -int -main (int argc, - char *argv[]) -{ - GMainLoop *loop; - - GstElement *pipeline, *source, *decoder, *sink; - GstBus *bus; - - /* Initialisation */ - gst_init (&argc, &argv); - - loop = g_main_loop_new (NULL, FALSE); - - /* Check input arguments */ - if (argc != 2) { - g_printerr ("Usage: %s \n", argv[0]); - return -1; - } - - /* Create gstreamer elements */ - pipeline = gst_pipeline_new ("audio-player"); - source = gst_element_factory_make ("filesrc", "file-source"); - decoder = gst_element_factory_make ("mad", "mp3-decoder"); - sink = gst_element_factory_make ("alsasink", "audio-output"); - - if (!pipeline || !source || !decoder || !sink) { - g_printerr ("One element could not be created. Exiting.\n"); - return -1; - } - - /* Set up the pipeline */ - - /* we set the input filename to the source element */ - g_object_set (G_OBJECT (source), "location", argv[1], NULL); - - /* we add a message handler */ - bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); - gst_bus_add_watch (bus, bus_call, loop); - gst_object_unref (bus); - - /* we add all elements into the pipeline */ - /* filesource | mad | alsasink */ - gst_bin_add_many (GST_BIN (pipeline), - source, decoder, sink, NULL); - - /* we link the elements together */ - /* file-source -> mad -> alsasink */ - gst_element_link_many (source,decoder, sink, NULL); - - /* Set the pipeline to "playing" state*/ - g_print ("Now playing: %s\n", argv[1]); - gst_element_set_state (pipeline, GST_STATE_PLAYING); - - /* Iterate */ - g_print ("Running...\n"); - g_main_loop_run (loop); - - /* Out of the main loop, clean up nicely */ - g_print ("Returned, stopping playback\n"); - gst_element_set_state (pipeline, GST_STATE_NULL); - - g_print ("Deleting pipeline\n"); - gst_object_unref (GST_OBJECT (pipeline)); - - return 0; -} diff --git a/recipes/esc-gst/files/c1 b/recipes/esc-gst/files/c1 deleted file mode 100755 index c851b89de2..0000000000 --- a/recipes/esc-gst/files/c1 +++ /dev/null @@ -1,8 +0,0 @@ -#! /bin/sh -set -x - -export PKG_CONFIG_PATH=/usr/lib/pkgconfig - -gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) a_gst.c -o a_gst - -a_gst /usr/share/esc-media/bbb.mp3 diff --git a/recipes/esc-gst/files/n5 b/recipes/esc-gst/files/n5 deleted file mode 100755 index c5d7f3ea3d..0000000000 --- a/recipes/esc-gst/files/n5 +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh -set -x -gst-launch udpsrc port=5434 caps="application/x-rtp, payload=96, clock-rate=90000, encoding-name=MP4V-ES" ! rtpmp4vdepay ! video/mpeg, mpegversion=4, systemstream=false, framerate=\(fraction\)23/1, width=1280, height=720, codec_data=\(buffer\)000001010000012000845d4c294022d0a21f ! ffdec_mpeg4 ! dmaiperf print-arm-load=true ! omapdmaifbsink - diff --git a/recipes/esc-media/esc-media_4.bb b/recipes/esc-media/esc-media_4.bb deleted file mode 100644 index 79ec799090..0000000000 --- a/recipes/esc-media/esc-media_4.bb +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION = "Media files to include on the Embedded Systems Conference workshop" -LICENSE="Various" - -SRC_URI = "http://hivelocity.dl.sourceforge.net/project/showoff/esc_media_files.tar.gz" -SRC_URI[md5sum] = "b75cbc0ce0dfcbd85de12e7fe9ecab8b" -SRC_URI[sha256sum] = "364f474a6356326c113d964885207d90741f2e95770b079d96fffc4295e62739" - -S=${WORKDIR}/esc_media_files - -do_install() { - ESC_MEDIA="2009-obama-congress-speech.avi AlphaAnimal.license \ - AlphaAnimal.m4a BigBuckBunny_640x360.m4v bbb.flac \ - bbb.mp3 bbb.ogg davincieffect.aac gstreamer-logo.svg \ - sprc720.flv" - - install -d ${D}${datadir}/esc-media - for F in ${ESC_MEDIA} ; do - install -m 0644 ${S}/${F} ${D}${datadir}/esc-media - done -} - -FILES_${PN} += "${datadir}/esc-media" - diff --git a/recipes/esc/esc-gst/README b/recipes/esc/esc-gst/README new file mode 100644 index 0000000000..acdddbab98 --- /dev/null +++ b/recipes/esc/esc-gst/README @@ -0,0 +1,67 @@ + Script | Description +------------------------+------------------------------------------- + +Setup + +s Set PATH and DISPLAY + + +Audio + +a0 ARM based MP3 audio decode +a1 [wave] [duration] Audio test source plays out ALSA audio out +a2 ARM based FLAC audio decode +a3 ARM based MP3 audio decode +a4 ARM based AAC audio decode +a5 [duration] DSP based AAC audio decode +a6 [duration] ALSA audio in to ALSA audio out + + +Video + +v1 [pattern] Video test source displays on X windows using XVideo +v2 [pattern] Warped video test source displays on X windows +v3 [pattern] Edge detection video test source displays on + X windows +v4 [pattern] Vertigo video test source displays on X windows + + +Demultiplexing + +d1 [duration] Figure-it-out-yourself decodebin audio example + (verbose enabled) +d2 [duration] Same as d1 with filter to just list element names +d3 [duration] QuickTime audio with DSP based decode to audio out +d4 [duration] AVI video MPEG2 and audio MP3 using ARM decode +d5 YouTube FLV video VP and audio MP3 using ARM decode +d6 [duration] QuickTime DSP video decode and ARM audio (AAC) decode + +Compiling source code + +c1 Compile and run audio example a_gst.c + +GStreamer Daemon + +g1 Start GStreamer Daemon +g2 Create QuickTime (d4) pipeline +g3 Change pipeline to pause state +g4 Change pipeline to play state +g5 Change pipeline to pause state +g6 Change pipeline to play state +g7 Set speed to 2x +g8 Set speed to 1/2 +g9 Kill pipeline (set pipeline to NULL) + + +Performance measurement + +p1 YouTube FLV (d5) with performance data + + +Networking + +n1 Reminder text on how to start live555 +n2 [host IP address] RTSP stream MP3 audio from host +n3 [host IP address] RTP stream send audio data +n4 RTP stream receive audio data +n5 Stream video from Leopard Board 365 diff --git a/recipes/esc/esc-gst/a0 b/recipes/esc/esc-gst/a0 new file mode 100755 index 0000000000..ae58377502 --- /dev/null +++ b/recipes/esc/esc-gst/a0 @@ -0,0 +1,3 @@ +#! /bin/sh +set -x +gst-launch filesrc location=/usr/share/esc-media/bbb.mp3 ! mad ! alsasink diff --git a/recipes/esc/esc-gst/a_gst.c b/recipes/esc/esc-gst/a_gst.c new file mode 100644 index 0000000000..4b2763a1c8 --- /dev/null +++ b/recipes/esc/esc-gst/a_gst.c @@ -0,0 +1,106 @@ +/* Gstreamer Audio Player Example */ + +#include +#include + +static gboolean +bus_call (GstBus *bus, + GstMessage *msg, + gpointer data) +{ + GMainLoop *loop = (GMainLoop *) data; + + switch (GST_MESSAGE_TYPE (msg)) { + + case GST_MESSAGE_EOS: + g_print ("End of stream\n"); + g_main_loop_quit (loop); + break; + + case GST_MESSAGE_ERROR: { + gchar *debug; + GError *error; + + gst_message_parse_error (msg, &error, &debug); + g_free (debug); + + g_printerr ("Error: %s\n", error->message); + g_error_free (error); + + g_main_loop_quit (loop); + break; + } + default: + break; + } + + return TRUE; +} + +int +main (int argc, + char *argv[]) +{ + GMainLoop *loop; + + GstElement *pipeline, *source, *decoder, *sink; + GstBus *bus; + + /* Initialisation */ + gst_init (&argc, &argv); + + loop = g_main_loop_new (NULL, FALSE); + + /* Check input arguments */ + if (argc != 2) { + g_printerr ("Usage: %s \n", argv[0]); + return -1; + } + + /* Create gstreamer elements */ + pipeline = gst_pipeline_new ("audio-player"); + source = gst_element_factory_make ("filesrc", "file-source"); + decoder = gst_element_factory_make ("mad", "mp3-decoder"); + sink = gst_element_factory_make ("alsasink", "audio-output"); + + if (!pipeline || !source || !decoder || !sink) { + g_printerr ("One element could not be created. Exiting.\n"); + return -1; + } + + /* Set up the pipeline */ + + /* we set the input filename to the source element */ + g_object_set (G_OBJECT (source), "location", argv[1], NULL); + + /* we add a message handler */ + bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); + gst_bus_add_watch (bus, bus_call, loop); + gst_object_unref (bus); + + /* we add all elements into the pipeline */ + /* filesource | mad | alsasink */ + gst_bin_add_many (GST_BIN (pipeline), + source, decoder, sink, NULL); + + /* we link the elements together */ + /* file-source -> mad -> alsasink */ + gst_element_link_many (source,decoder, sink, NULL); + + /* Set the pipeline to "playing" state*/ + g_print ("Now playing: %s\n", argv[1]); + gst_element_set_state (pipeline, GST_STATE_PLAYING); + + /* Iterate */ + g_print ("Running...\n"); + g_main_loop_run (loop); + + /* Out of the main loop, clean up nicely */ + g_print ("Returned, stopping playback\n"); + gst_element_set_state (pipeline, GST_STATE_NULL); + + g_print ("Deleting pipeline\n"); + gst_object_unref (GST_OBJECT (pipeline)); + + return 0; +} diff --git a/recipes/esc/esc-gst/c1 b/recipes/esc/esc-gst/c1 new file mode 100755 index 0000000000..c851b89de2 --- /dev/null +++ b/recipes/esc/esc-gst/c1 @@ -0,0 +1,8 @@ +#! /bin/sh +set -x + +export PKG_CONFIG_PATH=/usr/lib/pkgconfig + +gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) a_gst.c -o a_gst + +a_gst /usr/share/esc-media/bbb.mp3 diff --git a/recipes/esc/esc-gst/n5 b/recipes/esc/esc-gst/n5 new file mode 100755 index 0000000000..c5d7f3ea3d --- /dev/null +++ b/recipes/esc/esc-gst/n5 @@ -0,0 +1,4 @@ +#! /bin/sh +set -x +gst-launch udpsrc port=5434 caps="application/x-rtp, payload=96, clock-rate=90000, encoding-name=MP4V-ES" ! rtpmp4vdepay ! video/mpeg, mpegversion=4, systemstream=false, framerate=\(fraction\)23/1, width=1280, height=720, codec_data=\(buffer\)000001010000012000845d4c294022d0a21f ! ffdec_mpeg4 ! dmaiperf print-arm-load=true ! omapdmaifbsink + diff --git a/recipes/esc/esc-gst_5.bb b/recipes/esc/esc-gst_5.bb new file mode 100644 index 0000000000..7c508e79b9 --- /dev/null +++ b/recipes/esc/esc-gst_5.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "Gstreamer scripts for Embedded Systems Conference workshop" +LICENSE = "Various" + +SRC_URI = "http://hivelocity.dl.sourceforge.net/project/showoff/esc_gst_scripts.tar.gz \ + file://README \ + file://a0 \ + file://c1 \ + file://n5 \ + file://a_gst.c \ +" +SRC_URI[md5sum] = "4af79d2967dca3c649d3a644ddd4c604" +SRC_URI[sha256sum] = "d7b486520bf22a1e0bc9a808b1bf42f36a329d5a9f67ea6e0f3a25a9dfde2936" + +S = "${WORKDIR}/esc-gst" + +do_install() { + ESC_FILES="a1 a2 a3 a4 a5 a6 d1 d2 d3 d4 d5 d6 g1 g2 g3 g4 g5 g6 g7 g8 g9" + ESC_FILES="${ESC_FILES} n1 n2 n3 n4 p1 s v1 v2 v3 v4" + install -d ${D}${datadir}/esc-gst + for F in ${ESC_FILES} ; do + install -m 0755 ${S}/${F} ${D}${datadir}/esc-gst + done + install -m 0644 ${S}/README ${D}${datadir}/esc-gst + install -d ${D}${datadir}/applications + install -m 0644 ${S}/GStreamer_Class.desktop ${D}${datadir}/applications/ + install -m 0644 ${WORKDIR}/README ${D}${datadir}/esc-gst + install -m 0755 ${WORKDIR}/a0 ${D}${datadir}/esc-gst + install -m 0755 ${WORKDIR}/c1 ${D}${datadir}/esc-gst + install -m 0755 ${WORKDIR}/n5 ${D}${datadir}/esc-gst + install -m 0644 ${WORKDIR}/a_gst.c ${D}${datadir}/esc-gst +} + +FILES_${PN} += "${datadir}/esc-gst" diff --git a/recipes/esc/esc-media_4.bb b/recipes/esc/esc-media_4.bb new file mode 100644 index 0000000000..79ec799090 --- /dev/null +++ b/recipes/esc/esc-media_4.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "Media files to include on the Embedded Systems Conference workshop" +LICENSE="Various" + +SRC_URI = "http://hivelocity.dl.sourceforge.net/project/showoff/esc_media_files.tar.gz" +SRC_URI[md5sum] = "b75cbc0ce0dfcbd85de12e7fe9ecab8b" +SRC_URI[sha256sum] = "364f474a6356326c113d964885207d90741f2e95770b079d96fffc4295e62739" + +S=${WORKDIR}/esc_media_files + +do_install() { + ESC_MEDIA="2009-obama-congress-speech.avi AlphaAnimal.license \ + AlphaAnimal.m4a BigBuckBunny_640x360.m4v bbb.flac \ + bbb.mp3 bbb.ogg davincieffect.aac gstreamer-logo.svg \ + sprc720.flv" + + install -d ${D}${datadir}/esc-media + for F in ${ESC_MEDIA} ; do + install -m 0644 ${S}/${F} ${D}${datadir}/esc-media + done +} + +FILES_${PN} += "${datadir}/esc-media" + -- cgit v1.2.3