[mythtv] MythArchive has been added to svn - Please test

Robin Gilks g8ecj at gilks.org
Fri May 5 10:40:13 UTC 2006


>
>> I've just added to svn the first release of MythArchive which is a new
>> plugin for myth that allow you create DVD's from your myth recordings.
>> Its still a work in progress but is at a stage where I would like people
>> to test it so I can get some feed back on what works and what doesn't.
>> At the moment its in svn as a separate module but eventually when its
>> had more testing and is more complete it will probably be moved in with
>> the other plugins. Its based on the old MythBurn scripts but has been
>> rewritten to reduce the number of dependencies and to hopefully make it
>> easier to install.
>>
>> I've created a  wiki page giving more details of what MythArchive can do
>> and how to install it.
>> http://www.mythtv.org/wiki/index.php/MythArchive
>>
>> Paul H.
>>
>
> I've hit a problem with IVTV files already - ffmpeg fails as I don't have
> a third stream so the map 0:2 fails.
>
> Copying the failed ffmpeg commandline and substituting -map 0:1 seems to
> do the trick so the detection of the audio stream is failing? I'm in a PAL
> country so is this the problem?
>
> This is what I get with the original ffmpeg command line:
>
> g8ecj at zeus ~ $ ffmpeg -v 1 -i /mnt/store/2052_20060501200200.mpg -r pal
> -target dvd -b 3000 -s 720x576 -ab 192 -copyts -aspect 4:3
> /mnt/tmp/mythburn/work/1/newfile2.mpg -map 0:0 -map 0:2
> ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  --prefix=/usr --host=i686-pc-linux-gnu
> --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
> --sysconfdir=/etc --localstatedir=/var/lib --enable-shared-pp
> --enable-shared --disable-static --enable-mmx --disable-altivec
> --disable-debug --enable-mp3lame --disable-a52 --disable-a52bin
> --enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394
> --disable-pthreads --enable-xvid --enable-libogg --enable-vorbis
> --disable-theora --disable-dts --disable-network --enable-zlib
> --enable-ffplay --enable-faad --enable-faac --disable-faadbin
> --enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
>   built on Feb 15 2006 12:43:24, gcc: 3.4.4 (Gentoo 3.4.4-r1,
> ssp-3.4.4-1.0, pie-8.7.8)
> Input #0, mpeg, from '/mnt/store/2052_20060501200200.mpg':
>   Duration: 00:37:55.0, start: 0.276122, bitrate: 3309 kb/s
>   Stream #0.0[0x1e0], 25.00 fps: Video: mpeg2video, yuv420p, 320x576, 4200
> kb/s
>   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> Assuming PAL for target.
> File '/mnt/tmp/mythburn/work/1/newfile2.mpg' already exists. Overwrite ?
> [y/N] y
> Could not find input stream #0.2
>
>
>
>
> This is what I get with the correct audio stream number:
>
> g8ecj at zeus ~ $ ffmpeg -v 1 -i /mnt/store/2052_20060501200200.mpg -r pal
> -target dvd -b 3000 -s 720x576 -ab 192 -copyts -aspect 4:3
> /mnt/tmp/mythburn/work/1/newfile2.mpg -map 0:0 -map 0:1
> ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
>   configuration:  --prefix=/usr --host=i686-pc-linux-gnu
> --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
> --sysconfdir=/etc --localstatedir=/var/lib --enable-shared-pp
> --enable-shared --disable-static --enable-mmx --disable-altivec
> --disable-debug --enable-mp3lame --disable-a52 --disable-a52bin
> --enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394
> --disable-pthreads --enable-xvid --enable-libogg --enable-vorbis
> --disable-theora --disable-dts --disable-network --enable-zlib
> --enable-ffplay --enable-faad --enable-faac --disable-faadbin
> --enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
>   built on Feb 15 2006 12:43:24, gcc: 3.4.4 (Gentoo 3.4.4-r1,
> ssp-3.4.4-1.0, pie-8.7.8)
> Input #0, mpeg, from '/mnt/store/2052_20060501200200.mpg':
>   Duration: 00:37:55.0, start: 0.276122, bitrate: 3309 kb/s
>   Stream #0.0[0x1e0], 25.00 fps: Video: mpeg2video, yuv420p, 320x576, 4200
> kb/s
>   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
> Assuming PAL for target.
> File '/mnt/tmp/mythburn/work/1/newfile2.mpg' already exists. Overwrite ?
> [y/N] y
> Output #0, dvd, to '/mnt/tmp/mythburn/work/1/newfile2.mpg':
>   Stream #0.0,   nan fps: Video: mpeg2video, yuv420p, 720x576, q=2-31,
> 3000 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
> frame=  223 q=0.0 Lsize=    3530kB time=8.4 bitrate=3462.4kbits/s
> video:3175kB audio:196kB global headers:0kB muxing overhead 4.737364%
> Received signal 2: terminating.
>
> which looks much more encouraging.
>

Found the log file :-)) Looks like there is a data stream in there!!


