VideoHelp Forum




Results 1 to 9 of 9
  1. Member
    Join Date
    Apr 2009
    Location
    Norwich, United Kingdom
    Search Comp PM
    Hello everyone,

    I have often trawled this forum to find answers to my ffmpegx problems and usually find a solution, but I've hit a problem that I can't solve. I will try to give a complete account of what I've done so far.

    I am trying to convert a quicktime .mov to .flv. I had a 'no such file or directory' problem, which I corrected by changing the script in flvtool2 to the path: /usr/bin/ruby as described in a related thread.

    However I still seem to have a metadata problem, because each time I try to create the .flv, the progress bar in ffmpegX Progress seems to get stuck at 96 or 97%... I have left ffmpegX churning the same flv out for over 8 hours with no joy - it is clearly stuck.

    If I hit cancel at this point I am left with an .flv file that plays (on wimpy flv and swf&flv player) but with scroll bar that jumps to the end and won't let me scan up and down the time line - so it looks like a metadata issue but I can't figure out what the problem is!

    This is the info I get after canceling the progress on one of the attempts that hung at 96% is:

    Encoding started on Wed Apr 29 17:15:19 BST 2009
    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/amynicholson/Desktop/Art For All Lecture pt 1':
    Duration: 00:08:43.8, start: 0.000000, bitrate: 30340 kb/s
    Stream #0.0(eng), 25.00 fps(r): Video: dvvideo, yuv420p, 720x576
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
    Output #0, flv, to '/Users/amynicholson/Desktop/TOM'S STUFF/ART FOR ALL/part 1-2(usr:bin reset).flv':
    Stream #0.0, 25.00 fps(c): Video: flv, yuv420p, 320x240, q=2-15, 940 kb/s
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    bench: utime=130.324s
    video:19892kB audio:8186kB global headers:0kB muxing overhead 1.844882%
    /usr/bin/ruby: Interrupt

    ...obviously says interrupt because the conversion never completed, doesn't seem to provide many clues as to what the problem is.

    I recently had to re-install ffmpegX, taking the following steps:

    - installed binaries menplayer and mencoder
    - installed flvtool2 following guidelines on ffmpegx.com...as far as I could tell installation was successful...I have checked and confirmed that flv2 is located in /usr/bin folder.

    I am a bit stumped - am I missing something obvious? Have I failed to install flvtool2 correctly? Is the /usr/bin still pointing to the wrong place?? I even deleted and re-installed flvtool2 in terminal, following the instructions and I am sure as can be that I followed the instructions exactly and did it right.

    This job is kicking my ass and is a couple of days late now - I am sure I am missing something dumb and obvious - any help very very much appreciated!

    Thanks,

    Tom.

  2. Member
    Join Date
    Apr 2009
    Location
    Norwich, United Kingdom
    Search Comp PM
    Ah, I just tried a different .MOV, the conversion completd but it came up with all this rubbish in the log:

    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Encoding started on Thu Apr 30 23:37:11 BST 2009
    Mac OSX universal build for ffmpegX
    libavutil version: 49.0.0
    libavcodec version: 51.9.0
    libavformat version: 50.4.0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/BUTTERDRIVE/Art For All Lecture pt 2':
    Duration: 00:18:33.2, start: 0.000000, bitrate: 15418 kb/s
    Stream #0.0(eng), 25.00 fps(r): Video: dvvideo, yuv420p, 720x576
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, stereo, 1536 kb/s
    Output #0, flv, to '/Users/amynicholson/Desktop/ART FOR ALL/:Volumes:BUTTERDRIVE:Art For All Lecture pt 2-2(decode wirth qt).flv':
    Stream #0.0, 25.00 fps(c): Video: flv, yuv420p, 320x240, q=2-15, pass 1, 940 kb/s
    Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    AC EOB marker is absent pos=64
    AC EOB marker is absent pos=70
    AC EOB marker is absent pos=64
    AC EOB marker is absent pos=68
    AC EOB marker is absent pos=83
    AC EOB marker is absent pos=65
    AC EOB marker is absent pos=67
    AC EOB marker is absent pos=64
    AC EOB marker is absent pos=64
    AC EOB marker is absent pos=64

    ... and many more lines of AX EOB marker is absent.

    No evidence of FLVtool2 doing it's thing, and the file jumps to the end on the player again.

    Please, if anybody has any ideas on what I'm doing wrong I am desperate to fix this.

    Many thanks,

    Tom.

  3. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by ThomasAlbert
    bench: utime=130.324s
    video:19892kB audio:8186kB global headers:0kB muxing overhead 1.844882%
    The video and audio were converted completely.

    Originally Posted by ThomasAlbert
    /usr/bin/ruby: Interrupt
    The interrupt is you canceling the process.

    Time to check if flvtool2 is in working condition.
    In the Terminal, type:
    Code:
    /usr/bin/flvtool2 -H
    This should list ~43 lines of the built-in Help-page. If it doesn't, then something is wrong with flvtool2.

  4. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by ThomasAlbert
    AC EOB marker is absent pos=...
    Perhaps your source file has dependencies. Try 'flattening' your file (Save as self-contained movie) in QuickTime Pro.

  5. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/TOM'S STUFF/ART FOR ALL/part 1-2(usr:bin reset).flv'
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/ART FOR ALL/:Volumes:BUTTERDRIVE:Art For All Lecture pt 2-2(decode wirth qt).flv'
    Try keeping the path clean of special characters, to make sure none of the binaries trip over such characters. Avoid the "'" (TOM'S STUFF), "/" (usr/bin reset) (/Volumes/BUTTERDRIVE/Art...) and ":" in folder names.

  6. Member
    Join Date
    Apr 2009
    Location
    Norwich, United Kingdom
    Search Comp PM
    Hi Case, thanks for getting back to me.


    Ok I did /usr/bin/flvtool2 -H in TERMINAL and got the following:


    Last login: Fri May 1 12:53:06 on ttyp1
    Welcome to Darwin!
    nathan-langtons-computer-3:~ nathan$ /usr/bin/flvtool2 -H
    FLVTool2 1.0.6
    Copyright (c) 2005-2007 Norman Timmler (inlet media e.K., Hamburg, Germany)
    Get the latest version from http://www.inlet-media.de/flvtool2
    This program is published under the BSD license.

    Usage: flvtool2 [-ACDPUVaciklnoprstvx]... [-key:value]... in-path|stdin [out-path|stdout]

    If out-path is omitted, in-path will be overwritten.
    In-path can be a single file, or a directory. If in-path is a directory,
    out-path has to be likewise, or can be omitted. Directory recursion
    is controlled by the -r switch. You can use stdin and stdout keywords
    as in- and out-path for piping or redirecting.

    Chain commands like that: -UP (updates FLV file than prints out meta data)

    Commands:
    -A Adds tags from -t tags-file
    -C Cuts file using -i inpoint and -o outpoint
    -D Debugs file (writes a lot to stdout)
    -H Helpscreen will be shown
    -P Prints out meta data to stdout
    -U Updates FLV with an onMetaTag event

    Switches:
    -a Collapse space between cutted regions
    -c Compatibility mode calculates some onMetaTag values different
    -key:value Key-value-pair for onMetaData tag (overwrites generated values)
    -i timestamp Inpoint for cut command in miliseconds
    -k Keyframe mode slides onCuePoint(navigation) tags added by the
    add command to nearest keyframe position
    -l Logs FLV stream reading to stream.log in current directory
    -n Number of tag to debug
    -o timestamp Outpoint for cut command in miliseconds
    -p Preserve mode only updates FLVs that have not been processed
    before
    -r Recursion for directory processing
    -s Simulation mode never writes FLV data to out-path
    -t path Tagfile (MetaTags written in XML)
    -v Verbose mode
    -x XML mode instead of YAML mode

    REPORT BUGS at http://projects.inlet-media.de/flvtool2
    Powered by Riva VX, http://rivavx.com
    nathan-langtons-computer-3:~ nathan$


    ...looks exactly as it should compared to the example you gave.

    I also checked if Ruby was in the right place and got:

    Last login: Fri May 1 14:19:12 on ttyp1
    Welcome to Darwin!
    nathan-langtons-computer-3:~ nathan$ /usr/bin/ruby -h
    Usage: /usr/bin/ruby [switches] [--] [programfile] [arguments]
    -0[octal] specify record separator (\0, if no argument)
    -a autosplit mode with -n or -p (splits $_ into $F)
    -c check syntax only
    -Cdirectory cd to directory, before executing your script
    -d set debugging flags (set $DEBUG to true)
    -e 'command' one line of script. Several -e's allowed. Omit [programfile]
    -Fpattern split() pattern for autosplit (-a)
    -i[extension] edit ARGV files in place (make backup if extension supplied)
    -Idirectory specify $LOAD_PATH directory (may be used more than once)
    -Kkcode specifies KANJI (Japanese) code-set
    -l enable line ending processing
    -n assume 'while gets(); ... end' loop around your script
    -p assume loop like -n but print line also like sed
    -rlibrary require the library, before executing your script
    -s enable some switch parsing for switches after script name
    -S look for the script using PATH environment variable
    -T[level] turn on tainting checks
    -v print version number, then turn on verbose mode
    -w turn warnings on for your script
    -W[level] set warning level; 0=silence, 1=medium, 2=verbose (default)
    -x[directory] strip off text before #!ruby line and perhaps cd to directory
    --copyright print the copyright
    --version print the version
    nathan-langtons-computer-3:~ nathan$


    ...so far as I can tell everything's where it should be?

    Utterly mystified!

    Tom.

  7. Member
    Join Date
    Apr 2009
    Location
    Norwich, United Kingdom
    Search Comp PM
    Case said:

    Originally Posted by Case
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/TOM'S STUFF/ART FOR ALL/part 1-2(usr:bin reset).flv'
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/ART FOR ALL/:Volumes:BUTTERDRIVE:Art For All Lecture pt 2-2(decode wirth qt).flv'
    Try keeping the path clean of special characters, to make sure none of the binaries trip over such characters. Avoid the "'" (TOM'S STUFF), "/" (usr/bin reset) (/Volumes/BUTTERDRIVE/Art...) and ":" in folder names.

    Yeah I know that's not really best practice, I was making notes on the file name so I'd know what I'd tried different, I got the same results with simple, clean file names.


    Tom.

  8. Member
    Join Date
    Apr 2009
    Location
    Norwich, United Kingdom
    Search Comp PM
    Originally Posted by Case
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/TOM'S STUFF/ART FOR ALL/part 1-2(usr:bin reset).flv'
    Originally Posted by ThomasAlbert
    Output #0, flv, to '/Users/amynicholson/Desktop/ART FOR ALL/:Volumes:BUTTERDRIVE:Art For All Lecture pt 2-2(decode wirth qt).flv'
    Try keeping the path clean of special characters, to make sure none of the binaries trip over such characters. Avoid the "'" (TOM'S STUFF), "/" (usr/bin reset) (/Volumes/BUTTERDRIVE/Art...) and ":" in folder names.

    I can give this a try (don't actually have QT Pro but probably time I picked it up).


    However I am exporting the .MOVs from Final Cut Pro (ffmpegx says they are dvvideo), I have also tried exporting one as an AVI and converting that...still not Metadata appears.

    Tom.

  9. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    Originally Posted by ThomasAlbert
    ...looks exactly as it should compared to the example you gave.
    I also checked if Ruby was in the right place
    ...so far as I can tell everything's where it should be?
    Utterly mystified!
    Yes, it looks right to me, too.
    You could try flvtool2 from the command line, just to see if it makes a difference.
    Code:
    /usr/bin/flvtool2 -UP /Users/username/Desktop/flashfile.flv
    (replace "username" and "flashfile.flv" with actual names, or use drag-and-drop to let Mac OS fill in the path in the Terminal.)




Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!