[mythtv-users] MythArchive creates PAL DVDs even though NTSC format is selected

Mark Covington markcov at alumni.rice.edu
Mon Jun 19 12:44:08 UTC 2006


Howdy,

I'm running svn10191 and when I run MythArchive it creates a DVD  
that's in PAL format instead of NTSC.  The resolution comes out at  
720x480, but the framerate is at PAL 25 instead of the NTSC 30.
I"m using a mythtv recording off a PVR500 card with a cutlist.

Early in the log I see the line Final DVD Video Format will be ntsc.   
Which is what I'm expecting, but the ffmpeg command runs with "-r  
pal".  I poked through the mythburn.py script but couldn't figure out  
where ffmpeg was getting the -r switch from. During final ISO creation  
the log line "INFO: TV standard: pal" confirms the error.

What switch do I need to flip to ensure the DVD will be created as  
NTSC instead of PAL?

Below are my mysql settings and the output of the mythburn.log file.   
What other information do I need to provide?

Thanks!

Mark



----------------mysql settings-----------------
mysql> select * from settings where value like "MythArchive%";
+-----------------------------------+--------------------------------------+----------+
| value                             | data                              
     | hostname |
+-----------------------------------+--------------------------------------+----------+
| MythArchiveAlwaysUseMythTranscode | 1                                 
     | shuttle  |
| MythArchiveBurnDVDr               | 0                                 
     | shuttle  |
| MythArchiveCopyRemoteFiles        | 0                                 
     | shuttle  |
| MythArchiveCreateISO              | 1                                 
     | shuttle  |
| MythArchiveDvdauthorCmd           | dvdauthor                         
     | shuttle  |
| MythArchiveDVDLocation            | /dev/dvd                          
     | shuttle  |
| MythArchiveEncodeToAc3            | 1                                 
     | shuttle  |
| MythArchiveEraseDvdRw             | 0                                 
     | shuttle  |
| MythArchiveFfmpegCmd              | ffmpeg                            
     | shuttle  |
| MythArchiveFileFilter             | *.mpg *.mov *.avi *.mpeg *.nuv    
     | shuttle  |
| MythArchiveFormatType             | 0                                 
     | shuttle  |
| MythArchiveGrowisofsCmd           | growisofs                         
     | shuttle  |
| MythArchiveMediaType              | 0                                 
     | shuttle  |
| MythArchiveMenuTheme              | MythCenter - Autoplay             
     | shuttle  |
| MythArchiveMkisofsCmd             | mkisofs                           
     | shuttle  |
| MythArchiveMpeg2encCmd            | mpeg2enc                          
     | shuttle  |
| MythArchiveMplexCmd               | mplex                             
     | shuttle  |
| MythArchivePng2yuvCmd             | png2yuv                           
     | shuttle  |
| MythArchiveSaveFilename           | NULL                              
     | shuttle  |
| MythArchiveShareDir               |  
/usr/local/share/mythtv/mytharchive/ | shuttle  |
| MythArchiveSpumuxCmd              | spumux                            
     | shuttle  |
| MythArchiveTcrequantCmd           | tcrequant                         
     | shuttle  |
| MythArchiveTempDir                | /video/tmp                        
     | shuttle  |
| MythArchiveUseFIFO                | 1                                 
     | shuttle  |
| MythArchiveVideoFormat            | NTSC                              
     | shuttle  |
+-----------------------------------+--------------------------------------+----------+
25 rows in set (0.00 sec)

-----------------------------------------------
-------------mythburn.log----------------------
mythburn.py (0.1.20060613-1) starting up...
Process priority 8
script path:/usr/local/share/mythtv/mytharchive/scripts
myth share path:/usr/local/share/mythtv
passed job file: /video/tmp/config/mydata.xml
passed progress log file: /video/tmp/logs/progress.log
mythburn.py (0.1.20060613-1) starting up...
Obtaining MythTV settings from MySQL database for hostname shuttle
Obtaining date and time settings from MySQL database for hostname shuttle
Processing Mythburn job number 1.
Options - mediatype = 0, doburn = 0, createiso = 1, erasedvdrw = 0
           savefilename = ''
Looking for: /usr/local/share/mythtv/mytharchive/themes/MythCenter -  
Autoplay/theme.xml
Loading font 0, /usr/local/share/mythtv/FreeSans.ttf size 19
Loading font 1, /usr/local/share/mythtv/FreeSans.ttf size 15
Loading font 2, /usr/local/share/mythtv/FreeSans.ttf size 13
wantIntro: 1, wantMainMenu: 0, wantChapterMenu:0, wantDetailsPage: 1
Final DVD Video format will be ntsc
There are 1 files to process
Pre-processing file '1032_20060612120000.mpg' of type 'recording'
           College Baseball