2006-05-05 22:37:35.035 Did not find format for
2006-05-05 22:37:35.035 Opening /mnt/store/2052_20060501200200.mpg
[mpeg @ 0xb626b100]Parser not found for Codec Id: 94210 !
[mpeg @ 0xb626b100]Could not find codec parameters (Video: mpeg2video)
Input #0, mpeg, from '/mnt/store/2052_20060501200200.mpg':
  Duration: 01:11:52.8, start: 0.276122, bitrate: 1745 kb/s
  Stream #0.0[0x1e0], 25.00 fps(r): Video: mpeg2video, yuv420p, 320x576,
4200 kb/s
  Stream #0.1[0x69]: Data: 0x0000
  Stream #0.2[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
0: start_time: 0.036 duration: 204.743
1: start_time: 183.390 duration: 204.794
2: start_time: 0.025 duration: 204.699
stream: start_time: 0.276 duration: 4312.881 bitrate=1745 kb/s
2006-05-05 22:37:35.042 Skipping unsupported codec 2 on stream 1
2006-05-05 22:37:35.227 Did not find format for
2006-05-05 22:37:35.228 Opening /mnt/store/2052_20060501200200.mpg
[mpeg @ 0xb6285100]Parser not found for Codec Id: 94210 !
[mpeg @ 0xb6285100]Could not find codec parameters (Video: mpeg2video)
Input #0, mpeg, from '/mnt/store/2052_20060501200200.mpg':
  Duration: 01:11:52.8, start: 0.276122, bitrate: 1745 kb/s
  Stream #0.0[0x1e0], 25.00 fps(r): Video: mpeg2video, yuv420p, 320x576,
4200 kb/s
  Stream #0.1[0x69]: Data: 0x0000
  Stream #0.2[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
0: start_time: 0.036 duration: 204.743
1: start_time: 183.390 duration: 204.794
2: start_time: 0.025 duration: 204.699
stream: start_time: 0.276 duration: 4312.881 bitrate=1745 kb/s
2006-05-05 22:37:35.234 Skipping unsupported codec 2 on stream 1
ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --enable-shared-pp
--enable-shared --disable-static --enable-mmx --disable-altivec
--disable-debug --enable-mp3lame --disable-a52 --disable-a52bin
--enable-audio-oss --disable-v4l --disable-dv1394 --disable-dc1394
--disable-pthreads --enable-xvid --enable-libogg --enable-vorbis
--disable-theora --disable-dts --disable-network --enable-zlib
--enable-ffplay --enable-faad --enable-faac --disable-faadbin
--enable-gpl --enable-pp --disable-opts --build=i686-pc-linux-gnu
  built on Feb 15 2006 12:43:24, gcc: 3.4.4 (Gentoo 3.4.4-r1,
ssp-3.4.4-1.0, pie-8.7.8)
Input #0, mpeg, from '/mnt/store/2052_20060501200200.mpg':
  Duration: 00:37:55.0, start: 0.276122, bitrate: 3309 kb/s
  Stream #0.0[0x1e0], 25.00 fps: Video: mpeg2video, yuv420p, 320x576, 4200
kb/s
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
Assuming PAL for target.
Could not find input stream #0.2
mythburn.py (0.1.200604-1) starting up...
Process priority 8
script path:/usr/local/share/mythtv/mytharchive/scripts
myth share path:/usr/local/share/mythtv
passed job file: /mnt/tmp/mythburn/config/mydata.xml
passed progress log file: /mnt/tmp/mythburn/logs/progress.log
mythburn.py (0.1.200604-1) starting up...
Obtaining MythTV settings from MySQL database for hostname zeus
Obtaining date and time settings from MySQL database for hostname zeus
Processing Mythburn job number 1.
Options - mediatype = 0, doburn = 0, createiso = 1, erasedvdrw = 0
          savefilename = ''
Looking for: /usr/local/share/mythtv/mytharchive/themes/MythCenter/theme.xml
Loading font 0, /usr/local/share/mythtv/FreeSans.ttf size 23
Loading font 1, /usr/local/share/mythtv/FreeSans.ttf size 18
Loading font 2, /usr/local/share/mythtv/FreeSans.ttf size 16
wantIntro: 1, wantMainMenu: 1, wantChapterMenu:1, wantDetailsPage: 0
Final DVD Video format will be pal
There are 1 files to process
Pre-processing file '2052_20060501200200.mpg' of type 'recording'
          Jamie's Great Italian Escape
Video resolution is 320 by 576
*************************************************************
Processing file 2052_20060501200200.mpg of type recording
*************************************************************
File codec is 'mpeg2video'
Preferred audio languages eng and enm
Video id: 1e0, Audio1: 1c0 (MP2, N/A), Audio2: -1 (N/A, N/A)
Aspect ratio is 4:3
File is not DVD compliant - Re-encoding audio and video
ffmpeg -v 1 -i '/mnt/store/2052_20060501200200.mpg' -r pal -target dvd -b
3000 -s 720x576 -ab 192 -copyts -aspect 4:3
/mnt/tmp/mythburn/work/1/newfile2.mpg -map 0:0 -map 0:2
************************************************************
ERROR: Failed while running ffmpeg to re-encode video.
Command was ffmpeg -v 1 -i '/mnt/store/2052_20060501200200.mpg' -r pal
-target dvd -b 3000 -s 720x576 -ab 192 -copyts -aspect 4:3
/mnt/tmp/mythburn/work/1/newfile2.mpg -map 0:0 -map 0:2
************************************************************

Terminated


-- 
Robin Gilks






More information about the mythtv-dev mailing list