Hi guys,
First, let me apologize if this isn't the right place for this since this is more like a gstreamer user issue than a devel one and also could be a gst python binding question than for here ;) I need to retrieve the videolength of a mythtv recorded nuv file with mpeg4 video and mp3 audio. I'm using the discoverer module in python to retrieve media info. I'm able to get other values correctly such as the media_type (shows video/x-nuv), width,height,etc however for videolength I get a -1. Am not sure what this means. Admittedly I'm not very good with gstreamer :) Could appreciate if someone points me in the right direction. Thanks, Jeetu ebrain.in | Beehive Computing Discover and run software from any device near you. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Thu, 2011-04-07 at 11:16 +0530, [hidden email] wrote:
Hi, > I need to retrieve the videolength of a mythtv recorded nuv file with > mpeg4 video and mp3 audio. I'm using the discoverer module in python > to retrieve media info. I'm able to get other values correctly such as > the media_type (shows video/x-nuv), width,height,etc however for > videolength I get a -1. Am not sure what this means. Admittedly I'm > not very good with gstreamer :) If it works with other files/file types, it's probably not your code. It looks like nuvdemux in gst-plugins-bad just doesn't extract/provide/estimate that information. I don't know if that's readily available or easy to do, but maybe you could file a bug in bugzilla, then someone will take a look at it. Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Tim,
Thanks so much for your response. I wasn't sure if this was a bug or some expected behaviour in this situation. It works for the avi file type but not for nuv, so I think I'll file in the bug and hope someone can figure this out. Other than gstreamer is there any other way I can get this information? ffprobe give me an estimation that is inaccurate probably since its using bitrate to do a calculation, a 5 minute clip shows up as 7.x mins. VLC and other players are able to show the right time so I'm guessing there must be a way. Thanks so much for your help. Bye for now On Thu, Apr 7, 2011 at 2:07 PM, Tim-Philipp Müller <[hidden email]> wrote: > On Thu, 2011-04-07 at 11:16 +0530, [hidden email] wrote: > > Hi, > >> I need to retrieve the videolength of a mythtv recorded nuv file with >> mpeg4 video and mp3 audio. I'm using the discoverer module in python >> to retrieve media info. I'm able to get other values correctly such as >> the media_type (shows video/x-nuv), width,height,etc however for >> videolength I get a -1. Am not sure what this means. Admittedly I'm >> not very good with gstreamer :) > > If it works with other files/file types, it's probably not your code. > > It looks like nuvdemux in gst-plugins-bad just doesn't > extract/provide/estimate that information. I don't know if that's > readily available or easy to do, but maybe you could file a bug in > bugzilla, then someone will take a look at it. > > Cheers > -Tim > > > _______________________________________________ > 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 |
Free forum by Nabble | Edit this page |