Hi,<div><br></div><div>You should use the "-e" option in order to insert an EOS signal when you do crtl+c.</div><div><br></div><div>It is likely a problem closing properly the file.</div><div><br></div><div>Best,</div>
<div><br></div><div>Angel</div><div><br><br><div class="gmail_quote">2012/11/29 Bernhard Graaf <span dir="ltr"><<a href="mailto:bernhard.graaf@gmx.de" target="_blank">bernhard.graaf@gmx.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi @ all,<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">I’ve an issue with my own program using
dvbbasebin:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">The pipe: gst-launch-1.0 dvbbasebin adapter=1
frequency=12544000 program-numbers="17501" polarity="h"
symbol-rate=22000 ! queue ! tsparse ! filesink location=test_ts.mpg<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Results a file that has no problem with seeking<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">But my own program:<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">**************************************************************************<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<stdio.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<unistd.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<sys/types.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<sys/stat.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<fcntl.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<stdlib.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<string.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<errno.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<gst/gst.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<glib.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<syslog.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<sys/time.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">#include
<sys/select.h><u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">GstElement
*dvb_pipe, *dvb_source, *dvb_sink, *dvb_queue, *dvb_parse;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New"">GstBus *dvb_bus;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New"">GMainLoop *loop;<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="NL" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">static gboolean<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">dvb_bus_call
(GstBus *tmp_bus,<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> GstMessage
*msg,<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
gpointer data)<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">{<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> char
tmp_str[254];<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> switch
(GST_MESSAGE_TYPE (msg)) {<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> case
GST_MESSAGE_EOS:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_print
("End of stream\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_main_loop_quit
(loop);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> break;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> case
GST_MESSAGE_ERROR: {<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> gchar
*debug;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> GError
*error;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
gst_message_parse_error (msg, &error, &debug);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_free
(debug);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
sprintf(tmp_str, "Error: %s\n", error->message);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New"">g_printerr ("%s\n", tmp_str);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New"">
syslog(LOG_ERR, "%s\n",tmp_str);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">g_error_free (error);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_main_loop_quit
(loop);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New"">break;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New""> }<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> default:<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> break;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> }<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> return TRUE;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">}<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">int init_gst_tv()<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">{<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> gst_init (0,
NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_pipe =
gst_pipeline_new ("DVB-Streamer");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_source =
gst_element_factory_make ("dvbbasebin", "dvb-source");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_queue =
gst_element_factory_make ("queue", "dvb-queue");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_parse =
gst_element_factory_make ("tsparse", "dvb-parse");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_sink =
gst_element_factory_make ("filesink", "dvb-sink");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> if (!dvb_pipe
|| !dvb_source || !dvb_queue || !dvb_parse || !dvb_sink) <u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> {<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_printerr
("One element could not be created. </span></font><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New"">Exiting.\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New""> syslog(LOG_ERR,
"Ein Pipe-Element nicht erstellt --> Programmabbruch\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">if(!dvb_pipe) g_printerr("DVB-Pipeline not
created\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> else
if(!dvb_source) g_printerr("DVB-Source not created\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> else
if(!dvb_queue) g_printerr("DVB-Queue not created\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> else
if(!dvb_parse) g_printerr("DVB-Parse not created\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> else
if(!dvb_sink) g_printerr("DVB-Sink not created\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> return -1;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> }<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> dvb_bus =
gst_pipeline_get_bus (GST_PIPELINE (dvb_pipe));<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> gst_bus_add_watch
(dvb_bus, dvb_bus_call, NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New"">gst_object_unref (dvb_bus);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New""> gst_bin_add_many
(GST_BIN (dvb_pipe), dvb_source, dvb_queue, dvb_parse, dvb_sink, NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="NL" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">gst_element_link_many (dvb_source, dvb_queue, dvb_parse,
dvb_sink, NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_sink), "qos", TRUE, NULL); <u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> </span></font><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New"">return
1;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span style="font-size:11.0pt;font-family:"Courier New"">}<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="NL" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">int main (int
argc, char **argv)<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">{<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> char
tmp_str[254], freq[40], file_name[254], rec_pids[25];<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> char
np_name[254];<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> int pid = 0;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> int fd;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
sprintf(freq,"%s000", argv[4]);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> sprintf(file_name,
"test.mpg");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> loop =
g_main_loop_new (NULL, FALSE);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> init_gst_tv();<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "adapter", atoi(argv[3]), NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "frontend", atoi(argv[6]), NULL); <u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "frequency", atoi(freq), NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "program_numbers", argv[7], NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "polarity", argv[9], NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_source), "symbol-rate", atoi(argv[5]), NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_object_set
(G_OBJECT (dvb_sink), "location", file_name, NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
gst_element_set_state (dvb_pipe, GST_STATE_PLAYING);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_print
("Running...\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_main_loop_run
(loop);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> gst_element_set_state
(dvb_pipe, GST_STATE_NULL);<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""> g_print
("Deleting pipeline\n");<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">
gst_object_unref (GST_OBJECT (dvb_pipe));<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">return 1;<u></u><u></u></span></font></p>
<p class="MsoNormal" style="text-autospace:none"><font face="Courier New"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Courier New"">}<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">*****************************************************************************<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Is the result not seekable!<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Something missing to generate a seekable ts-file?<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Thanks a lot and sorry for this long mail!<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></font></p>
<span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><font face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">Bernhard<u></u><u></u></span></font></p>
</font></span></div>
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>