Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

librtmp and python

(http://stream-recorder.com/forum/showthread.php?t=11271)

Gontran 03-21-2012 08:47 AM

Re: librtmp and python


 
Quote:

Originally Posted by newtonelectron (Post 42300)
This script will fail misserably on linux in python 2 or 3.

I started work on something similar about a month ago and I'm surpirsed your script works.
I had to define custom ctype structure & union classes for my script, other wise it would complain about segmentation faults.
I am running linux though, so maybe windows doesn't care as much.

I didn't try at home on linux, but at work, I have no complains running my script on a linux vm (virtualbox, ubuntu) except a dns error returned by librtmp (no segmentation faults). Maybe a network error on my vm config. I will try tonight on my ubuntu laptop and will post my results.

Could you be more precise on the errors you got running my script? We can improve it alltogether.

Gontran 03-21-2012 08:49 AM

Re: librtmp and python


 
Quote:

Originally Posted by reumb (Post 42318)
gontran,i see your ip on 1 post or not?

I'm ready to answer to you but I don't understand your question :confused:

amishb 04-27-2012 09:11 AM

Re: librtmp and python


 
Quote:

Originally Posted by Gontran (Post 42324)
I didn't try at home on linux, but at work, I have no complains running my script on a linux vm (virtualbox, ubuntu) except a dns error returned by librtmp (no segmentation faults). Maybe a network error on my vm config. I will try tonight on my ubuntu laptop and will post my results.

Could you be more precise on the errors you got running my script? We can improve it alltogether.

Hey guys.

I too am also getting the DNS error. I'm running from windows too. Cant figure out what could be causing it. Any ideas? I did a bit of googleing and someone has the same problem when implementing librtmp with VB, and he forgot to initialise winsock. But I'm not really sure what the issue is here.

Thanks

amishb 04-27-2012 11:11 AM

Re: librtmp and python


 
Fixed it by inserting

Code:

import socket
:)

filippo.rosa 03-19-2014 04:57 AM

Re: librtmp and python


 
This project was definitively abandoned?
I refer to the issue of segmentation fault ...


All times are GMT -6. The time now is 10:18 PM.