[MEncoder-users] live tv encoding with X264 and FAAC - audio problens

Roberto Hradec hradec at hradec.com
Tue Oct 2 22:01:04 CEST 2007


Sorry.. this is the second time I`m asking help here...

the fps 25000/1001 make my file look a bit smoother when playing than 
just 25 fps... but if thats a problem, I gonna go back to 25.

About the FAAC encoder... If I set br to 16 (no quality), I`m always 
getting 41kbps at the end of my encoding... what I need to do to get the 
16kbps I`m asking for?


this is the log for 60sec encoding... This log didn`t generate a sound 
problem file... but the log for the faulty ones actually dont have any 
more info than this one... no error or warning messages other than those 
messages in this one.


MEncoder dev-SVN-r24551-4.0.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm)  (Family: 6, Model: 8, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: Avermedia AVerTV GO 007 FM
 Tuner cap: STEREO LANG1 LANG2
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner  
read/write  streaming
 supported norms: 0 = PAL; 1 = PAL-BG; 2 = PAL-I; 3 = PAL-DK; 4 = NTSC; 
5 = SECAM; 6 = SECAM-DK; 7 = SECAM-L; 8 = SECAM-Lc; 9 = PAL-M; 10 = 
PAL-Nc; 11 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: BGR24
v4l2: current audio mode is : LANG1
Unable to set trigger: 1
Audio block size too low, setting to 8192!
[V] filefmt:9  fourcc:0x32315659  size:352x240  fps:24.98  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 1 ch, s16le, 512.0 kbit/100.00% (ratio: 64000->64000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
** MUXER_LAVF 
*****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=304 h=208]
Opening video filter: [crop w=310 h=210]
Crop: 310 x 210, -1 ; -1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.30:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 6
SwScaler: reducing / aligning filtersize 8 -> 6
[swscaler @ 0x87239c0]SwScaler: Lanczos scaler, from yuv420p to yuv420p 
using MMX2
[swscaler @ 0x87239c0]SwScaler: using 8-tap MMX scaler for horizontal 
luminance scaling
[swscaler @ 0x87239c0]SwScaler: using 8-tap MMX scaler for horizontal 
chrominance scaling
[swscaler @ 0x87239c0]SwScaler: using n-tap MMX scaler for vertical 
scaling (YV12 like)
[swscaler @ 0x87239c0]SwScaler: 310x210 -> 304x208
x264 [info]: using SAR=208/231
x264 [info]: using cpu capabilities: MMX MMXEXT SSE 3DNow!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
VIDEO CODEC ID: 28f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
Pos:   0.3s      8f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Skipping frame!
Pos:   0.5s     14f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Skipping frame!
Pos:   0.7s     20f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Skipping frame!
Pos:   0.9s     26f ( 0%) 23.40fps Trem:   0min   0mb  A-V:0.000 [0:0]
Skipping frame!
Pos:   1.1s     32f ( 0%) 24.32fps Trem:   0min   0mb  A-V:0.000 [192:44]
Skipping frame!
Pos:   1.3s     38f ( 0%) 25.50fps Trem:   0min   0mb  A-V:0.000 [184:43]
Skipping frame!
Pos:   1.5s     44f ( 0%) 25.70fps Trem:   0min   0mb  A-V:0.000 [178:42]
Skipping frame!
Pos:   1.7s     50f ( 0%) 26.67fps Trem:   0min   0mb  A-V:0.000 [179:41]
Skipping frame!
Pos:   1.9s     56f ( 0%) 26.63fps Trem:   0min   0mb  A-V:0.000 [181:40]
Skipping frame!
Pos:   2.1s     62f ( 0%) 26.61fps Trem:   0min   0mb  A-V:0.000 [177:40]
Skipping frame!
Pos:   2.3s     68f ( 0%) 27.07fps Trem:   0min   0mb  A-V:0.000 [180:40]
Skipping frame!
Pos:   2.5s     74f ( 0%) 27.17fps Trem:   0min   0mb  A-V:0.000 [179:39]
Skipping frame!
Pos:   2.7s     80f ( 0%) 27.64fps Trem:   0min   0mb  A-V:0.000 [179:39]
Skipping frame!
Pos:   2.9s     86f ( 0%) 27.66fps Trem:   0min   0mb  A-V:0.000 [178:39]
Skipping frame!
Pos:   3.1s     92f ( 0%) 28.06fps Trem:   0min   0mb  A-V:0.000 [179:39]
Skipping frame!
Pos:   3.3s     98f ( 0%) 27.89fps Trem:   0min   0mb  A-V:0.000 [178:39]
Skipping frame!
Pos:   3.5s    104f ( 0%) 28.15fps Trem:   0min   0mb  A-V:0.000 [180:39]
Skipping frame!
Pos:   3.7s    110f ( 0%) 28.21fps Trem:   0min   0mb  A-V:0.000 [181:39]
Skipping frame!
Pos:   3.9s    116f ( 0%) 28.11fps Trem:   0min   0mb  A-V:0.000 [183:39]
Skipping frame!
Pos:   4.1s    122f ( 0%) 28.32fps Trem:   0min   0mb  A-V:0.000 [184:40]
Skipping frame!
Pos:   4.3s    128f ( 0%) 28.38fps Trem:   0min   0mb  A-V:0.000 [184:40]
...
...
...
Skipping frame!
Pos:  56.8s   1701f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [200:41]
Skipping frame!
Pos:  57.0s   1707f ( 0%) 29.86fps Trem:   0min   0mb  A-V:0.000 [200:41]
Skipping frame!
Pos:  57.2s   1713f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  57.4s   1719f ( 0%) 29.83fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  57.6s   1725f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  57.8s   1731f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  58.0s   1737f ( 0%) 29.81fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  58.2s   1743f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  58.4s   1749f ( 0%) 29.86fps Trem:   0min   0mb  A-V:0.000 [199:41]
Skipping frame!
Pos:  58.6s   1755f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  58.8s   1761f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  59.0s   1767f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  59.2s   1773f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  59.4s   1779f ( 0%) 29.84fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  59.6s   1785f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  59.8s   1791f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [198:41]
Skipping frame!
Pos:  60.0s   1797f ( 0%) 29.85fps Trem:   0min   0mb  A-V:0.000 [199:41]
Flushing video frames.
Writing index...

Video stream:  199.184 kbit/s  (24898 B/s)  size: 1494380 bytes  60.020 
secs  1797 frames

Audio stream:   41.554 kbit/s  (5194 B/s)  size: 311658 bytes  60.000 secs
x264 [info]: slice I:13    Avg QP:23.38  size:  6053
x264 [info]: slice P:1486  Avg QP:25.62  size:   953
x264 [info]: mb I  I16..4: 33.7%  0.0% 66.3%
x264 [info]: mb P  I16..4:  0.9%  0.0%  0.2%  P16..4: 63.6% 11.0%  2.3%  
0.0%  0.0%    skip:22.1%
x264 [info]: final ratefactor: 23.03
x264 [info]: ref P  57.9% 16.0% 19.2%  6.9%
x264 [info]: kb/s:199.2
v4l2: 1805 frames successfully processed, 0 frames dropped.


RC wrote:
> On Tue, 02 Oct 2007 11:36:29 -0700
> hradec <hradec at hradec.com> wrote:
>
>   
>> nice -n -5 /root/tools/bin/mencoderPVR -endpos 60 tv:// -tv 
>> driver=v4l2:device=/dev/video1:fps=25000/1001:audiorate=32000:width=3
>> 52:height=240:adevice=/dev/dsp1:input=0:amode=2:audioid=2:normid=9:ch
>> anlist=us-cable:freq=144.45  -sws 9  -vf
>> crop=310:210,scale=304:208,harddup -aspect 1.3 -oac faac  -faacopts
>> br=1:quality=40:mpeg=4:object=2:raw   -ovc x264 -x264encopts 
>> bitrate=200:me=umh:subme=6:ref=4:merange=16:subq=5:threads=1:vbv_maxr
>> ate=800:vbv_bufsize=2000:nocabac:level_idc=13:global_header     -o
>> /root/PVR/test.live.mp4 -of lavf -lavfopts format=mp4
>>     
>
> You've got lots of nonsense in there.  fps=25000/1001 makes no sense at
> all. br and quality are mutually exclusive options.  audiorate is
> probably best to set at 48k, and then resample if you want to encode it
> lower.
>
> Also, you really should include the full verbose output of the commands
> your using when reporting a bug, since that should have clues to your
> problem.
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>   



More information about the MEncoder-users mailing list