Hi, I'm a new forum member and quite a newbie to all things video. Also, although I'm not afraid of using the command line, I have little experience with unix beyond the basics, and none with ruby.
Early this morning I installed ffmpegX and am quite pleased to have successfully converted a VOB file to FLV. However, I have been spending the bulk of the day trying to resolve one problem with the metadata. I've learned a bunch from other posts on this forum but have not found the solution I need.
The resulting .flv file runs just fine within an swf player embedded in a web page. Unlike problems described in other posts in this forum, there was no problem with playback whatsoever. However, there is no progress bar -- there is a grey bar, but no black indicator showing how much has played; the elapsed and remaining time both continue to display 00:00 throughout playback; and there is no way to click or drag to a new time point; the only playback controls are start/stop/pause.
Some possibly relevant facts:
• Other .flv files provided to me by somebody else, converted from the same original DVD but on a different platform using different software, display a working progress bar properly, so the problem is not with the player or with the code I use to control it. It's the .flv file that is the problem.
• I installed flvtool2 (v. 1.0.6) exactly according to spec, and more than once. Interestingly, though, I've seen indication in other posts that there should have been some feedback after each command. However, I received none. After pressing return after each command, I just got a new command line prompt. (The sudo command did generate a request for password, though. And by the way, I am the only user of the computer and have administrator privileges.) There were neither error messages nor confirmation. So I could not be sure it was ever installed, though I've double and triple checked the procedure and can find nothing I neglected. The facts below suggest that it was not installed, but I don't know why. The download was successful, and I executed the commands from within that directory. (I placed the directory inside /Applications. Any problem with that?)
• One post by user Case, who has posted frequently on this topic, suggests that after successful installation, I should find flvtool2 in /usr/bin. I do not find it there, or anywhere, but can't discern why not. (And when I've tried to execute flvtool2 directly from the command line, as described on some other websites, I've gotten "Command not found.")
• Several other posts by Case describe how a script inside ffmpegX.app points to ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby, whereas ruby might actually be located at /usr/bin/ruby. This was exactly the situation on my system (OS 10.4.11, same as Case, I believe), so I modified the script file exactly as described. Unfortunately this did not change my result. I then re-executed the flvtool2 installation steps, and rebooted. Still no help.
• After converting my file, the very last line in the ffmpegX Process Information window reads:
/bin/sh: line 1: /Applications/ffmpegX.app//Contents/Resources/flvtool2: Permission denied
This is of course the script file containing the (now modified) path to ruby. (I didn't notice whether this happened before I modified the script file, but it is the result afterward.) What does this refer to? Permission to execute the script? Permission to execute ruby? Or what?
So! Can anybody help me? What am I doing wrong? Or is this some strange bug, and if so, is there a workaround? I have been pulling my hair out over this! I feel I've done a pretty good job of sleuthing today, for a beginner, but with nothing to show for it.
Thanks!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
Results 1 to 19 of 19
Thread
-
-
First of all, thanks for your detailed description, as well as trying to solve this by using previous posts.
It does seem like everything is fine, except for flvtool2.
Originally Posted by Sharon M
Try it once more, while keeping the "flvtool2-1.0.6" folder on the desktop. I'll try to be detailed:
Download FLVtool2 from http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz and decompress the package into a folder. Download a fresh copy to be safe.
flvtool2-1.0.6.tgz should be 26,953 bytes
flvtool2-1.0.6.tar should be 153,600 bytes
flvtool2-1.0.6 (the folder) should be 109,783 bytes, and should have 26 items (including subfolders).
Open Terminal.app
Type: cd [plus one space character] [drop the folder flvtool2-1.0.6 here] [press return key]
You should see the prompt change from the 'home' working directory (~) to include the path to the new working directory:Code:Computer-name:~ username$ cd /Users/username/Desktop/flvtool2-1.0.6/ Computer-name:~/Desktop/flvtool2-1.0.6 username$
This should give feedback in the Terminal like:Code:---> bin <--- bin ---> lib ---> lib/flv <--- lib/flv ---> lib/flvtool2 <--- lib/flvtool2 <--- lib
This should give feedback like:Code:---> bin updating shebang: flvtool2 <--- bin ---> lib ---> lib/flv <--- lib/flv ---> lib/flvtool2 <--- lib/flvtool2 <--- lib
This will prompt you to enter your user account password.
After that it should give feedback like:Code:rm -f InstalledFiles ---> bin mkdir -p /usr/bin install flvtool2 /usr/bin/ <--- bin ---> lib mkdir -p /usr/lib/ruby/site_ruby/1.8 install flv.rb /usr/lib/ruby/site_ruby/1.8/ install flvtool2.rb /usr/lib/ruby/site_ruby/1.8/ install mixml.rb /usr/lib/ruby/site_ruby/1.8/ install miyaml.rb /usr/lib/ruby/site_ruby/1.8/ ---> lib/flv mkdir -p /usr/lib/ruby/site_ruby/1.8/flv install amf_string_buffer.rb /usr/lib/ruby/site_ruby/1.8/flv install audio_tag.rb /usr/lib/ruby/site_ruby/1.8/flv install core_extensions.rb /usr/lib/ruby/site_ruby/1.8/flv install meta_tag.rb /usr/lib/ruby/site_ruby/1.8/flv install stream.rb /usr/lib/ruby/site_ruby/1.8/flv install tag.rb /usr/lib/ruby/site_ruby/1.8/flv install video_tag.rb /usr/lib/ruby/site_ruby/1.8/flv <--- lib/flv ---> lib/flvtool2 mkdir -p /usr/lib/ruby/site_ruby/1.8/flvtool2 install base.rb /usr/lib/ruby/site_ruby/1.8/flvtool2 install version.rb /usr/lib/ruby/site_ruby/1.8/flvtool2 <--- lib/flvtool2 <--- lib
Code:No such file or directory
Code:Resource temporarily unavailable
Please tell us where your procedure differs/starts to differ.
-
Thank you, Case. Astounding! Success, combined with failure, combined with success. As described below in detail. (In addition to getting help with the last little failure, I hope all this detail will help somebody else down the road...)
I placed the directory inside /Applications. Any problem with that?
Try it once more, while keeping the "flvtool2-1.0.6" folder on the desktop.
Okay, so first, I moved the existing flvtool2-1.0.6 to the trash, and then I followed your procedure. Here is the result:
flvtool2-1.0.6.tgz should be 26,953 bytes
flvtool2-1.0.6.tar should be 153,600 bytes
flvtool2-1.0.6 (the folder) should be 109,783 bytes, and should have 26 items (including subfolders).
Performed the install. This time, I did get feedback, just as you describe. The location of the folder must somehow have been the key. (What a dumb little thing!)
After the install, the folder now has 27 instead of 26 items, with the addition of a file called "InstalledFiles" (a text file listing flvtool2 placed in /usr/bin, plus 13 other files all placed in /usr/lib/ruby/site_ruby/1.8 and folders therein). This did not happen on my previous installs.
I looked at /usr/bin and indeed, flvtool2 is there.
I ran ffmpegX again. Since I had not reinstalled that, it still contains the modified script.
Now here's the failure. I encoded another video. Unfortunately, I still got the "Permission denied" message at the end, and the resulting .flv file still does not contain metadata.
However, here is some more success. I tried running flvtool2 manually, from the command line, as I saw described on another website:
Code:flvtool2 -UP filepath/filename.flv
So, this just leaves me wondering why ffmpegX didn't invoke flvtool2 properly. I wonder if I'll have to always remember to run it manually? Restarting ffmpegX and even rebooting did not help. I can certainly live with this if necessary, so thanks a million, Case! But if you have thoughts on that last little issue, I'd love to hear them.
-
Originally Posted by Sharon M
Originally Posted by Sharon M
Originally Posted by Sharon M
Originally Posted by Sharon MCode:#! /usr/bin/ruby require 'flvtool2'
3/Check permissions on all files and folders involved. I'll try to get a list for comparison.
I have no idea how the permission could have gotten extra restrictions without explicitly doing so. But no doubt such a file or folder can be found and fixed.
-
Yep, the script file is correct. I think I already repaired permissions but now did it again for good measure, then ran ffmpegX again. Still permission denied.
Ah, okay, got it about the binaries. I think I'm finally clear on all this!
-
P.S. I've discovered a situation where I actually don't want ffmpegX to insert metadata: when joining two .flv files into one. Seems not to work to convert two files to .flv, add the metadata, and join them, but works fine if I convert each file to .flv, then join them (I did the joining in MPEG Streamclip), and only then use flvtool2 to add the metadata.
So, this was easy enough, ironically because I still have the problem that ffmpegX doesn't invoke flvtool2 automatically. But if I manage to get that problem solved and get ffmpegX adding metadata at the end of each conversion, is there any way to turn that feature off, on a case-by-case basis? I suppose I could temporarily change the name of flvtool2 in order to force it to fail, but it would be nice if there was something more elegant!
-
P.P.S. permissions on the flvtool2 script file are:
-rw-r--r--
And I notice that the permissions on the original version (I only modified a copy, changed the name of the original, and kept both) are:
-rwxr-xr-x
This must have happened when I modified the script, using TextEdit. What is the command to change permissions? (I'm sure I knew that once, a long time ago...) I feel sure this will fix the problem!
-
Whoops, I hadn't seen your latest post (wasn't notified, maybe I forgot to log in the previous time). But I had seen your earlier version, when it just said "chmod 755 filename", and I already knew the explanation. So, I just now finally had a chance to give it a try.
And YES, that solved it! Perfect! Thanks for all your help!
Sharon
-
Hi,
I just installed flvtool2 as described above letting the folder on the Desktop. Everything seemed to install ok.
but when trying to use it, I also got the error message flvtool2: permisson denied.
I read above that there could be a permission issue and I need to change chmod somewhere.
My question is : where ?
I don't understand what script to use. In my folder flvtool2, there are 26 files !!
fl2tool2.exy, flv.rb, flvtool2.rb, etc....I opened a few ones but I am not a code wizard..
Could you please help ?
thanks
-
Try running flvtool2 manually, from the command line:
Code:flvtool2 -UP filepath/filename.flv
If flvtool2 works from the command line, then you do not need the folder "flvtool2-1.0.6" anymore, and you may remove/delete this folder.
ffmpegX calls on flvtool2 by using a small Ruby script, which is (confusingly) called 'flvtool2' as well. You may find this script inside the ffmpegX application package: /Applications/ffmpegX.app/Contents/Resources/flvtool2 . This file should be executable: chmod 755.
-
Hi,
Thanks for your quick answer.
When I run the command line flvtool2 -UP filepath/filename.flv
I get the error message : flvtool2: permisson denied
Also I have ffmpegX in Application Folder but it looks like I only have the application, nothing like ffmpegX.app/contents
Did I miss something during ffmpegX installation ?
Thanks again
Lydia
-
In manual conversion
flvtool2 -UP filepath/filename.flv ....I used this command with wmv file. It never works with wmv files while with .flv file it gives proper feedback .
with .wmv file it gives feedback as
flvtool2 -UP /home/richie/public_html/video/115.wmv
ERROR: IO is not a FLV stream. Wrong signature.
ERROR: /usr/lib/ruby/site_ruby/1.8/flv/stream.rb:393:in `read_header'
ERROR: /usr/lib/ruby/site_ruby/1.8/flv/stream.rb:57:in `initialize'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:272:in `new'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:272:in `open_stream'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:238:in `process_files'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:225:in `each'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:225:in `process_files'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:44:in `execute!'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2.rb:168:in `execute!'
ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2.rb:228
ERROR: /usr/bin/flvtool2:2:in `require'
ERROR: /usr/bin/flvtool2:2
Does the above command 'flvtool2 -UP filepath/filename.flv' is applicable with only .flv files ?
-
Case,
Thanks for reply.
What should be problem in my case.
I have VPS 3 plan @ HostGator (CPU 1.13 GHZ, RAM 768 MB, Disk Space 30 GB, Bandwidth 500 GB)
Video less than 35-40 mins run successfully on my server but videos with big capacity and longer duration (greater than 45 min to 1 hr ) dont run successfully. As big video dont convert successfully.
As error log file I am getting following errors
Code:[libmp3lame @ 0xf385e0] lame: output buffer too small (buffer index: 9325, free bytes: 467) Audio encoding failed ERROR: failed to allocate memory ERROR: /usr/lib/ruby/site_ruby/1.8/flv/tag.rb:51:in `read' ERROR: /usr/lib/ruby/site_ruby/1.8/flv/tag.rb:51:in `initialize' ERROR: /usr/lib/ruby/site_ruby/1.8/flv/stream.rb:449:in `new' ERROR: /usr/lib/ruby/site_ruby/1.8/flv/stream.rb:449:in `read_tags' ERROR: /usr/lib/ruby/site_ruby/1.8/flv/stream.rb:58:in `initialize' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:272:in `new' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:272:in `open_stream' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:238:in `process_files' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:225:in `each' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:225:in `process_files' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2/base.rb:44:in `execute!' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2.rb:168:in `execute!' ERROR: /usr/lib/ruby/site_ruby/1.8/flvtool2.rb:228 ERROR: /usr/bin/flvtool2:2:in `require' ERROR: /usr/bin/flvtool2:2 Skipping file /home/richie/public_html/flvideo/121x.flv
Another feedback from error log file
Code:Input #0, asf, from '/home/richie/public_html/video/121.wmv': Metadata: WMFSDKVersion : 11.0.5721.5251 WMFSDKNeeded : 0.0.0.0000 IsVBR : 1 VBR Peak : 905 Buffer Average : 612 Duration: 01:08:44.28, start: 3.000000, bitrate: 193 kb/s Stream #0.0(eng): Audio: wmav2, 44100 Hz, 1 channels, s16, 48 kb/s Stream #0.1(eng): Video: wmv3, yuv420p, 1440x900, 1102 kb/s, 1k tbr, 1k tbn, 1k tbc [buffer @ 0x19082d00] w:1440 h:900 pixfmt:yuv420p [scale @ 0x1908e460] w:1440 h:900 fmt:yuv420p -> w:120 h:90 fmt:yuvj420p flags:0xa0000004 [wmv3 @ 0x19084d90] Extra data: 8 bits left, value: 0 Output #0, image2, to '/home/richie/public_html/tmp/thumbs/121/%08d.jpg': Metadata: WMFSDKVersion : 11.0.5721.5251 WMFSDKNeeded : 0.0.0.0000 IsVBR : 1 VBR Peak : 905 Buffer Average : 612 encoder : Lavf52.93.0 Stream #0.0(eng): Video: mjpeg, yuvj420p, 120x90, q=2-31, 200 kb/s, 90k tbn, 1k tbc Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding [buffer @ 0x19082d00] Buffering several frames is not supported. Please consume all available frames before adding a new one. Last message repeated 126 times frame= 2 fps= 0 q=6.2 Lsize= -0kB time=0.01 bitrate= -17.6kbits/s dup=4922 drop=0 video:5kB audio:0kB global headers:0kB muxing overhead -100.411600%
Similar Threads
-
FLV file wrong metadata using mencoder
By Threshold_ in forum Video ConversionReplies: 1Last Post: 10th Sep 2011, 04:24 -
How do I get metadata, especially duration, into a converted FLV?
By benburch in forum ffmpegX general discussionReplies: 2Last Post: 24th Oct 2008, 09:20 -
Suggestion/question: FLV MetaData Updater
By squadjot in forum ProgrammingReplies: 1Last Post: 17th Jun 2008, 12:04 -
FLV videos have with flvtool still no metadata
By maltePORN in forum ffmpegX general discussionReplies: 2Last Post: 27th Mar 2008, 13:16 -
FLV Metadata Problem
By RobinDeanDotCom in forum ffmpegX general discussionReplies: 9Last Post: 4th Dec 2007, 09:51