[mythtv-users] nuvexport problems
Bruno Bigras
bigras.bruno at gmail.com
Sun Jan 10 15:20:23 UTC 2010
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.
bruno at mythtv:~$ mplayer -v -v -v -v -nolirc -nojoystick -vo null -ao
null -frames 1 -identify
/var/lib/mythtv/recordings/1161_20100101003000.mpg | grep ID
ID_VIDEO_ID=0
ID_AUDIO_ID=0
VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s)
ID_FILENAME=/var/lib/mythtv/recordings/1161_20100101003000.mpg
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=6000000
ID_VIDEO_WIDTH=480
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=8096.29
ID_SEEKABLE=1
ID_CHAPTERS=0
ID_VIDEO_CODEC=mpegpes
bruno at mythtv:~$ mplayer -v -v -v -v -nolirc -nojoystick -vo null -ao
null -frames 1 -identify -demuxer lavf
/var/lib/mythtv/recordings/1161_20100101003000.mpg | grep ID
ID_VIDEO_ID=0
======= VIDEO Format ======
ID_AUDIO_ID=1
VIDEO: [mpg2] 480x480 0bpp 29.970 fps 6000.0 kbps (732.4 kbyte/s)
ID_FILENAME=/var/lib/mythtv/recordings/1161_20100101003000.mpg
ID_DEMUXER=lavf
ID_VIDEO_FORMAT=mpg2
ID_VIDEO_BITRATE=6000000
ID_VIDEO_WIDTH=480
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=1.3333
ID_AUDIO_FORMAT=80
ID_AUDIO_BITRATE=384000
ID_AUDIO_RATE=32000
ID_AUDIO_NCH=2
ID_LENGTH=8097.04
ID_SEEKABLE=1
ID_CHAPTERS=0
ID_VIDEO_ASPECT=1.3333
ID_VIDEO_CODEC=mpegpes
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
thanks!
Bruno
2010/1/10 Michael T. Dean <mtdean at thirdcontact.com>:
> On 01/10/2010 08:10 AM, Bruno Bigras wrote:
>>
>> I'm trying to export an episode to an avi using nuvexport and I got a
>> 'Expected number for ar but found: -ac'. I think it's because there's
>> no value for 'ar' and 'ac' in the following command
>
> ...
>>
>> I looked into /usr/share/nuvexport/export/ffmpeg.pm and saw this :
>> $ffmpeg .= ' -y -f '.($Config{'byteorder'} == 4321 ? 's16be' :
>> 's16le')
>> .' -ar ' . $episode->{'finfo'}{'audio_sample_rate'}
>> .' -ac ' . $episode->{'finfo'}{'audio_channels'};
>>
>> I looked into the database and found that the table 'recordedfile' had
>> both those fields but the table is empty. I recorded 6 episode but
>> never transcoded any of them. Am I missing something?
>
> Pretty sure that info doesn't come out of the database.
> http://svn.mythtv.org/trac/ticket/6774 , perhaps?
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
More information about the mythtv-users
mailing list