2

Im using ffmpeg to segment video. and use the following cammand

ffmpeg -i "data/raw_data/000000005.avi" -vf fps=X -f segment -segment_time 0.0333333333333333 -force_key_frames expr:gte(t,n_forced*0.0333333333333333) -reset_timestamps 1 -segment_time_delta 1.0 -c:a copy "test_break_up/audios/%d.wav"

The command above works on windows but when i run that command on ubuntu its throwing bash: syntax error near unexpected token('`

Can anyone give me guidance on what to do. Thanks

3
  • file name dont need quotes on ubuntu Commented May 10, 2018 at 3:08
  • @RobertRowntree on any case and the file name has space on it. It needs to have qoutes right? Commented May 10, 2018 at 3:15
  • yes .. spaces or special chars Commented May 10, 2018 at 9:09

1 Answer 1

3

I solve the my error by enclosing qoutes to expr:gte(t,n_forced*0.0333333333333333)

The updated command now works both on windows and ubuntu

ffmpeg -i "data/raw_data/000000005.avi" -vf fps=X -f segment -segment_time 0.0333333333333333 -force_key_frames "expr:gte(t,n_forced*0.0333333333333333)" -reset_timestamps 1 -segment_time_delta 1.0 -c:a copy "test_break_up/audios/%d.wav"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.