[mythtv] mythreplex produces a video stream that mplex can't read (mytharchive)
Aran Cox
spin667 at mchsi.com
Wed Aug 2 17:39:33 UTC 2006
I have a recording made with a PVR-250 card that plays normally. I've
used the lossless mpeg2 cutting to remove the commercials. This was
done before I upgraded to SVN to try mytharchive. Mytharchive is
configured to use mythtranscode and not use FIFO's. (If I use FIFO's
I don't get the error messages from mplex, mplex just exits and
dvdauthor hangs.)
As for options I'm just trying to burn a DVD (the recording is already
720x480) using the simple-auto play option, no re-encoding, only the
one recording.
The issue seems to be that mythreplex complains about audio PTS
inconsistencies and the resultant video stream isn't recognized by
mplex (or the file command for that matter, it simply labels the file
as "data".)
I'm not sure if there is something really wrong with the original
recording, or if mythtranscode --mpeg2 isn't fixing something it could
be fixing, or if mythreplex has a bug, or if mplex is being too picky.
(However, like I said even the file command doesn't think the
work/1/stream.m2v file is an mpeg stream.)
These are the versions I am running:
mytharchive Revision: 10663
mjpegtools mplex-2 version 1.9.0 (2.2.7)
mythfrontend --version
Library API version: 0.19.20060708-1
Source code version: 10654
Options compiled in:
linux release using_lmsensors using_v4l using_oss using_alsa
using_ivtv using_dvb using_x11 using_xv using_xrandr using_frontend
using_backend
The recording was made under linux 2.6.14-1.1656_FC4 using these
packages for the ivtv drivers:
ivtv-kmdl-2.6.14-1.1656_FC4-0.4.2-101.rhfc4.at
ivtv-firmware-enc-2.04.024-8.at
This is under FC4 compiled with gcc version 4.0.2 20051125 (Red
Hat 4.0.2-8) (The only source built packages on the system are
mythtv, mythplugins, and mytharchive.)
I can provide a portion of or even all of the original recording if
anyone wants to look at it.
I'll attach the mythburn.log file as well.
That being said, mytharchive is fantastic (and my upgrade to mythtv
SVN was painless as well.) I have some other recordings that some
components of mytharchive seem to choke on as well. I'll try and get
some more detail and if this really is a bug I'll open a trac ticket
and put the details there.
Regards,
Aran
-------------- next part --------------
mythburn.py (0.1.20060729-1) starting up...
Process priority 8
script path:/usr/local/share/mythtv/mytharchive/scripts
myth share path:/usr/local/share/mythtv
passed job file: /tmp/config/mydata.xml
passed progress log file: /tmp/logs/progress.log
mythburn.py (0.1.20060729-1) starting up...
Obtaining MythTV settings from MySQL database for hostname cain
Obtaining date and time settings from MySQL database for hostname cain
Processing Mythburn job number 1.
Options - mediatype savefilename Looking for: /usr/local/share/mythtv/mytharchive/themes/Simple - 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: 0, wantMainMenu: 0, wantChapterMenu:0, wantDetailsPage: 0
Final DVD Video format will be ntsc
There are 1 files to process
Pre-processing file 'Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg' of type 'recording'
Justice League Unlimited
2006-08-02 11:50:52.542 Opening /var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg
Input #0, mpeg, from '/var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg':
Duration: 00:22:48.2, start: 0.312144, bitrate: 4954 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 6000 kb/s, 29.97 fps(r)
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
0: start_time: 0.028 duration: 123.144
1: start_time: 0.036 duration: 123.105
stream: start_time: 0.312 duration: 1368.267 bitrateI54 kb/s
2006-08-02 11:50:52.556 duration Video resolution is 720 by 480
*************************************************************
Processing file Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg of type recording
*************************************************************
File type is 'mpeg'
Video codec is 'mpeg2video'
Running mythtranscode --mpeg2 to fix any errors
2006-08-02 11:50:52.920 Using runtime prefix 2006-08-02 11:50:53.059 New DB connection, total: 1
2006-08-02 11:50:53.070 Enabled verbose msgs: important
2006-08-02 11:50:53.075 New DB connection, total: 2
Mux rate: 6.49 Mbit/s
ICE default IO error handler doing an exit(), pid Failed while running mythtranscode to cut commercials and/or clean up an mpeg2 file.
Result: 256, Command was mythtranscode --mpeg2 -c 1053 -s 2006-02-25T21:29:00 -o /tmp/work/1/newfile.mpg
Failed to run mythtrancode to fix any errors
2006-08-02 11:52:04.888 Opening /var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg
Input #0, mpeg, from '/var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg':
Duration: 00:22:48.2, start: 0.312144, bitrate: 4954 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 6000 kb/s, 29.97 fps(r)
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
0: start_time: 0.028 duration: 123.144
1: start_time: 0.036 duration: 123.105
stream: start_time: 0.312 duration: 1368.267 bitrateI54 kb/s
2006-08-02 11:52:04.966 Calculating frame count
2006-08-02 11:52:24.459 frames 2006-08-02 11:52:24.495 duration Preferred audio languages eng and eng
Video id: 0x1e0, Audio1: [1] 0x1c0 (MP2, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)
Splitting MPEG stream into audio and video parts
Running: mythreplex --demux -o /tmp/work/1/stream -v 224 -a 192 "/var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg"
Reading from /var/video/video/Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg
Input file length: 808.18 MB
Checking for TS: failed
Checking for AVI: failed
Checking for PS: confirmed(maybe)
Video: aspect ratio: 4:3 size vbvbuffer 1835008
Sequence Extension: chroma 4:2:0 size starting with video PTS: 0:00:00.378
Audiostream: layer: 2 BRate: 384 kb/s Freq: 48.0 kHz frame size: 1152 ( 0:00:00.024 ) starting audio PTS: 0:00:00.396
Video output File is: /tmp/work/1/stream.mv2
Audio0 output File is: /tmp/work/1/stream0.mp2
STARTING DEMUX
read 1%
read 2%
read 3%
read 4%
read 5%
read 6%
read 7%
read 8%
read 9%
read 10%
read 11%
read 12%
read 13%
read 14%
read 15%
read 16%
read 17%
read 18%
read 19%
read 20%
read 21%
read 22%
read 23%
read 24%
read 25%
read 26%
read 27%
read 28%
read 29%
read 30%
read 31%
read 32%
read 33%
read 34%
read 35%
read 36%
read 37%
read 38%
read 39%
read 40%
read 41%
read 42%
read 43%
read 44%
read 45%
read 46%
video PTS inconsistent: 0:10:31.175 0:10:31.175 0:10:30.675 0:10:30.296 diff: 0:00:00.500
video PTS inconsistent: 0:10:31.209 0:10:31.209 0:10:30.708 0:10:30.329 diff: 0:00:00.500
read 47%
read 48%
read 49%
read 50%
read 51%
read 52%
read 53%
read 54%
read 55%
read 56%
read 57%
read 58%
read 59%
read 60%
read 61%
read 62%
read 63%
read 64%
audio PTS inconsistent: 0:14:45.402 0:14:45.360 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.450 0:14:45.408 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.498 0:14:45.456 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.522 0:14:45.480 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.570 0:14:45.528 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.618 0:14:45.576 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.666 0:14:45.624 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.690 0:14:45.648 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.738 0:14:45.696 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.786 0:14:45.744 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.834 0:14:45.792 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.858 0:14:45.816 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.906 0:14:45.864 diff: 0:00:00.042
audio PTS inconsistent: 0:14:45.954 0:14:45.912 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.002 0:14:45.960 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.026 0:14:45.984 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.074 0:14:46.032 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.122 0:14:46.080 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.170 0:14:46.128 diff: 0:00:00.042
audio PTS inconsistent: 0:14:46.194 0:14:46.152 diff: 0:00:00.042
.... thousands of lines deleted...
audio PTS inconsistent: 0:22:47.710 0:22:47.640 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.758 0:22:47.688 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.782 0:22:47.712 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.830 0:22:47.760 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.878 0:22:47.808 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.926 0:22:47.856 diff: 0:00:00.070
audio PTS inconsistent: 0:22:47.950 0:22:47.880 diff: 0:00:00.070
read 100%
audio PTS inconsistent: 0:22:47.998 0:22:47.928 diff: 0:00:00.070
video PTS inconsistent: 0:22:48.745 0:22:48.745 0:22:48.812 0:22:48.433 diff: 0:00:00.066
audio PTS inconsistent: 0:22:48.046 0:22:47.976 diff: 0:00:00.070
video PTS inconsistent: 0:22:48.779 0:22:48.779 0:22:48.845 0:22:48.467 diff: 0:00:00.066
video PTS inconsistent: 0:22:48.812 0:22:48.812 0:22:48.879 0:22:48.500 diff: 0:00:00.066
Extracting thumbnail image from /tmp/work/1/stream.mv2 at position 0
Destination file /tmp/work/1/thumbnail.jpg
2006-08-02 11:54:20.352 Opening /tmp/work/1/stream.mv2
*************************************************************
Finished processing file Justice_League_Unlimited_-_2006-02-25,_9-29_PM_-_Patriot_Act.mpg
*************************************************************
Creating DVD XML file for dvd author (No Menus)
Adding item 1
Total size of video files, before multiplexing, is 733 Mbytes, audio is 62 MBytes, menus are 0 MBytes.
Video will fit onto DVD. 3650.35 MBytes of space remaining on recordable DVD.
Multiplexing MPEG stream to /tmp/work/1/final.mpg
Available streams - video and one audio stream
**ERROR: [mplex] File /tmp/work/1/stream.mv2 unrecogniseable!
**ERROR: [mplex] Unrecogniseable file(s)... exiting.
************************************************************
ERROR: mplex failed with result 1
************************************************************
chmod: changing permissions of `/tmp': Operation not permitted
chmod: changing permissions of `/tmp/lost+found': Operation not permitted
chmod: `/tmp/lost+found': Permission denied
chmod: changing permissions of `/tmp/.ICE-unix': Operation not permitted
chmod: changing permissions of `/tmp/.font-unix': Operation not permitted
chmod: changing permissions of `/tmp/.font-unix/fs7100': Operation not permitted
chmod: changing permissions of `/tmp/.X11-unix': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_post_OHNov8': Operation not permitted
chmod: changing permissions of `/tmp/ooo': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_result_Q5AERe': Operation not permitted
chmod: changing permissions of `/tmp/cain-home-lis': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_cookies_WTyUdl': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_post_Qubvhd': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_result_Vi3le6': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_cookies_wGXcbZ': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_post_0J0zey': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_result_OiGuGI': Operation not permitted
chmod: changing permissions of `/tmp/mythtv_cookies_rGsp8S': Operation not permitted
chmod: changing permissions of `/tmp/ssh-BkuAe26513': Operation not permitted
chmod: `/tmp/ssh-BkuAe26513': Permission denied
Terminated
More information about the mythtv-dev
mailing list