Audio glitch when playing on Qemu

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Audio glitch when playing on Qemu

ak.ashwini
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

Sudarshan Bisht
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

ak.ashwini
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

Sudarshan Bisht
Is this file has audio and video both ? And you want to play both of them ? 

In my opinion you should use playbin or playbin2.
gst-launch playbin2 uri=file:///bin/multipsdemo.ts 


On Mon, Apr 25, 2011 at 11:21 AM, Ashwini Sharma <[hidden email]> wrote:
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

ak.ashwini
Yes, I want to play both. But as per my requirement i can't use the playbin or playbin2.
 
But i have seen that even with playbin2 i get the glitch in Audio.
 


 
On Mon, Apr 25, 2011 at 11:32 AM, sudarshan bisht <[hidden email]> wrote:
Is this file has audio and video both ? And you want to play both of them ? 

In my opinion you should use playbin or playbin2.
gst-launch playbin2 uri=file:///bin/multipsdemo.ts 


On Mon, Apr 25, 2011 at 11:21 AM, Ashwini Sharma <[hidden email]> wrote:
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

Sudarshan Bisht
May I know what is the video resolution and fps ? are you running it on Linux machine or on some embedded device/hardware ?  


On Mon, Apr 25, 2011 at 11:59 AM, Ashwini Sharma <[hidden email]> wrote:
Yes, I want to play both. But as per my requirement i can't use the playbin or playbin2.
 
But i have seen that even with playbin2 i get the glitch in Audio.
 


 
On Mon, Apr 25, 2011 at 11:32 AM, sudarshan bisht <[hidden email]> wrote:
Is this file has audio and video both ? And you want to play both of them ? 

In my opinion you should use playbin or playbin2.
gst-launch playbin2 uri=file:///bin/multipsdemo.ts 


On Mon, Apr 25, 2011 at 11:21 AM, Ashwini Sharma <[hidden email]> wrote:
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

ak.ashwini
I am having a video of 544x576 at fps=25.
 
I am running it on Qemu.

On Mon, Apr 25, 2011 at 12:09 PM, sudarshan bisht <[hidden email]> wrote:
May I know what is the video resolution and fps ? are you running it on Linux machine or on some embedded device/hardware ?  


On Mon, Apr 25, 2011 at 11:59 AM, Ashwini Sharma <[hidden email]> wrote:
Yes, I want to play both. But as per my requirement i can't use the playbin or playbin2.
 
But i have seen that even with playbin2 i get the glitch in Audio.
 


 
On Mon, Apr 25, 2011 at 11:32 AM, sudarshan bisht <[hidden email]> wrote:
Is this file has audio and video both ? And you want to play both of them ? 

In my opinion you should use playbin or playbin2.
gst-launch playbin2 uri=file:///bin/multipsdemo.ts 


On Mon, Apr 25, 2011 at 11:21 AM, Ashwini Sharma <[hidden email]> wrote:
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Audio glitch when playing on Qemu

Sudarshan Bisht
OK, I am not much familiar to Qemu, but what is the emulated processor speed in your case ? 

It may be a performance issue , If possible you can try running top command when you play your file and see the CPU load. If CPU load is very high then there is a very little chance to do something except reducing the video resolution or fps to some optimum values and then running it.



On Mon, Apr 25, 2011 at 12:15 PM, Ashwini Sharma <[hidden email]> wrote:
I am having a video of 544x576 at fps=25.
 
I am running it on Qemu.

On Mon, Apr 25, 2011 at 12:09 PM, sudarshan bisht <[hidden email]> wrote:
May I know what is the video resolution and fps ? are you running it on Linux machine or on some embedded device/hardware ?  


On Mon, Apr 25, 2011 at 11:59 AM, Ashwini Sharma <[hidden email]> wrote:
Yes, I want to play both. But as per my requirement i can't use the playbin or playbin2.
 
But i have seen that even with playbin2 i get the glitch in Audio.
 


 
On Mon, Apr 25, 2011 at 11:32 AM, sudarshan bisht <[hidden email]> wrote:
Is this file has audio and video both ? And you want to play both of them ? 

In my opinion you should use playbin or playbin2.
gst-launch playbin2 uri=file:///bin/multipsdemo.ts 


On Mon, Apr 25, 2011 at 11:21 AM, Ashwini Sharma <[hidden email]> wrote:
Hi,
 
This is ho my pipeline looks like at qemu:
"gst-launch -v filesrc location=/bin/multipsdemo.ts ! mpegtsparse ! mpegtsdemux  name=demux ! queue max-size-buffers=5000 ! decodebin ! queue max-size-buffers=5000 ! audioconvert ! queue max-size-buffers=5000 ! alsasink sync=false"

 

Can you suggest some modifications which can help.
 
rgds,
Ashwini


On Mon, Apr 25, 2011 at 11:15 AM, sudarshan bisht <[hidden email]> wrote:
Are you using queue element in your pipeline at right places ?

On Thu, Apr 21, 2011 at 10:10 AM, Ashwini Sharma <[hidden email]> wrote:
Hi All,
 
    I am using gstreamer on qemu (0.14.0) to play Audio/video.
I have two cases, when I play a MP3 file, the sound output is fine (continuousand smooth), but when I play a TS or Video file the sound output is having glitches, even if i set the "sync=false" for both the audio and video sink.
 
When i checked the output sample rate by putting printf in the AudioSink write function, i see that the output sample rate is fine , i.e. equal to the input sample rate of the audio stream.
 
Can someone pls help me on this.
 
rgds,
Ashwini

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel