Problem to access inspector attributes

11 views
Skip to first unread message

Humberto

unread,
Dec 22, 2008, 11:27:21 AM12/22/08
to RVideo
Hello:

When reading video files with Rvideo the inspector object seems to be
created correctly, but I can't access its attributes

I installed ffmpeg from svn this is my version "SVN-r16240" and I have
installed Rvideo gem version 0.9.3.

It was working well before I made an update of ffmpeg, so I think
maybe it is a version incompatibility problem.

Here is and example of what is happening:

irb(main):008:0> video = RVideo::Inspector.new(:file => '/var/tmp/
videos/video.m4v')
=> #<RVideo::Inspector:0xb68652fc @full_filename="/var/tmp/videos/
video.m4v", @filename="video.m4v", @ffmpeg_binary="ffmpeg",
@raw_response="FFmpeg version SVN-r16240, Copyright (c) 2000-2008
Fabrice Bellard, et al.\n configuration: --enable-libmp3lame --enable-
libvorbis --disable-mmx --enable-shared --enable-gpl --disable-debug --
enable-libfaad --enable-libfaac --enable-pthreads --enable-libx264\n
libavutil 49.12. 0 / 49.12. 0\n libavcodec 52. 7. 0 / 52. 7.
0\n libavformat 52.23. 1 / 52.23. 1\n libavdevice 52. 1. 0 / 52.
1. 0\n built on Dec 19 2008 19:26:17, gcc: 4.1.1 20070105 (Red Hat
4.1.1-52)\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/tmp/videos/
Mexcaltitlan.m4v':\n Duration: 00:00:04.27, start: 0.000000, bitrate:
1645 kb/s\n Stream #0.0(eng): Video: h264, yuv420p, 640x360, 29.97
tb(r)\n Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16\nAt
least one output file must be specified\n", @path="/var/tmp/videos",
@unknown_format=true>
irb(main):009:0> video.valid?
=> false
irb(main):010:0> video.duration
=> nil

Any ideas about could be happening?

Best regards

Humberto Perez Espinoza

unread,
Dec 22, 2008, 8:53:40 PM12/22/08
to rvi...@googlegroups.com
Hello I solved this problem downgrading  my ffmpeg version, however I still have some problems wich I also think are related to ffmpeg version.

what ffmpeg revision was RVideo 0.9.3 tested on?

> Date: Mon, 22 Dec 2008 08:27:21 -0800
> Subject: Problem to access inspector attributes
> From: pes...@hotmail.com
> To: rvi...@googlegroups.com

predat

unread,
Jan 19, 2009, 3:05:45 AM1/19/09
to RVideo
Hi Humberto,

You have to change inspector.rb ligne 53:
metadata = /(Input \#.*)\nMust/m.match(@raw_response)

with

metadata = /(Input \#.*)\nAt/m.match(@raw_response)
Reply all
Reply to author
Forward
0 new messages