Piping from Mencoder to FFmpeg
Is there a page or someone can type a way to pipe Mecoder frameserving so I can encode it with FFmpeg(like Deniose3d, scale+resize(to add boarders) , and chroma and luma blur/filters). I want to do this instead of just using Mencoder, so I can use CQ mode, and Mencoder only uses integral values, plus ffmpeg is faster and I see better quilty.
|
mencoder can do constant quality, I put it into my script and performace is better thanks to you.
As I know, ffmpeg source (cvs) moved into mplayer/mencoder project, and they use the same libavcodec library originated from ffmpeg. However, mencoder has more options in command line than ffmpeg and can accept devices, http and stream input; ffmpeg input is a file, it is how current ffmpeg is build. Also, ffmpeg multiplexes video and audio into mpg that is not acceptable by vcdimager due to packet size. |
Quote:
|
You can use mplayer to frameserve. Create a fifo called stream.yuv, run mplayer with -vo yuv4mpeg. ffmpeg should be able to encode from stream.yuv
|
Well, I just did a script for frameserving with mplayer and encoding with ffmpeg. Build mplayer and ffmpeg from cvs and point the variables FFMPEG and MPLAYER to the binaries.
Play with QUANTUM value to get the desired file size. Download it from here: encode2kvcd-improved-ffmpeg Cheers. |
nice!
i can't really test the custom matrix stuff because i don't have cvs ffmpg but i tried just standard built-in matrix and subtitles. the problem with the subtitles before was that they were being "layered" - if you do encoding with mencoder only directly into mpeg it seems that not real black borders are added to the movie but just some blank space and when a line of subtitles that is being displayed in the lower black bar is supposed to disapper (be overwritten by black) it just stays there and new subtitles are being written on top of it. now with mplayer serving frames to ffmpeg it works ok because ffmpeg receives real black stuff and nto just some blank space as mencoder does internally. thanx
|
Yes, that's exactly the problem. Do the mencoder developers know about this problem? Maybe it would be a good idea to send them a bug report...
Cheers |
Re: nice!
Quote:
Code:
-vf ...expand=$WIDTH_OUT:$HEIGHT_OUT... Code:
-vf ...expand=$WIDTH_OUT:$HEIGHT_OUT:-1:-1:1... |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.