2006-06-19 00:04:49.845 Opening /video/1032_20060612120000.mpg
[mpeg @ 0x75e2f0]Could not find codec parameters (Video: mpeg2video)
2006-06-19 00:04:49.863 av_estimate_timings - Start
0: start_time: 0.036 duration: 1298.416
1: start_time: 0.026 duration: 1298.404
stream: start_time: 0.289 duration: 14426.957 bitrate=6707 kb/s
2006-06-19 00:04:49.864 av_estimate_timings - Stop
Input #0, mpeg, from '/video/1032_20060612120000.mpg':
   Duration: 04:00:26.9, start: 0.289356, bitrate: 6707 kb/s
   Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,  
640x480, 6000 kb/s
   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
2006-06-19 00:04:49.865 Calculating frame count
2006-06-19 00:11:40.333 frames = 432386
2006-06-19 00:11:40.344 duration = 14427
Video resolution is 640 by 480
*************************************************************
Processing file 1032_20060612120000.mpg of type recording
*************************************************************
File type is 'mpeg'
Video codec is 'mpeg2video'
File has a cut list - attempting to run mythtrancode to remove  
unwanted segments
2006-06-19 00:11:42.472 Using runtime prefix = /usr/local
2006-06-19 00:11:42.921 New DB connection, total: 1
2006-06-19 00:11:42.954 Enabled verbose msgs: important
2006-06-19 00:11:42.981 New DB connection, total: 2
2006-06-19 00:11:43.187 Could not find codec parameters (Video: mpeg2video)
Mux rate: 6.49 Mbit/s
2006-06-19 00:29:57.402 Opening /video/tmp/work/1/tmp
2006-06-19 00:29:57.439 av_estimate_timings - Start
0: start_time: 0.028 duration: 989.945
1: start_time: 0.028 duration: 989.915
stream: start_time: 0.308 duration: 10999.388 bitrate=6475 kb/s
2006-06-19 00:29:57.441 av_estimate_timings - Stop
Input #0, mpeg, from '/video/tmp/work/1/tmp':
   Duration: 03:03:19.3, start: 0.308322, bitrate: 6475 kb/s
   Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,  
640x480, 6000 kb/s
   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
2006-06-19 00:29:57.442 Calculating frame count
2006-06-19 00:33:53.676 frames = 329659
2006-06-19 00:33:53.687 duration = 10999
Preferred audio languages eng and eng
Video id: 0x1e0, Audio1: [1] 0x1c0 (MP2, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)
Aspect ratio is 4:3
Re-encoding audio and video
Encoding profile (SP) found
ffmpeg -v 1 -i "/video/tmp/work/1/tmp" -r pal -target dvd -b 4771 -s  
720x480 -acodec ac3 -ab 192 -ac 2 -copyts -aspect 4:3  
"/video/tmp/work/1/newfile2.mpg" -map 0:0 -map 0:1
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --prefix=/usr --libdir=/usr/lib  
--mandir=/usr/share/man --enable-mp3lame --enable-libogg  
--enable-vorbis --enable-theora --enable-faadbin --enable-xvid  
--enable-a52 --enable-a52bin --enable-pp --enable-shared  
--enable-pthreads --enable-dc1394 --enable-gpl --disable-strip  
--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions  
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386  
-mtune=generic -fasynchronous-unwind-tables
   libavutil version: 49.0.0
   libavcodec version: 51.7.0
   libavformat version: 50.3.0
   built on Mar 17 2006 21:16:18, gcc: 4.1.0 20060304 (Red Hat 4.1.0-3)
Input #0, mpeg, from '/video/tmp/work/1/tmp':
   Duration: 03:03:19.3, start: 0.308322, bitrate: 6475 kb/s
   Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,  
640x480, 6000 kb/s
   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Assuming PAL for target.
Output #0, dvd, to '/video/tmp/work/1/newfile2.mpg':
   Stream #0.0, 25.00 fps(c): Video: mpeg2video, yuv420p, 720x480,  
q=2-31, 4771 kb/s
   Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg2video @ 0x39e1ac]invalid cbp at 10 1998.6 bitrate=5065.9kbits/s
[mpeg2video @ 0x39e1ac]Warning MVs not available
[mpeg2video @ 0x39e1ac]concealing 1160 DC, 1160 AC, 1160 MV errors
frame=274991 q=7.2 Lsize= 6802050kB time=10999.1 bitrate=5066.1kbits/s
video:6406283kB audio:257792kB global headers:0kB muxing overhead 2.070436%
2006-06-19 04:47:44.965 Opening /video/tmp/work/1/newfile2.mpg
[mpeg @ 0x5042f0]Could not find codec parameters (Video: mpeg2video)
[mpeg @ 0x5042f0]Could not find codec parameters (Video: mpeg2video)
2006-06-19 04:47:44.995 av_estimate_timings - Start
0: start_time: 0.045 duration: 989.932
1: start_time: 0.045 duration: 989.899
stream: start_time: 0.500 duration: 10999.240 bitrate=5066 kb/s
2006-06-19 04:47:44.996 av_estimate_timings - Stop
Input #0, mpeg, from '/video/tmp/work/1/newfile2.mpg':
   Duration: 03:03:19.2, start: 0.500000, bitrate: 5066 kb/s
   Stream #0.0[0x1e0], 25.00 fps(r): Video: mpeg2video, yuv420p,  
720x480, 9000 kb/s
   Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
2006-06-19 04:47:44.997 Calculating frame count
2006-06-19 04:51:13.841 frames = 274991
2006-06-19 04:51:13.856 duration = 10999
Preferred audio languages eng and eng
Video id: 0x1e0, Audio1: [1] 0x80 (AC3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)
Splitting MPEG stream into audio and video parts
Running: mythreplex --demux  -o /video/tmp/work/1/stream -v 224 -c 128  
"/video/tmp/work/1/newfile2.mpg"
Reading from /video/tmp/work/1/newfile2.mpg
Input file length: 6642.63 MB
Checking for TS: failed
Checking for AVI: failed
Checking for PS: confirmed(maybe)
Video: aspect ratio: 4:3  size = 720x480  frame rate: 25.000 fps  bit  
rate: 9.00 Mbit/s
   vbvbuffer 1835008
Sequence Extension: chroma 4:2:0   size = 720x480  bit rate: 9.00  
Mbit/s  vbvbuffer 1835008  frame rate: 25.000
starting with video PTS:  0:00:00.500
AC3 stream:  bit rate: 192 kb/s  freq: 48000 Hz
   frame size 768
starting audio PTS:  0:00:00.500
Video output File is: /video/tmp/work/1/stream.mv2
AC30 output File is: /video/tmp/work/1/stream0.ac3
STARTING DEMUX
read 100%
Audio is already in ac3 format
Extracting thumbnail image from /video/tmp/work/1/stream.mv2 at position 0
Destination file /video/tmp/work/1/thumbnail.jpg
2006-06-19 05:08:22.720 Opening /video/tmp/work/1/stream.mv2
[mpegvideo @ 0x30f72f0]Could not find codec parameters (Video: mpeg1video)
*************************************************************
Finished processing file 1032_20060612120000.mpg
*************************************************************
Creating details pages
Background image file is  
/usr/local/share/mythtv/mytharchive/themes/MythCenter -  
Autoplay/MythCenter-Background.png
Music is silence.mp2, length is 5 seconds
Creating details page for 1
Added image /video/tmp/work/1/thumbnail.jpg
Wrapped text  = College Baseball
Wrapped text  = NCAA Super Regional: Oklahoma vs Rice
Wrapped text  = Mon 12 Jun 2006 12:00 PM
Wrapped text  = Duration 03:03:19
Encoding Details Page 1
    INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
    INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
    INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
    INFO: [mpeg2enc] Selecting DVD with dummy navigation packets output profile
    INFO: [mpeg2enc] Assuming norm NTSC
    INFO: [mpeg2enc] Progressive input - selecting progressive encoding.
    INFO: [mpeg2enc] Encoding MPEG-2 video to /video/tmp/work/temp.m2v
    INFO: [mpeg2enc] Horizontal size: 720 pel
    INFO: [mpeg2enc] Vertical size: 480 pel
    INFO: [mpeg2enc] Aspect ratio code: 3 = 16:9 display
    INFO: [mpeg2enc] Frame rate code:   4 = 30000.0/1001.0 (NTSC VIDEO)
    INFO: [mpeg2enc] Bitrate: 5000 KBit/s
    INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
    INFO: [mpeg2enc] Field order for input: none/progressive
    INFO: [mpeg2enc] Sequence unlimited length
    INFO: [mpeg2enc] Search radius: 16
    INFO: [mpeg2enc] DualPrime: no
    INFO: [mpeg2enc] Using one-pass rate control
    INFO: [mpeg2enc] GOP SIZE RANGE 7 TO 15
    INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
    INFO: [mpeg2enc] Progressive format frames = 1
    INFO: [mpeg2enc] Using default unmodified quantization matrices
    INFO: [mpeg2enc] SETTING MMX and MMX for QUANTIZER!
    INFO: [mpeg2enc] PAR = 0

    INFO: [mpeg2enc] NEW GOP INIT length 15
    INFO: [mpeg2enc] Enc1      0     0( 0) I q=8.00     [100% Intra]
    			<snip>
    INFO: [mpeg2enc] Signaling last frame = 148
    INFO: [mpeg2enc] Enc1    148   148(13) P q=8.00     [0% Intra]
    INFO: [mpeg2enc] Sequence end inserted
    INFO: [mpeg2enc] Guesstimated final muxed size = 266305

