Quantcast FFmpeg: Piping from Mencoder to FFmpeg - digitalFAQ.com Forums [Archives]
  #1  
12-08-2003, 04:45 PM
ak47 ak47 is offline
Free Member
 
Join Date: Oct 2002
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
Later ak
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-10-2003, 07:48 AM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
  #3  
12-10-2003, 09:56 AM
ak47 ak47 is offline
Free Member
 
Join Date: Oct 2002
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
Later ak
Reply With Quote
  #4  
12-23-2003, 11:07 PM
wonderbread wonderbread is offline
Free Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
12-27-2003, 12:20 PM
el_mozo el_mozo is offline
Free Member
 
Join Date: Sep 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6  
12-28-2003, 05:48 PM
zivel zivel is offline
Free Member
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
12-29-2003, 08:13 AM
el_mozo el_mozo is offline
Free Member
 
Join Date: Sep 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
01-04-2004, 04:35 PM
tetra tetra is offline
Free Member
 
Join Date: Oct 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
MEncoder/ffmpeg maurus Convertir y Codificar Video (Español) 16 04-16-2004 04:46 AM
FFMPEG: Do ffvfw and mencoder/ffmpeg give the same results? Razorblade2000 Video Encoding and Conversion 4 02-06-2004 04:23 PM
FFMPEG: Mencoder/ffmpeg aspect-ratio tetra Video Encoding and Conversion 10 12-11-2003 11:19 AM
FFMPEG: Another try: mencoder Razorblade2000 Video Encoding and Conversion 14 12-03-2003 01:49 PM
FFMPEG: New script encode2kvcd using ffmpeg/mencoder el_mozo Video Encoding and Conversion 4 11-27-2003 07:25 AM

Thread Tools



 
All times are GMT -5. The time now is 11:24 PM  —  vBulletin © Jelsoft Enterprises Ltd