digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: Piping from Mencoder to FFmpeg (http://www.digitalfaq.com/archives/encode/7073-ffmpeg-piping-mencoder.html)

ak47 12-08-2003 04:45 PM

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.

russiansexpat 12-10-2003 07:48 AM

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.

ak47 12-10-2003 09:56 AM

Quote:

mencoder can do constant quality
Yes, I know that but the fact is I want to use decimal point values so i can get a better size. Mencoder is only has integral values, FFmpeg can use decimal.

wonderbread 12-23-2003 11:07 PM

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

el_mozo 12-27-2003 12:20 PM

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.

zivel 12-28-2003 05:48 PM

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

el_mozo 12-29-2003 08:13 AM

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

tetra 01-04-2004 04:35 PM

Re: nice!
 
Quote:

Originally Posted by zivel
...
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.

This can be fixed by modifying -vf parameter in the script at the expand portion, like this:
Code:

-vf ...expand=$WIDTH_OUT:$HEIGHT_OUT...
to this
Code:

-vf ...expand=$WIDTH_OUT:$HEIGHT_OUT:-1:-1:1...
/tetra


All times are GMT -5. The time now is 07:48 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.