+ Reply to Thread
Results 1 to 5 of 5

Thread: Syntax error

Thread
  1. Member
    Join Date: Mar 2009
    Location: Portugal
    Hi there!

    ffmpegX is working fine to convert video files. I'm using it on Mac OSX 10.4
    But... I'm trying to add a srt subtitle to an AVI movie, and when I try the preview I get a syntax error on line 1:

    > sh: -c: line 1: syntax error near unexpected token ´('

    I checked with VLC and Jubler and the .srt seems fine...

    Troubleshooting anyone?

    Thanks!
    Quote Quote  

  2. Member
    Join Date: Aug 2005
    Location: Palo Alto, California USA
    That can be a symptom of a filename/pathname with odd characters, but it's hard to say for sure what's causing this in your case. But that's the sort of thing I'd look for.
    Quote Quote  

  3. Member
    Join Date: Mar 2009
    Location: Portugal
    Ok here it goes. This is the error I get when trying to encode.

    /bin/sh: -c: line 3: syntax error near unexpected token `('
    /bin/sh: -c: line 3: `<textsub filename="/Volumes/ZECAMIGO/Akira Kurosawa's Dreams (Yume - 1990)/Akira Kurosawa's Dreams (Yume - 1990) CD 1.srt" characterset="ISO-8859-1" fontsize="24.0" font="Arial.ttf" horizontal-alignment="center" vertical-alignment="bottom" left-margin="60" right-margin="60" top-margin="20" bottom-margin="30" subtitle-fps="23.976" movie-fps="23.976" movie-width="720" movie-height="480"'

    It's a slightly different error when I'm just asking for a preview.

    Two questions:

    1. Could it be because it is on a USB disk MS-DOS formatted?
    2. Should I try to convert de AVI file first and only after add the subtitles?

    Thank you very much?
    Quote Quote  

  4. Member
    Join Date: Mar 2009
    Location: Portugal
    Ok. Solved.

    I simplified the name of the files and folders involved (no spaces, braces or apostrophes) and it worked.

    Thanks.
    Quote Quote  

  5. Member
    Join Date: Aug 2005
    Location: Palo Alto, California USA
    Glad to hear that you solved it. Although the Mac OS itself doesn't have a problem with these filenames, ffmpegx is built on unix software modules, most of which are intolerant of such characters. That's a not-infrequent source of frustration. Congratulations on figuring it out!
    Quote Quote  




Similar Threads

  1. "if" syntax error
    By njitram2000 in forum Authoring (DVD)
    Replies: 2
    Last Post: 8th Nov 2009, 11:30
  2. Useful FFmpeg Syntax Examples
    By Soopafresh in forum Video Conversion
    Replies: 9
    Last Post: 3rd Apr 2008, 04:45
  3. Syntax bug in SVCD2DVD
    By geek2330 in forum SVCD2DVD & VOB2MPG
    Replies: 3
    Last Post: 27th Nov 2007, 11:14
  4. syntax error .srt, how to fix this?
    By skyechester in forum ffmpegX general discussion
    Replies: 4
    Last Post: 5th Jul 2005, 19:52
  5. TMPGenc: "syntax error line 388" ???
    By t1germonk in forum Newbie / General discussions
    Replies: 1
    Last Post: 1st Aug 2004, 15:45
Slysofts AnyDVD HD removes DVD and Blu-ray encryption and region coding. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools