Hello,
I am able to play any file with this command line : $ gst-launch-1.0 filesrc location=flyLOGORB1_noir.jpg ! rawaudioparse ! audioconvert ! audioresample ! autoaudiosink But, is it possible to do the same with uridecodebin instead of filesrc/rawaudioparse ? ++ Jack _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Are you trying to play a jpg file? I don't get it.
Your pipeline assumes that your audio file contains raw audio. Is that actually the case? uridecodebin can be used to decode numerous source types. In your case I don't see a reason to decode anything. Anyway you can use it by passing the file path as uri=file://path-to-file. Btw, have your considered using playbin? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi !
Le 14/11/2020 à 16:41, omer.tal a écrit : > Are you trying to play a jpg file? I don't get it. Yes thisisthe idea, jpg, tiff, etc. Any file. > Your pipeline assumes that your audio file contains raw audio. Is that > actually the case? In my example pipeline, it contains raw data from a jpg file. But it could be from a text file or something else... > uridecodebin can be used to decode numerous source types. In your case I > don't see a reason to decode anything. I need to play any file as raw audio data to generate noise. If you take any path of a file on your hard drive and replace in my pipeline the location propperty you will hear some noise. So, is-it possible to do the same with uridecodebin instead filesrc ? Perhaps, there is a property or something to be done to achieve the same goal ? ++ Jack > Anyway you can use it by passing the file path as uri=file://path-to-file. > > Btw, have your considered using playbin? > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I'm not an expert in uridecodebin, but from the tests I've just made it
doesn't appear to be possible. I think that the main reason is that uridecodebin is used for *decoding*, and you're trying to play raw audio. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
> I'm not an expert in uridecodebin, but from the tests I've > just made it doesn't appear to be possible That's right. Decodebin needs to be able to "typefind" a stream, and it will then try and plug the right parsers/decoders for the format the file is in. You want to do the exact opposite, so decodebin is not really suitable for this use case, and I'm not sure what it would buy you here either. Cheers Tim _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello Jack
I don’t know your exact use case, but if you are looking for a way to generate noise you may want to take a look at audiotestsrc. It as a few noise models you might find useful: wave : Oscillator waveform flags: readable, writable, controllable Enum "GstAudioTestSrcWave" Default: 0, "sine" (0): sine - Sine (1): square - Square (2): saw - Saw (3): triangle - Triangle (4): silence - Silence (5): white-noise - White uniform noise (6): pink-noise - Pink noise (7): sine-table - Sine table (8): ticks - Periodic Ticks (9): gaussian-noise - White Gaussian noise (10): red-noise - Red (brownian) noise (11): blue-noise - Blue noise (12): violet-noise - Violet noise Michael
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Michael ! Yes, thanks for this reminder ! I was just hoping to play any file with uridecodebin (with a specific property) like filesrc. But it is not possible. The idea was to generate a "moving noise" in the time... ++
Jack
Le 16/11/2020 à 20:28, Michael Gruner a
écrit :
Hello Jack _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |