[mythtv-users] nuvexport problems
Michael T. Dean
mtdean at thirdcontact.com
Sun Jan 10 15:31:49 UTC 2010
On 01/10/2010 10:20 AM, Bruno Bigras wrote:
> You were right. I have a wintv-hvr 1600 but the video type is still MPEG2.
>
> It seems I needed '-demuxer lavf' to get the audio_sample_rate and
> audio_channels.
>
...
> this is what I changed, maybe there's a better way to detect when to
> use '-demuxer lavf'
>
> --- /home/bruno/Recording.pm 2010-01-10 09:00:40.810233339 -0500
> +++ /usr/share/perl5/MythTV/Recording.pm 2010-01-10
> 10:09:53.880471503 -0500
> @@ -321,6 +321,12 @@
> ($info{'aspect'}) = $data =~
> m/^ID_VIDEO_ASPECT=0*([1-9]\d*(?:[\.\,]\d+)?)/m;
> ($info{'audio_type'}) = $data =~
> m/^ID_AUDIO_CODEC=0*([1-9]\d*(?:\.\d+)?)/m;
> ($info{'mpeg_stream_type'}) = $data =~ m/^ID_DEMUXER=(\w+)/mi;
> + if (!defined($info{'audio_sample_rate'})) {
> + my $altdata = `$program -v -v -v -v -nolirc -nojoystick
> -vo null -ao null -frames 1 -identify -demuxer lavf '$file'
> 2>/dev/null`;
> + study $altdata;
> + ($info{'audio_sample_rate'}) = $altdata =~
> m/^ID_AUDIO_RATE=0*([1-9]\d*)/m;
> + ($info{'audio_channels'}) = $altdata =~
> m/^ID_AUDIO_NCH=0*([1-9]\d*)/m;
> + }
> # Stream type
> $info{'mpeg_stream_type'} = lc($info{'mpeg_stream_type'});
> if ($info{'mpeg_stream_type'} && $info{'mpeg_stream_type'} !~
> /^mpeg/) {
>
>
> I got the "non monotone timestamps" problem with ffmpeg but it seems
> to work with nuvexport -mencoder
Please make a patch and upload it to
http://svn.mythtv.org/trac/ticket/6774 so the audio_sample_rate
detection is fixed when the width detection is fixed.
Thanks,
Mike
More information about the mythtv-users
mailing list