DVDAuthor::spumux, version 0.6.11.
Build options: gnugetopt iconv
Send bugs to <dvdauthor-users at lists.sourceforge.net>

INFO: Locale=en_US
INFO: Converting filenames to ISO-8859-1
ERR: Unable to open file
WARN: Bad image,  skipping line -1
WARN:  Read 0, expected 4
INFO: 0 subtitles added, 1 subtitles skipped, stream: 32, offset: 0.13

Statistics:
- Processed 0 subtitles.
- The longest display line had -1 characters.
- The maximum number of displayed lines was 0.
- The normal display height of the font arial.ttf was 0.
- The bottom display height of the font arial.ttf was 0.
- The biggest subtitle box had 0 bytes.
Creating DVD XML file for dvd author (No Menus)
Adding item 1
Total size of video files, before multiplexing, is 6256 Mbytes, audio  
is 251 MBytes, menus are 0 MBytes.
Need to shrink MPEG2 video files to fit onto recordable DVD, video is  
2330.8 MBytes too big.
Need to scale by 1.54997640396
tcrequant /video/tmp/work/1/stream.mv2  
/video/tmp/work/1/video.small.m2v 1.54997640396
[tcrequant] MPEG2 Requantiser by Makira.
[tcrequant] Using 1.549976 as factor.
Total DVD size AFTER TCREQUANT is 4499.3 MBytes
Multiplexing MPEG stream to /video/tmp/work/1/final.mpg
Available streams - video and one audio stream
Multiplex started PID=13824
Starting dvdauthor
DVDAuthor::dvdauthor, version 0.6.11.
Build options: gnugetopt iconv
Send bugs to <dvdauthor-users at lists.sourceforge.net>

INFO: Locale=en_US
INFO: Converting filenames to ISO-8859-1
INFO: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing  
/usr/local/share/mythtv/mytharchive/intro/ntsc_mythlogo_intro.mpg...

INFO: Video pts = 0.500 .. 7.660
INFO: Audio[0] pts = 0.500 .. 7.636

STAT: Processing /video/tmp/work/details-1.mpg...
WARN: attempt to update frame rate from 25.0 (PAL/SECAM VIDEO /  
converted FILM) to 30000.0/1001.0 (NTSC VIDEO); skipping
WARN: attempt to update tv format from pal to ntsc; skipping
WARN: attempt to update aspect ratio from 4:3 to 16:9; skipping
WARN: Discontinuity in audio channel 8; please remultiplex input.
WARN: Previous sector: 0.133 - 0.133
     <snip - error repeats for all sectors from 0.133 through 7.708>
WARN: Video PTS does not line up on a multiple of a field.

INFO: Video pts = 0.133 .. 2.878
INFO: Audio[8] pts = 0.133 .. 7.708

STAT: Processing /video/tmp/work/1/final.mpg...
STAT: VOBU 18406 at 4403MB, 2 PGCS
INFO: Video pts = 0.160 .. 10999.600
INFO: Audio[0] pts = 0.160 .. 10999.232
STAT: VOBU 18410 at 4404MB, 2 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: pal
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x576
INFO: Audio ch 0 format: ac3/2ch, 48khz drc
INFO: Audio ch 1 format: mp2/2ch, 48khz 20bps

WARN: Transition from non-audio to audio VOB; assuming discontinuity.
WARN: Transition from non-audio to audio VOB; assuming discontinuity.
WARN: Transition from non-audio to audio VOB; assuming discontinuity.
WARN: Transition from non-audio to audio VOB; assuming discontinuity.
STAT: fixed 18410 VOBUS
INFO: dvdauthor creating table of contents
INFO: Scanning /video/tmp/work/dvd/VIDEO_TS/VTS_01_0.IFO
Finished  dvdauthor
Creating ISO image
INFO:   ISO-8859-1 character encoding detected by locale settings.
         Assuming ISO-8859-1 encoded filenames on source filesystem,
         use -input-charset to override.
   0.22% done, estimate finish Mon Jun 19 05:45:54 2006
                      <snip>
  99.97% done, estimate finish Mon Jun 19 05:45:08 2006
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 4096
Path table size(bytes): 42
Max brk space used 0
2255661 extents written (4405 MB)
Finished creating ISO image
Finished processing jobs!!!
-----------------------------------------------


-- 
Mark Covington
markcov at alumni.rice.edu



More information about the mythtv-users mailing list