Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wanted to execute the following command:

x264 --level 30 --profile baseline --bitrate 900 --keyint 30 -o test.mp4 video01.mp4 --vf resize:720,480

But I get following output(error)

raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `video01.mp4' via any method!

What I tried: - Adding resolution next to input file, but no luck - Tried changing --vf to --video-filter resize:

What I'm doing wrong? Is it possible to resize mp4 file like this? If the first error refers to input file how can i specify the resolution? I need this command working because I need to implement it in bash script and JAVA code afterwards. From the research I made, I might need avisynth, but there is no port for linux, there is?

If you have something better for me please help me. I'm running on 64bit Ubuntu 11.04, with all required(maybe) libs for ffmpeg and x264

share|improve this question
up vote 1 down vote accepted

Your output indicates that the input file is being decoded as RAW instead of using the proper libav, Avisynth, or ffms decoder. See the Ubuntu man page for more details. I believe the proper syntax should be:

x264 --level 30 --profile baseline --bitrate 900 --keyint 30 --vf resize:720,480 -o test.mp4 video01.mp4 

If you still run into errors, it's possible your x264 binary is outdated, or wasn't compiled with support for ffms. From the man page linked above:

Infile can be raw (in which case resolution is required), [...] or Avisynth if compiled with support (no). or libav* formats if compiled with lavf support (no) or ffms support (yes).

Finally, from this thread in regards to compiling x264 with ffms support, the latest x264 should be configurable with your package manager to find the ffms library.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.