[mythtv-users] Deleting commercials and transcoding

Patrick Reynolds reynolds at cs.duke.edu
Sat Feb 7 15:22:27 EST 2004


On Sat, 7 Feb 2004, J. Donavan Stanley wrote:

> Matthew M Murphy wrote:
>
> >Thanks for the info.  How would one tell if an .nuv file is an MPEG2 or
> >MPEG4 file?
>
>  From within MythTV I don't think there is a way. .  From the command
> line use "file <path/to/nuv>"

Does 'file' work for .nuv files?  It doesn't on Debian unstable.

"nuvinfo /path/to/foo.nuv" will tell you lots of stuff about the nuv file,
including the fourcc values for video and audio.  The values I have are
1096237394 = 0x41574152 = 'RAWA' = raw audio
1162690892 = 0x454d414c = 'LAME' = MP3 audio
1196444242 = 0x47504a52 = 'RJPG' = RTjpeg
1482049860 = 0x58564944 = 'DIVX' = MPEG4
I would assume there's some other value for MPEG2.

The default nuvinfo shows only the first (int) values.  I've attached a
patch to make it print the hex and character values.

--Patrick
-------------- next part --------------
--- nuvinfo	2003-10-10 00:27:53.000000000 -0400
+++ /usr/local/bin/nuvinfo	2004-02-01 15:38:54.000000000 -0500
@@ -10,7 +10,12 @@
 
 print "\n\ninfo for: $file\n\n";
 foreach $key (sort keys %info) {
-	print "$key:  $info{$key}\n";
+	if ($key =~ /_fourcc$/) {
+		printf "$key:  0x%08x ('%s')\n", $info{$key}, pack('i', $info{$key});
+	}
+	else {
+		print "$key:  $info{$key}\n";
+	}
 }
 print "\ndone\n\n";
 


More information about the mythtv-users mailing list