VideoHelp Forum




Results 1 to 7 of 7
  1. There appears to be a bug in ffmpegX. If mplex is invoked by ffmpegX one gets a "syntax error near unexpected token `;' "

    I think the problem is that bash regards two consecutive semicolons as an error.

    ie
    [macjerry:~]$ printf foo ; ; printf bar
    bash: syntax error near unexpected token `;'
    [macjerry:~]$

    If your default shell is tcsh the above will work

    ie
    [macjerry:~]$ tcsh
    [macjerry:~] jerry% printf foo ; ; printf bar
    foobar[macjerry:~] jerry% exit

    As you can see the extra semicolon has no effect in this case.

    ffmpegX will need a patch to fix the problem.

    One possible workaround that I have used is to simple edit out the extra semicolon and re execute the command in the terminal window.

    I really don't feel like changing my default shell to tcsh...

    Jerry

  2. Whoops, I forgot to post an example. The following is lifted from the topic "SVCD to VCD, Possible?"

    [MAChine:~] critchie% pbpaste | sh
    sh: line 1: syntax error near unexpected token `;'
    sh: line 1: `/Applications/ffmpegX.app//Contents/Resources/ffmpeg -i -y -vn -f mp2 -acodec mp2 -ab 224 -ac 2 -map 0.0:0.0 .mp2; /Applications/ffmpegX.app//Contents/Resources/mplex -V -f 4 -S 9999 -M -O 0 -b 230 -o /Users/critchie/Desktop/Movies/Undercover\ Brother\ 1/AVSEQ02.MPG.mpg /Users/critchie/Desktop/Movies/Undercover\ Brother\ 1/AVSEQ02.MPG .mp2; ; printf "Processing complete!\a\n"'
    ^ the extra semicolon

    Jerry

  3. Originally Posted by Gray Fox
    There appears to be a bug in ffmpegX. If mplex is invoked by ffmpegX one gets a "syntax error near unexpected token `;' "
    Give me an example of settings which lead to this error.

  4. Originally Posted by major
    Originally Posted by Gray Fox
    There appears to be a bug in ffmpegX. If mplex is invoked by ffmpegX one gets a "syntax error near unexpected token `;' "
    Give me an example of settings which lead to this error.
    I got the same error as in the example above, don't have the streams anymore. Note there are two consecutive semi-colons in the previous example.

    When this happened to me I edited the command to remove one of the semicolons and run the command and everything worked.

    I think it is a shell related problem, you need to suppress the extra semicolon somehow.

    I think I wrote you about the problem a couple of weeks ago...

    --Jerry

  5. I don't get this error mysef, so in order to correct it, you must give me enough data and precise settings to make it repeatable, (ie. list of all checkboxes set, etc leading to a double semicolon).

  6. Whoops, my bad.

    I can get the error by "muxing" a m2v and mp2 stream in the "tools" tab *and* have the postprocess (split and author) checked *with only* the "keep elementary streams" checked in the Mpeg-1/2 post processing panel of the tools tab. ie none of the "author as" boxes checked.

    I guess I errored on the side of caution, I did not want the elementary streams deleted so I thought I could insure this by checking the "keep elementary streams" button and I thought I needed to check the postprocessing box inorder to have the program look at the Postprocessing panel.

    There is no problem if only the "mux selection" is ticked.

    Sorry for the missunderstanding.

    --Jerry

  7. I will add handling of this case in the app, thanks for reporting.




Similar Threads

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