Author Topic: Video Encoder Settings  (Read 10115 times)

rsay

  • Newbie
  • *
  • Posts: 16
    • View Profile
Video Encoder Settings
« Reply #15 on: March 11, 2006, 09:47:40 am »
I have been using ffmpeg with good results. I got the recipe from the ubuntu forums:

ffmpeg -i input_file.avi -f mp4 -vcodec mpeg4 -maxrate 1000 -b 700 -qmin 3 -qmax 5 -bufsize 4096 -g 300 -acodec aac -ab 192 -s 320x240 -aspect 4:3 output_file.mov

I playback on my 3100 with:

mplayer -vm -ao oss -vo bvdd:rotate=-1 output_file.mov

There is also a gui for ffmpeg specifically for this purpose called VIVE available on sourceforge.

Here is the link to the forum discussion: Video encoding for ipod

Here is the link to the vive project on sourceforge:VIVE
c3100
pdaxrom 1.1.0beta1
linksys wcf12

ostense

  • Newbie
  • *
  • Posts: 41
    • View Profile
Video Encoder Settings
« Reply #16 on: March 14, 2006, 07:25:21 am »
Quote
Quote
I no longer have problems with 320x240, 512bit, 30 frames/sec and Kino/Cacko 1.23 on my c860 using:

Code: [Select]
mencoder $1 -oac mp3lame -lameopts cbr:br=128:mode=0 -vf pp=lb,scale=320x240,rotate=1 -ovc lavc -lavcopts -ofps 30000/1001 vcodec=mpeg4:vhq:v4mv:vbitrate=512:vpass=1 -oac copy -sws 2 -o output.avi

mencoder $1 -oac mp3lame -lameopts cbr:br=128:mode=0 -vf pp=lb,scale=320x240,rotate=1 -ovc lavc -lavcopts -ofps 30000/1001 vcodec=mpeg4:vhq:v4mv:vbitrate=512:vpass=2 -oac copy -sws 2 -o output.avi
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116143\"][{POST_SNAPBACK}][/a][/div]
I've modified the lines so that they'll (almost) run on my 'doze box:

Code: [Select]
c:\progra~1\mplayer\mencoder %1 -oac mp3lame -lameopts cbr:br=128:mode=0 -vf pp=lb,scale=320:240,rotate=1 -ovc lavc -lavcopts -ofps 30000/1001 vcodec=mpeg4:vhq:v4mv:vbitrate=512:vpass=1 -oac copy -sws 2 -o %2

c:\progra~1\mplayer\mencoder %1 -oac mp3lame -lameopts cbr:br=128:mode=0 -vf pp=lb,scale=320:240,rotate=1 -ovc lavc -lavcopts -ofps 30000/1001 vcodec=mpeg4:vhq:v4mv:vbitrate=512:vpass=2 -oac copy -sws 2 -o %2
But I can't get past this error:

Code: [Select]
F:\zvids>encode-movie infile.avi avi outfile.avi
MEncoder 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Northwood (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
Option lavcopts: Unknown suboption -ofps

Exiting... (error parsing cmdline)
I don't see 'frameno.avi' anywhere on the command line, and I've used the '-ofps' options in other attempts. Any ideas anyone? thks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116753\"][{POST_SNAPBACK}][/a][/div]

Hi !
frameno.avi is made automatic by the pass 1 and automatic taken as input to the pass 2 run so if the pass 2 do not find it something went wrong in the pass 1.

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
Video Encoder Settings
« Reply #17 on: March 14, 2006, 11:14:51 am »
Quote
Thanks for the update. I've been playing & tweaking & reading man pages & docs over the last week & finally came up with this. I's the same as yours except that my 5600 didn't seem to like mencoder doing the pre-rotate, so I took that out & I removed the extra '-oac copy' option, which I wasn't sure why you had it in there although it doesn't seem to break anything.

...
Is your audio sync issue solved?

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
Video Encoder Settings
« Reply #18 on: March 15, 2006, 01:13:58 pm »
Quote
Quote
Thanks for the update. I've been playing & tweaking & reading man pages & docs over the last week & finally came up with this. I's the same as yours except that my 5600 didn't seem to like mencoder doing the pre-rotate, so I took that out & I removed the extra '-oac copy' option, which I wasn't sure why you had it in there although it doesn't seem to break anything.
Is your audio sync issue solved?[div align=\"right\"][a href=\"index.php?act=findpost&pid=118529\"][{POST_SNAPBACK}][/a][/div]
It seems to be (with the above changes). As well, don't try yo encode more than one video at a time (at least not under windows). You'll eventually get an error about not being able to open the video driver. As long as you encode one at a time, all goes ok.

I'm also eventually going to try ffmpeg as suggested earlier to see if that's any easier/reliable. As time permits, of course.

Thanks all for the help.
GROG!

DaddyGeek

  • Newbie
  • *
  • Posts: 17
    • View Profile
Video Encoder Settings
« Reply #19 on: March 16, 2006, 01:53:05 am »
One option I don't see people mentioning is the "-framedrop" for mplayer.

I find I add this to any video playback for my C3000 OR 5500 with mplayer and I tend to get quite decent results and no drastically noticeable disruption of viewability.

This seems to help the audio which seems to be the dog in most of the different formats I have tried.

I have to admit I use Windows (shhhh) to do the encoding, but I run DivX (or xVid) with a rate of 256 or 512 for the encoding with MP3 audio at approx 192 kbps and the playback seems quite good.