Simple ogg pipeline doesn't work

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

Simple ogg pipeline doesn't work

Andrés González
Hi,

I have written a simple python program that is supossed to copy an ogg
file, using gstreamer. The original ogg file weights 662135 bytes, but
the program doesn't write more than 46365. Why does this program get
blocked, any idea?

Thanks,
Andrés

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

copyogg.py (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Simple ogg pipeline doesn't work

Luciana Fujii Pontello-2
On Tue, 2010-12-07 at 18:54 +0100, Andres Gonzalez wrote:
> Hi,
>
> I have written a simple python program that is supossed to copy an ogg
> file, using gstreamer. The original ogg file weights 662135 bytes, but
> the program doesn't write more than 46365. Why does this program get
> blocked, any idea?

Sorry for the late reply.

Just an idea. Have you checked how are your queues? I have seen locks
while using a source with both audio and video and a mux joining them in
the same pipeline. My guess is that one queue is full and the other
empty and the mux won't get buffer from one queue until it gets buffers
from the other queue. You can try using multiqueue, or just increasing
the limit of your queues and see if it changes anything.

Regards,

Luciana Fujii


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple ogg pipeline doesn't work

Andrés González
On 16/12/10 03:45, Luciana Fujii Pontello wrote:

> On Tue, 2010-12-07 at 18:54 +0100, Andres Gonzalez wrote:
>> Hi,
>>
>> I have written a simple python program that is supossed to copy an ogg
>> file, using gstreamer. The original ogg file weights 662135 bytes, but
>> the program doesn't write more than 46365. Why does this program get
>> blocked, any idea?
> Sorry for the late reply.
>
> Just an idea. Have you checked how are your queues? I have seen locks
> while using a source with both audio and video and a mux joining them in
> the same pipeline. My guess is that one queue is full and the other
> empty and the mux won't get buffer from one queue until it gets buffers
> from the other queue. You can try using multiqueue, or just increasing
> the limit of your queues and see if it changes anything.
>
> Regards,
>
> Luciana Fujii
>
Many thanks for the idea. I'll work on it and post if I make any progress.

Cheers,
Andrés


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Simple ogg pipeline doesn't work

Andrés González
On 16/12/10 10:00, Andres Gonzalez wrote:

> On 16/12/10 03:45, Luciana Fujii Pontello wrote:
>> On Tue, 2010-12-07 at 18:54 +0100, Andres Gonzalez wrote:
>>> Hi,
>>>
>>> I have written a simple python program that is supossed to copy an ogg
>>> file, using gstreamer. The original ogg file weights 662135 bytes, but
>>> the program doesn't write more than 46365. Why does this program get
>>> blocked, any idea?
>> Sorry for the late reply.
>>
>> Just an idea. Have you checked how are your queues? I have seen locks
>> while using a source with both audio and video and a mux joining them in
>> the same pipeline. My guess is that one queue is full and the other
>> empty and the mux won't get buffer from one queue until it gets buffers
>> from the other queue. You can try using multiqueue, or just increasing
>> the limit of your queues and see if it changes anything.
>>
>> Regards,
>>
>> Luciana Fujii
>>
Great idea, the multiqueue worked! The resulting OGG file is correct
(playable by VLC, no problem). The only remarkable fact (but not very
important) is that this file's pages are smaller in average; which makes
the file a little bit bigger than the original (672070 vs. 662135 bytes).

Many thanks,
Andrés

P.D.: program attached

--
Andrés González

T: 91 458 51 19 (ext:165)
M: 620 344 358
HI-IBERIA INGENIERIA Y PROYECTOS
C/ Bolivia 5 - Madrid - 28016


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

copyogg-multiq.py (3K) Download Attachment