Dmitry Borisov wrote:
I will work on this request. Can you please post a code which crashes
pymedia for me to reproduce ?
You can either use vplayer.py or the following short snippet:
######################################################
import sys
import pymedia.muxer as muxer
import pymedia.video.vcodec as vcodec
def demux(filename):
demuxer = muxer.Demuxer("avi")
f = file(filename, "rb")
buffer = f.read(400000)
data = demuxer.parse(buffer)
# Extract the video stream(s)
v = filter(lambda x: x["type"]==muxer.CODEC_TYPE_VIDEO,
demuxer.streams)
if len(v)==0:
print "No video stream found"
return
vstream = v[0]
# Create a decoder (this line crashes on DV streams)
decoder = vcodec.Decoder(vstream)
# Take the video file name from the command line...
filename = sys.argv[1]
demux(filename)
######################################################
Here's a short test DV video:
http://i31www.ira.uka.de/~baas/testvideos/testanim_dv.avi (~3.5MB)
- Matthias -
----- Original Message ----- From: "Matthias Baas" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, January 15, 2006 6:14 AM
Subject: [Pymedia-users] Creating a DV Decoder crashes pymedia
Hi,
when I try to create a Decoder object for a DV stream (id 25) pymedia
(v1.3.5.0) crashes.
From what I've read in the forum DV streams are not yet supported and
will only be added in v1.4, so I don't consider it a bug that I cannot
decode a DV stream. But pymedia shouldn't crash when someone tries to
do so. It would be nice if pymedia would instead raise an appropriate
exception.
Again, if a test video is required I can make a short DV video available.
Cheers,
- Matthias -
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users