[MEncoder-users] H.264 Errors on Hauppauge HD PVR .ts File

Nicholas Oleksinski noleksin at gmail.com
Wed Jan 5 19:00:34 CET 2011


Hi:
I'm playing with a .ts file I pulled from the Windows software usnig AC3 but
I still get those audio sync errors.
So I am trying to get a fresh build of mencoder instead of using the Ubuntu
distribution, just in case something's been fixed.
I am using the subversion tree and when I configure I do this:

configure --enable-x264

Now I get a bunch of x264 related errors:

lcldec.c: In function 'zlib_decomp':
lcldec.c:136: warning: assignment discards qualifiers from pointer target type

CC      lclenc.o
CC      libx264.o
libx264.c:23:18: error: x264.h: No such file or directory
libx264.c:30: error: expected specifier-qualifier-list before 'x264_param_t'
libx264.c: In function 'X264_log':

libx264.c:41: error: 'X264_LOG_ERROR' undeclared (first use in this function)
libx264.c:41: error: (Each undeclared identifier is reported only once
libx264.c:41: error: for each function it appears in.)

libx264.c:41: error: array index in initializer not of integer type
libx264.c:41: error: (near initialization for 'level_map')

Am I missing something easy here?  How do I pick up the optional codecs?

Oh yeah, one other misc question...  Is this the only way besides MythTv
(which I find way overbearing for just video capture) to capture from the
Hauppauge HD PVR in Linux?:

*<configure hd pvr using commands like:
    v4l2-ctl --set-audio-input=1
    v4l2-ctl --set-input=2
    v4l2-ctl --device=/dev/video0
    v4l2-ctl
--set-ctrl=video_bitrate=6500000,video_bitrate_mode=0,video_peak_bitrate=9000000,audio_encoding=4
>*

cat /dev/videoX > myvideo.ts

Did anyone ever write a little gui or anything to control the hd pvr?  Seems
like it could be pretty simple.  We are just strreaming a pre-encoded file
right?
Hitting ctrl-C seems like a clunky way to stop recording.

On Tue, Jan 4, 2011 at 5:43 PM, Rolf Ernst
<rolf.ernst at silverlightning.org>wrote:

> On 1/4/2011 4:16 PM, Nicholas Oleksinski wrote:
>
>> Hey Rolf!
>> Thanks a lot I was nowhere NEAR this set of options.
>> One question- why 24fps?  Will 30fps work?
>> Thanks
>>
>> On Tue, Jan 4, 2011 at 5:10 PM, Rolf Ernst
>> <rolf.ernst at silverlightning.org>wrote:
>>
> <snip>
>
> The card itself captures at 59.94 fps. The downsampling to 23.976 fps only
> works if the material shown is film, of course. In the case of different
> source material you should convert to 29.97fps. All commercial transcoders
> for 59.94 downsample the frames to 29.97 interlaced - bad choice in terms of
> quality if you are encoding film.
>
> In any case, you *don't have to* convert the frame rates. It's just that
> 59.94fps is not necessarily a common rate used, uses a bit more power in the
> decoder and uses a bit more space.
>
> I should add that I am capturing from a cable box (Verizon) at 720p. This
> should work at 1080i as well but I think you can omit the tinterlace then.
> However, I don't really see the point of capturing an essentially
> progressive signal in an interlaced format.
>
> However, when you capture at 1080i (the max, it can't do 1080p) you only
> have a frame rate of 29.97, i.e. you have to adjust the parameters I gave
> you.
> Let me know if you do, I can post that set then.
>
> There is a (more or less) undocumented feature of the box that you can also
> capture in SD but the quality seems to be poor.
>
> Now, what I am doing after transcoding this way (I cut using Smartcutter
> *without stream fix*, it messes up the first couple of frames). VideoRedo
> can also cut and so does Elecard's HD studio or whatever it is called. I
> have used all three of them successfully to strip off beginning and end.
>
> Despite Reimar's assertions to the contrary after demuxing the AC3
> *afterwards* and downsampling it with eac3to to Dolby II the now 2 channel
> Dolby audio sounds awfully close to the AC3 original. Maybe I am deaf but I
> don't hear major psy glitches.
>
> Anyhow, YAMF does it automatically when you tick 'Postprocess'.
>
>
> --
> /re
>
> "There's a fine line between audacity and idiocy." — Jim Butcher
>
> _______________________________________________
> 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