After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657684 - texttestsrc: a new text source, generates random text.
texttestsrc: a new text source, generates random text.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-30 09:54 UTC by Vincent Penquerc'h
Modified: 2018-11-03 13:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
texttestsrc: a new text source, generates random text. (30.53 KB, patch)
2011-08-30 09:54 UTC, Vincent Penquerc'h
none Details | Review
texttestsrc: a new text source, generates random text. (32.06 KB, patch)
2011-09-19 10:52 UTC, Vincent Penquerc'h
none Details | Review
texttestsrc: a new text source, generates random text. (38.11 KB, patch)
2011-10-08 14:55 UTC, Vincent Penquerc'h
reviewed Details | Review
texttestsrc: a new text source, generates random text. (38.13 KB, patch)
2011-11-28 15:51 UTC, Vincent Penquerc'h
needs-work Details | Review

Description Vincent Penquerc'h 2011-08-30 09:54:51 UTC
Useful, eh ? :P
Comment 1 Vincent Penquerc'h 2011-08-30 09:54:53 UTC
Created attachment 195172 [details] [review]
texttestsrc: a new text source, generates random text.
Comment 2 Vincent Penquerc'h 2011-08-30 09:56:09 UTC
Unfinished (seeking yet to be tested, and I'll make it use rand seeds so it gets the same data), but I won't work on it in the next few days so I'm posting it here for comments.
Comment 3 Vincent Penquerc'h 2011-08-30 09:57:05 UTC
Ah, and main use case is to help create automated tests.
Comment 4 Vincent Penquerc'h 2011-09-19 10:52:26 UTC
Created attachment 196919 [details] [review]
texttestsrc: a new text source, generates random text.

The intent is to facilitate the creation of automated
tests for other elements using text input.
Comment 5 Vincent Penquerc'h 2011-10-08 14:55:49 UTC
Created attachment 198602 [details] [review]
texttestsrc: a new text source, generates random text.

The intent is to facilitate the creation of automated
tests for other elements using text input.
Comment 6 Vincent Penquerc'h 2011-10-08 14:58:12 UTC
New version, fixes a few bugs in UTF-8 generation, add a couple tests, and do not generate 0 in the text, makes g_utf8_validate happy and makes sense enough to change.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2011-10-10 11:04:27 UTC
Review of attachment 198602 [details] [review]:

::: gst/texttestsrc/gsttexttestsrc.c
@@ +2,3 @@
+ * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
+ * Copyright (C) <2002> David A. Schleef <ds@schleef.org>
+ * Copyright (C) <2011> Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>

I think you can make that completely your copyright.

@@ +166,3 @@
+      g_param_spec_string ("suffix", "Suffix",
+          "String to place after other text data", DEFAULT_SUFFIX,
+          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

Maybe mention that prefix and suffix is per buffer and the in between is filled with random characters.
Comment 8 Stefan Sauer (gstreamer, gtkdoc dev) 2011-10-10 11:07:36 UTC
Dunno if we would need to have a mode where the whole buffer is filled with a repeated text. Like you set text="Hello world!".

Otherwise wonder if we should do good review and just put that straight to base?
Comment 9 Vincent Penquerc'h 2011-10-18 17:16:47 UTC
> I think you can make that completely your copyright.

It's based on textaudiosrc.

> @@ +166,3 @@
> +      g_param_spec_string ("suffix", "Suffix",
> +          "String to place after other text data", DEFAULT_SUFFIX,
> +          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
> 
> Maybe mention that prefix and suffix is per buffer and the in between is filled
> with random characters.

This should work by setting a prefix string with a length equal to the block size. I know I tried it at some point.
Comment 10 Vincent Penquerc'h 2011-11-28 15:51:29 UTC
Created attachment 202302 [details] [review]
texttestsrc: a new text source, generates random text.

The intent is to facilitate the creation of automated
tests for other elements using text input.
Comment 11 Vincent Penquerc'h 2011-11-28 15:53:15 UTC
While trawling for old patches to push, I noticed I'd misnuderstood the comment in 7. Done now.

Tempted to push this before the freeze... Anyone against ?
Comment 12 Tim-Philipp Müller 2011-11-28 16:06:09 UTC
I'm for pushing this, but (bikeshed alert!) maybe we can stuff it into an existing plugin, like subparse in -base or debugutils in -good or debugutilsbad or so?
Comment 13 Tim-Philipp Müller 2011-11-28 16:07:02 UTC
If it's for tests, then it would be best to put it into -base I guess... (we just have to ignore the name of the plugin).
Comment 14 Vincent Penquerc'h 2011-11-28 16:17:36 UTC
subparse seems wrong, the other two could do. The intent is to easily feed data to any plugin that wants timed text as input, yes. Really the text version of {audio,video}testsrc. The name seems canonical for what this is, but I can rename it to whatever else is deemed better.
Comment 15 Stefan Sauer (gstreamer, gtkdoc dev) 2011-11-28 16:30:25 UTC
What about merging testaudiosrc, testvideosrc and this one into a testsrc plugin? While plugin merges where controversial in the past this should hardly affect apps.
Comment 16 Vincent Penquerc'h 2012-01-31 12:12:36 UTC
So, I got reminded this was in bugzilla when I used a launch line for someone to test with.
What to do with this ?
The options seem either:
- add it to -bad
- add it to a new plugin with audiotestsrc and videotestsrc in -base
Is the second option worth the effort for 0.10 ?
Comment 17 Stefan Sauer (gstreamer, gtkdoc dev) 2012-01-31 12:20:47 UTC
2nd option is easier for having it in both 0.10 and 0.11.
Comment 18 Sebastian Dröge (slomo) 2013-08-23 11:17:34 UTC
Let's just get this done for 1.0 now and put it into bad as a separate plugin for now as that is least controversial. We can still merge everything together later.

Vincent?
Comment 19 Sebastian Dröge (slomo) 2013-08-23 11:18:08 UTC
Comment on attachment 202302 [details] [review]
texttestsrc: a new text source, generates random text.

Needs updating for 1.0 at least
Comment 20 Edward Hervey 2018-05-08 05:39:42 UTC
Still valid. Just needs patch to be updated for current master.
Comment 21 GStreamer system administrator 2018-11-03 13:08:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/45.