gstreamer-devel Digest, Vol 11, Issue 57

paper paper at gmx.net
Mon Dec 26 10:26:25 PST 2011


Hi,  die Russen habe ndas Geld noch nicht bekommen. War alles ok?


On Dec 26, 2011, at 3:22 PM, gstreamer-devel-request at lists.freedesktop.org wrote:

> Send gstreamer-devel mailing list submissions to
> 	gstreamer-devel at lists.freedesktop.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> or, via email, send a message with subject or body 'help' to
> 	gstreamer-devel-request at lists.freedesktop.org
> 
> You can reach the person managing the list at
> 	gstreamer-devel-owner at lists.freedesktop.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gstreamer-devel digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: Choppy v4l2/bttv capture (Omkiran Sharma)
>   2. RE: Playing different songs on different channels
>      (Thiago Sousa Santos)
>   3. ide for gstreamer development on linux (mateen maldar)
>   4. Re: ide for gstreamer development on linux (Sean McNamara)
>   5. RE: Playing different songs on different channels (PragyaRai)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 26 Dec 2011 16:39:29 +0530
> From: Omkiran Sharma <omkiran.for.wiki at gmail.com>
> Subject: Re: Choppy v4l2/bttv capture
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID:
> 	<CAAu=x19RD7x9p8TEEROec+d36SibguR=HDdVDFuPqKWkMRCu3Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
>> 
>> Been looking at converting VHS tapes into nice open digital media,
>> using GStreamer naturally. However I'm having problems getting smooth
>> recordings.
>> 
>> I'm doing this on a Dual core Intel 3.06GHz with 4GB RAM running Fedora
>> 16 (64bit) and using a Hauppauge Win/TV pci, Brooktree Corporation
>> Bt878 Video Capture card.
>> 
>> Using tvtime to watch videos works fine and I can capture video (and
>> audio) using mencoder with the following:
>> 
>> mencoder tv:// -tv driver=v4l2:device=/dev/video1:alsa:adevice=hw.1,1 -oac
>> copy  -ovc lavc -o video.avi
>> 
>> and playback of the resultant video is smooth.
>> 
>> 
>> However, I just can't get smooth video with GStreamer.
>> 
>> E.g, using the following:
>> 
>> gst-launch oggmux name=mux ! filesink location=vid.ogv v4l2src
>> device=/dev/video1 ! videorate !
>> video/x-raw-yuv,width=320,height=240,framerate=25/1 ! ffmpegcolorspace !
>> queue ! theoraenc bitrate=800 ! queue ! mux. alsasrc buffer-time=100000
>> device=hw:1,1 ! audio/x-raw-int,channels=1,rate=119466 ! audioconvert !
>> queue ! vorbisenc ! mux.
>> 
>> Works in as much as I get a Ogg Theora file that plays back and bits
>> where there isn't a lot of movement look fine, however, scenes with a
>> lot of (or not even that much) motion become choppy.
>> 
>> Note: The above command was cobbled together by a lot of scouring the
>> internet and trial and error. So I wouldn't be surprised if it's wrong
>> in various ways.
>> 
> 
> 
> Hi Andrew,
> I do not think it is a v4l2 problem. theoraenc plugins by default drops
> frames when the bitrate is not enough.
> For a quick test why don't you increase your bitrate to say 5000 (just for
> a test of one file) and see if it still drops the frames. 5Mbps is waay to
> much for a 320x240 video sequence and hence if it was the encoder dropping
> it because bitrate wasn't enough you know you have found the problem.
> eg.
> gst-launch oggmux name=mux ! filesink location=vid.ogv v4l2src
> device=/dev/video1 ! videorate !
> video/x-raw-yuv,width=320,height=240,framerate=25/1 ! ffmpegcolorspace !
> queue ! theoraenc bitrate=5000 ! queue ! mux. alsasrc buffer-time=100000
> device=hw:1,1 ! audio/x-raw-int,channels=1,rate=119466 ! audioconvert !
> queue ! vorbisenc ! mux.
> 
> 
> The solution is to set the property "drop-frames" to  false in theoraenc]
> gst-launch oggmux name=mux ! filesink location=vid.ogv v4l2src
> device=/dev/video1 ! videorate !
> video/x-raw-yuv,width=320,height=240,framerate=25/1 ! ffmpegcolorspace !
> queue ! theoraenc bitrate=800 *drop-frames=0* ! queue ! mux. alsasrc
> buffer-time=100000 device=hw:1,1 ! audio/x-raw-int,channels=1,rate=119466 !
> audioconvert ! queue ! vorbisenc ! mux.
> 
> This will reduce quality at the high motion frames but not drop them all
> together.
> To get best possible quality at that rate, I suggest you first capture as a
> YUV and then encode it using two passes. However it might not be an option
> if you do not have the disk space etc or for other reasons in which case
> the above should work.
> 
> 
> 
>> 
>> Any idea's would be appreciated.
>> 
>> Cheers,
>> Andrew
>> 
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111226/f0390ffb/attachment.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 26 Dec 2011 09:07:06 -0300
> From: Thiago Sousa Santos <thiago.sousa.santos at collabora.com>
> Subject: RE: Playing different songs on different channels
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID: <1324901226.2641.2.camel at blacksheep>
> Content-Type: text/plain; charset="UTF-8"
> 
> On Mon, 2011-12-26 at 04:00 +0000, PragyaRai wrote:
>> hi thiago,
>> i am struggling with the pipeline syntax .can u please tell me the correct syntax because its throwing so many errors.
>>> It says audioconvert cant be linked to interleave.
>> 
> 
> Are you doing this in gst-launch? Or are you coding it?
> 
> Please paste you gst-launch line or a sample code reproducing the issue.
> Also paste the full error.
> 
> --
> Thiago
> 
>> 
>> 
>> ________________________________________
>> From: gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org [gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org] on behalf of Thiago Sousa Santos [thiago.sousa.santos at collabora.com]
>> Sent: Friday, December 23, 2011 9:31 PM
>> To: gstreamer-devel at lists.freedesktop.org
>> Subject: RE: Playing different songs on different channels
>> 
>> On Fri, 2011-12-23 at 09:17 +0000, PragyaRai wrote:
>>> hi Thiago,
>>>             Thanx foe your reply.i was expecting Interleave as in plugin to be used.But i tried it in my pipeline and getting lots of errors. I am new to gstreamer so can you please help me with the correct pipeline structure.
>>> 
>>> I have test1.mp3 and test2.mp3 which i need to play seperately on left and right earplugs.
>> 
>> What pipeline are you using and what errors are you getting?
>> 
>> --
>> Thiago
>> 
>>> 
>>> hope to get a reply soon
>>> Warm regards
>>> 
>>> 
>>> ________________________________________
>>> From: gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org [gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org] on behalf of Thiago Sousa Santos [thiago.sousa.santos at collabora.com]
>>> Sent: Friday, December 23, 2011 3:44 AM
>>> To: Discussion of the development of and with GStreamer
>>> Subject: Re: Playing different songs on different channels
>>> 
>>> On Wed, 2011-12-21 at 11:03 +0000, PragyaRai wrote:
>>>> how to play one song in left earphone and one song in right earphone
>>>> through gstreamer ?
>>>> is there any plugin for this?
>>> 
>>> You can do that by interleaving the 2 audios into a single stream and
>>> playing it as usual.
>>> 
>>> Use something like:
>>> 
>>> uridecodebin ! audioconvert ! audioresample ! capsfilter
>>> caps="audio/x-raw-int, channels=1" ! ...
>>> 
>>> to convert a multiple channel input into a single channel.
>>> 
>>> Then link 2 branches like that into a interleave element.
>>> You should have something like this:
>>> 
>>> uridecodebin ! audioconvert ! audioresample ! capsfilter
>>> caps="audio/x-raw-int, channels=1" ! queue ! ileave. uridecodebin !
>>> audioconvert ! audioresample ! capsfilter caps="audio/x-raw-int,
>>> channels=1" ! queue ! ileave. interleave name=ileave ! queue !
>>> audioconvert ! autoaudiosink
>>> 
>>> Hope this helps.
>>> 
>>> PS.: please add a subject to your emails
>>> 
>>> --
>>> Thiago
>>> 
>>>> 
>>>> 
>>>> 
>>>> Larsen & Toubro Limited
>>>> 
>>>> www.larsentoubro.com
>>>> 
>>>> This Email may contain confidential or privileged information for the
>>>> intended recipient (s) If you are not the intended recipient, please
>>>> do not use or disseminate the information, notify the sender and
>>>> delete it from your system.
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> gstreamer-devel at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>> 
>>> 
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>> 
>>> 
>>> Larsen & Toubro Limited
>>> 
>>> www.larsentoubro.com
>>> 
>>> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> 
>> 
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> 
>> 
>> Larsen & Toubro Limited
>> 
>> www.larsentoubro.com
>> 
>> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 26 Dec 2011 04:36:06 -0800
> From: mateen maldar <mateen.maldar at gmail.com>
> Subject: ide for gstreamer development on linux
> To: gstreamer-devel at lists.freedesktop.org
> Message-ID:
> 	<CAMaLdFObBFDE0ALcbTD-Mn2p3SXQpzUOiC=dJ+43iapSyDpMNg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> HI All,
> 
> i'm a newbie in gstreamer, just started this week. Wanted to know which is
> the best ide for gstreamer development and debuuging the plugins of
> gstreamer.
> 
> Regards,
> Mateen Maldar
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111226/b17cf752/attachment.htm>
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 26 Dec 2011 08:53:42 -0500
> From: Sean McNamara <smcnam at gmail.com>
> Subject: Re: ide for gstreamer development on linux
> To: Discussion of the development of and with GStreamer
> 	<gstreamer-devel at lists.freedesktop.org>
> Message-ID:
> 	<CAPAActeCS5VOxHXWsM7S=6tD=Qx7WPJFT+EGEo8P7+x12iSDNg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Mon, Dec 26, 2011 at 7:36 AM, mateen maldar <mateen.maldar at gmail.com> wrote:
>> HI All,
>> 
>> i'm a newbie in gstreamer, just started this week. Wanted to know which is
>> the best ide for gstreamer development and debuuging the plugins of
>> gstreamer.
> 
> Depends on what language you're writing in, mainly. If you're after
> very good (and fast) code completion, you'll probably have to go with
> an IDE that focuses on the language you're writing in. I've found that
> most code completion only works extremely well for one language per
> IDE; not sure why that is, but probably something to do with the core
> developers' biases, heh.
> 
> Keep in mind the traditional argument of "there is no such thing as
> 'best'" applies here: when it comes right down to it, you're looking
> for specific features in the IDE, and if they aren't there, you won't
> consider it "best". So everyone's opinion differs.
> 
> I would make a case for Anjuta being possibly the best IDE for any
> program or library written using GLib/GObject (and GStreamer programs
> necessarily are included in that), but I'm sure someone else
> disagrees. Here's why *I* like Anjuta, but not everyone will find
> these features valuable (or might find some other feature in a
> different IDE to be even more valuable).... so just take this as one
> guy's opinion:
> 
> * Supports most, if not all of the languages that have bindings for
> the GNOME platform.
> * Saves you hours of work by automatically creating configure.ac and
> Makefile.am for you, and updates them organically as you grow your
> program, tracking dependencies, targets, and data. This is
> extraordinarily useful: you almost have to use autotools if you're
> going to link against the GNOME platform, because autotools will tell
> you where your dependencies are, and where to install your program.
> And since the rest of GNOME uses it, you pretty much have to use it,
> too. If you're just writing one Python script, you could write some
> hand-made install script that bypasses configure for use on platforms
> that don't support autotools well (e.g. Windows). I would advise to
> use autotools whenever you can, though.
> * Just to underscore the previous bullet: You can have Anjuta generate
> perfectly-good autotools infrastructure for you without knowing a
> thing about autotools. Autotools takes hours and hours to fully learn
> and master if you're writing the files by hand. To me this just isn't
> worth the investment in time, especially when Anjuta exists and works
> so well. And to forego autotools is just begging to run into path
> discovery problems with your hand-rolled scripts (e.g. installing your
> binaries in the wrong place, or looking in the wrong directories for
> the headers or libs for your dependencies).
> * Supports emacs and vi modelines, so you don't have to click around
> in settings to find the IDE options to make your edits consistent with
> the rest of the file you're editing.
> 
> Those are the most important features *for me*, though I suppose Vala
> support helps too. My advice is, instead of thinking about what
> someone else thinks is best, just try a bunch of IDEs until you find
> one that works well for you. It's easy to find lists of IDEs, so go
> try them; many/most of them are free/open source so you don't even
> have to sign up to some website to download it. Look in your favorite
> Linux distro's package manager for starters.
> 
> HTH,
> 
> Sean
> 
>> 
>> Regards,
>> Mateen Maldar
>> 
>> 
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> 
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Mon, 26 Dec 2011 14:22:03 +0000
> From: PragyaRai <Pragya.Rai at lnties.com>
> Subject: RE: Playing different songs on different channels
> To: Discussion of the development of and with GStreamer
> 	<gstreamer-devel at lists.freedesktop.org>
> Message-ID:
> 	<B8E2F78EE42A8540AFF5B183C9E5093D7D51B7 at POCITMSEXMB03.LntUniverse.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Thank you  for your reply.
> I am using gst-launch for this in command line.This is the error I am getting
> 
> pragya at pragya:~$ gst-launch interleave name=i ! alsasink filesrc location=/home/pragya/Desktop/FORCE/song.mp3 ! decodebin ! audioconvert ! audio/x-raw-int,channels=1 ! i.sink0  filesrc location=/home/pragya/Desktop/FORCE/test.mp3 ! decodebin ! audioconvert ! audio/x-raw-int,channels=1 ! i.sink1
> 
> WARNING: erroneous pipeline: could not link audioconvert0 to i
> 
> pragya at pragya:~$
> 
> ________________________________________
> From: gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org [gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org] on behalf of Thiago Sousa Santos [thiago.sousa.santos at collabora.com]
> Sent: Friday, December 23, 2011 9:31 PM
> To: gstreamer-devel at lists.freedesktop.org
> Subject: RE: Playing different songs on different channels
> 
> On Fri, 2011-12-23 at 09:17 +0000, PragyaRai wrote:
>> hi Thiago,
>>             Thanx foe your reply.i was expecting Interleave as in plugin to be used.But i tried it in my pipeline and getting lots of errors. I am new to gstreamer so can you please help me with the correct pipeline structure.
>> 
>> I have test1.mp3 and test2.mp3 which i need to play seperately on left and right earplugs.
> 
> What pipeline are you using and what errors are you getting?
> 
> --
> Thiago
> 
>> 
>> hope to get a reply soon
>> Warm regards
>> 
>> 
>> ________________________________________
>> From: gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org [gstreamer-devel-bounces+pragya.rai=lnties.com at lists.freedesktop.org] on behalf of Thiago Sousa Santos [thiago.sousa.santos at collabora.com]
>> Sent: Friday, December 23, 2011 3:44 AM
>> To: Discussion of the development of and with GStreamer
>> Subject: Re: Playing different songs on different channels
>> 
>> On Wed, 2011-12-21 at 11:03 +0000, PragyaRai wrote:
>>> how to play one song in left earphone and one song in right earphone
>>> through gstreamer ?
>>> is there any plugin for this?
>> 
>> You can do that by interleaving the 2 audios into a single stream and
>> playing it as usual.
>> 
>> Use something like:
>> 
>> uridecodebin ! audioconvert ! audioresample ! capsfilter
>> caps="audio/x-raw-int, channels=1" ! ...
>> 
>> to convert a multiple channel input into a single channel.
>> 
>> Then link 2 branches like that into a interleave element.
>> You should have something like this:
>> 
>> uridecodebin ! audioconvert ! audioresample ! capsfilter
>> caps="audio/x-raw-int, channels=1" ! queue ! ileave. uridecodebin !
>> audioconvert ! audioresample ! capsfilter caps="audio/x-raw-int,
>> channels=1" ! queue ! ileave. interleave name=ileave ! queue !
>> audioconvert ! autoaudiosink
>> 
>> Hope this helps.
>> 
>> PS.: please add a subject to your emails
>> 
>> --
>> Thiago
>> 
>>> 
>>> 
>>> 
>>> Larsen & Toubro Limited
>>> 
>>> www.larsentoubro.com
>>> 
>>> This Email may contain confidential or privileged information for the
>>> intended recipient (s) If you are not the intended recipient, please
>>> do not use or disseminate the information, notify the sender and
>>> delete it from your system.
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> 
>> 
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> 
>> 
>> Larsen & Toubro Limited
>> 
>> www.larsentoubro.com
>> 
>> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> Larsen & Toubro Limited
> 
> www.larsentoubro.com
> 
> This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.
> 
> 
> ------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> End of gstreamer-devel Digest, Vol 11, Issue 57
> ***********************************************



More information about the gstreamer-devel mailing list