[MEncoder-users] Converting video from HD-PVR

Laine Lee llee040 at sbcglobal.net
Wed Jan 20 04:32:40 CET 2010


Output of the HD-PVR at highest bit rate is always telecined. But the input
*is* 60000/1001 fps, interlaced. When the recording is clean, I normally get
good results with these filters:

-vf 
tfields=0,tinterlace=0,filmdint=fast=0/sad_thres=2048,softskip,scale=720:480
,harddup -noskip

But I always have to clean the input file first with

ffmpeg -i [input] -an -vcodec copy -f rawvideo [output].h264

then 

MP4Box -tmp [temporary items directory] -add [ffmpegoutput].h264 -fps 59.94
-delay 2=500 [output].mp4

I just extract the audio and sample up to 448000 (the 384000 from the HD-PVR
doesn't seem to work very well) and remux:

ffmpeg -i [input] -vn -f ac3 -acodec ac3 -ab 448000 -ar 48000 -ac 6 -map
0.1:0.0 [output].ac3

then in the encoding:

-oac copy -audiofile [input].ac3

Henk Schoneveld helped me figure out that the source is indeed 60000/1001
and how to deal with it.

Laine Lee


On 1/18/10 11:19 AM, "Andrew Berg" <bahamutzero8825 at gmail.com> wrote:

> I'm trying to convert these videos again, and while MEncoder can handle
> them without crashing now, I still have trouble with them. Frame rate is
> the major problem now. My typical encodes (mostly DVD rips) consist of
> these lines:
> 
> mencoder [input] -msglevel all=0:statusline=5 -of avi -oac copy -ovc
> x264 -x264encopts
> crf=19:keyint=300:keyint_min=30:level_idc=41:frameref=15:mixed_refs:bframes=4:
> b_adapt=2:me_range=24:direct_pred=auto:partitions=all:cabac:8x8dct:me=hex:subq
> =5:threads=auto:nointerlaced:nopsnr:nossim
> -vf pp=lb,hqdn3d=0:0:6:6,harddup -o output.avi
> ffmpeg -i output.avi -f wav - 2>nul | neroaacenc -ignorelength -q 0.3
> -if - -of output.m4a
> mp4box -aviraw video output.avi
> mp4box -add output_video.h264:fps=29.97 -add output.m4a -new output.mp4
> 
> I've had some success adding -demuxer lavf and -ofps 30000/1001 to the
> first line, but sync is off. If I omit -ofps 30000/1001, it behaves as
> if the input were 60000/1001fps, which I know is not true. I even tried
> using filmdint as if the video were telecined 60fps, and got jerky
> playback. I can provide a sample of the video, but it's almost 100MB per
> minute since I record at the max 13.5Mbps (local ABR). Is there anything
> I could try?
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users




More information about the MEncoder-users mailing list