Problem Inspecting

22 views
Skip to first unread message

tomrossi7

unread,
Aug 25, 2009, 5:47:24 PM8/25/09
to RVideo
Can someone help me with this issue? I can't get RVideo to inspect a
file anymore? The raw response, looks okay, but RVideo thinks it is
invalid?

>> y RVideo::Inspector.new(:file => 'test.mp3')
--- !ruby/object:RVideo::Inspector
ffmpeg_binary: ffmpeg
filename: test.mp3
full_filename: /home/deploy/test.mp3
path: /home/deploy
raw_response: |
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
--mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --
enable-libamr-wb --enable-libdirac --enable-libfaac --enable-libfaad --
enable-libmp3lame --enable-libtheora --enable-libx264 --enable-gpl --
enable-nonfree --enable-postproc --enable-pthreads --enable-shared --
enable-swscale --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jul 24 2009 01:48:17, gcc: 4.1.2 20080704 (Red Hat
4.1.2-44)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp3':
Duration: 00:00:07.16, start: 0.000000, bitrate: 64 kb/s
Stream #0.0(und): Audio: alac, 8000 Hz, mono, s16
At least one output file must be specified

unknown_format: true

Seth Thomas Rasmussen

unread,
Aug 25, 2009, 6:30:19 PM8/25/09
to rvi...@googlegroups.com

It looks maybe like the inspector just needs some modifications to the
regexp which parses the Input line.

:\

Le sigh..

tomrossi7

unread,
Aug 25, 2009, 6:36:36 PM8/25/09
to RVideo
On my server, RVideo reports unknown format. On my Macbook, it works
just fine. BUT the output is almost identical:

Macbook:
--- !ruby/object:RVideo::Inspector
ffmpeg_binary: ffmpeg
filename: test.mp3
full_filename: /Users/tom/Desktop/test.mp3
path: /Users/tom/Desktop
raw_metadata: |-
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tom/Desktop/
test.mp3':
Duration: 00:00:07.16, start: 0.000000, bitrate: 64 kb/s
Stream #0.0(und): Audio: alac, 8000 Hz, mono, s16
raw_response: |
FFmpeg version SVN-r17619, Copyright (c) 2000-2009 Fabrice Bellard,
et al.
configuration: --enable-libmp3lame --enable-shared --disable-mmx
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.19. 0 / 52.19. 0
libavformat 52.30. 0 / 52.30. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Feb 26 2009 13:30:54, gcc: 4.0.1 (Apple Inc. build 5484)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/tom/Desktop/
test.mp3':
Duration: 00:00:07.16, start: 0.000000, bitrate: 64 kb/s
Stream #0.0(und): Audio: alac, 8000 Hz, mono, s16
At least one output file must be specified


Server side:
--- !ruby/object:RVideo::Inspector
ffmpeg_binary: ffmpeg
filename: test.mp3
full_filename: /home/deploy/test.mp3
path: /home/deploy
raw_response: |
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib
--mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --
enable-libamr-wb --enable-libdirac --enable-libfaac --enable-libfaad --
enable-libmp3lame --enable-libtheora --enable-libx264 --enable-gpl --
enable-nonfree --enable-postproc --enable-pthreads --enable-shared --
enable-swscale --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jul 24 2009 01:48:17, gcc: 4.1.2 20080704 (Red Hat
4.1.2-44)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/deploy/test.mp3':
Duration: 00:00:07.16, start: 0.000000, bitrate: 64 kb/s
Stream #0.0(und): Audio: alac, 8000 Hz, mono, s16
At least one output file must be specified

unknown_format: true
=> nil


On Aug 25, 6:30 pm, Seth Thomas Rasmussen <sethrasmus...@gmail.com>
wrote:

Dave Rice

unread,
Aug 25, 2009, 6:54:35 PM8/25/09
to rvi...@googlegroups.com, RVideo
Try installing the same version of ffmpeg on the server, that might
get you working.

tomrossi7

unread,
Aug 25, 2009, 7:20:21 PM8/25/09
to RVideo
Dave,

Yeah, it may, but I'm not sure I want to take that on. Is anyone
keeping up the source for RVideo?

Thanks,
Tom

Dave Rice

unread,
Aug 25, 2009, 7:42:37 PM8/25/09
to rvi...@googlegroups.com
You should check out github, there are some forks of rvideo that have seen some development recently. 

Here's a good place to start. 


I'd try and see if one of the more recent versions works for you.
---
David Rice
+44 (0)75 905 38303





tomrossi7

unread,
Aug 25, 2009, 7:46:00 PM8/25/09
to RVideo
I found the problem! I'm not sure how this is possible, but line 53
of Inspector.rb was different on my Mac from my CentOS server.

CORRECT:
metadata = /(Input \#.*)\n.+\n\Z/m.match(@raw_response)

INCORRECT:
metadata = /(Input \#.*)\nMust/m.match(@raw_response)

That fixed everything and I hope it helps someone else.

Thanks,
Tom

Okay, I'm not sure how this is possible,
Reply all
Reply to author
Forward
0 new messages