[x265] using mp4 input files

Michael Lackner michael.lackner at unileoben.ac.at
Fri Mar 22 10:55:38 CET 2019


ffmpeg is not the x265 command line. It's ffmpeg, using x265 as a library. When using x265
as a command line program directly, you would usually decode the input with ffmpeg, and
then pipe it to x265, likely as Y4M.

So, maybe like this:

$ ffmpeg -r 24 -i input.mp4 -f yuv4mpegpipe -pix_fmt yuv420p -r 24 - 2>/dev/null | x265 -
--y4m output.h265

When using only ffmpeg (linked against x265), the syntax would be something like this:

$ ffmpeg -i input.mp4 -c:v libx265 output.h265

On 3/22/19 9:16 AM, Sunil Kumar wrote:
> Hi,
> Can I use mp4 or other input video files in x265 command line. As mention
> in doc input files could be yuv or y4m.
> I was using:
> 
> ffmpeg -i input.mp4 -vcdec libx265 output.hevc
> 
> Please let me know is it a valid command.
> 
> Regards,
> 
> Sunil

-- 
Michael Lackner
Lehrstuhl für Informationstechnologie (CiT)
Montanuniversität Leoben
Tel.: +43 3842 402 1505 | Mail: michael.lackner at unileoben.ac.at
Fax.: +43 3842 402 1502 | Web: http://institute.unileoben.ac.at/infotech


More information about the x265-devel mailing list