user1170540
user1170540

Reputation:

ffmpeg webm to lossless h264 or avi

I have a webm video file with VP9 60fps video and Opus 160kbps audio.
I need to convert it into Cineform for editing in Adobe however, I know there might not be a direct route available so I want to convert it to a lossless format before I can convert it to cineform with Adobe Media Encoder.

There is no specific requirement for this intermediate file and anything except uncompressed YUV 4:2:0 is acceptable. I tried ffmpeg to lossless h264 and it seems to work fine however I cannot get lossless audio output from ffmpeg. I tried PCM 16-bit but the output file is buggy!

Can someone please suggest a command line that outputs webm to lossless avi (huffyuv/lagarth/UtVideo/or_anything_else) with PCM audio or seperate commands for lossless h264 and lossless PCM (since mp4 container does not supports PCM).

Upvotes: 2

Views: 3850

Answers (1)

Matt McManis
Matt McManis

Reputation: 4695

This will convert lossless video (x264) / audio (wav) in a .mov.

ffmpeg -i video.webm -y -vcodec libx264 -qp 0 -pix_fmt yuv420p -acodec pcm_s32le video.mov

Upvotes: 2

Related Questions