View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 03, 2005 11:57 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
I tried using nuv2disc to burn some of my DVB recordings and ran into a few problems. The first problem was, nuv2disc did not recognise any of my recordings as DVD resolution Mpeg-2 files. The program it uses to do this is mpgtx (in the script statuscheck.sh). Jams helped me work out what was wrong and gave me a replacement statuscheck.sh that uses tcprobe to identify the mpeg2 files. The function he changed is shown below:
Code:
function mpeg_true ()
#Checks to see if a file is an mpeg and creates the link's
{
  Totalfiles=0
  TotalDVDREADY=0
  TotalNONDVD=0
  for i in `ls  $RECORDDIR`
  do
    if  [ -f $RECORDDIR/$i ] # && [ -z `grep $i $ALREADYTRANSLIST` ]
    then
    {
      grablink $RECORDDIR/$i
      Totalfiles=$(( Totalfiles + 1 ))
         tcprobe -i $RECORDDIR/$i  2>&1  |grep -q "MPEG"
          #    $MPGTX -i $RECORDDIR/$i  2>&1 |grep -q "Mpeg 2 Program Stream File"
            dvdreadympeg=$?  #0 is an mpeg
            
       if [ $dvdreadympeg -eq 0 ]
         then
              MYRES=`tcprobe -i $RECORDDIR/$i |grep  -i "frame size" |cut -d[  -f 1 |awk   ' { print $NF } '`
           
         #MYRES=`$MPGTX -i $RECORDDIR/$i |grep Size |cut -d[  -f 2 | cut -d] -f 1`
                 #if [ "$MYRES"  = "720 x 480" ]   || [ "$MYRES" = "352 x 480" ] ||  [ "$MYRES" = "720 x 576" ] ||  [ "$MYRES" = "704 x 576" ]
                 if [ "$MYRES"  = "720x480" ]   || [ "$MYRES" = "352x480" ] ||  [ "$MYRES" = "720x576" ] ||  [ "$MYRES" = "704x576" ]
                then
             dvdreadympeg=0
      #       echo $i is dvd ready $MYRES
             else
             dvdreadympeg=2
      #       echo $i is not dvd ready $MYRES
              fi
          else
           echo "$i is not mpeg 2"
             fi
         
         if [ -f $RECORDDIR/$i ]
         then
            {
            if [  $dvdreadympeg -ne 0  ]
            then
            {
               mpeg_string="This is not an mpeg2 file, please transcode $i"
              if [ -e $NONMPEGDIR/$i ]
             then
                   link_string="Already there non-mpeg $1"
              else
               ln -s  $LINKNAME $NONMPEGDIR/$i
             fi
            TotalNONDVD=$((TotalNONDVD + 1 ))
                   }
            else   
               {
                mpeg_string="This is a mpeg2 file   $i"
               if [ -e $MPEGDIR/$i ]
                   then
                      link_string="Already there mpeg $i"
                 else
                 ln -s  $LINKNAME $MPEGDIR/$i
            fi      
            
             TotalDVDREADY=$(( TotalDVDREADY + 1 ))
             }
             fi
#          echo $mpeg_string
            }
      fi
    }
    fi
  done
#didn't use log function so the date is not appended.
    echo "Total files ready for dvd selection: $TotalDVDREADY"  >>$MAINLOG
    echo "Total files for transcoding: $TotalNONDVD"  >> $MAINLOG
    echo "Total recordings found: $Totalfiles"  >> $MAINLOG
  echo $TotalNONDVD
  echo $TotalDVDREADY
  echo $Totalfiles
return $status
}
After fixing this I could select my mpeg2 recordings (some of which I had used commercial_cut to remove ads from), but then it ran into an error using mplex to re-multiplex the streams into DVD compliant format. Jams suggested I try replex as this was designed for DVB streams. I downloaded the source from here built it and made the following change in cdvd.sh
Code:
   log "Start mplex of $myshortname"
#   mkfifo myaud0
#   mkfifo myvid0
#   mpeg2desc -a0 < "$INFILE" > myaud0 &
#   mpeg2desc -v0 < "$INFILE" > myvid0 &
#   mplex -v0  -f 8 -V -o dvdmpg$ii myaud0 myvid0
#    rm myaud0
#    rm myvid0

   echo "/usr/local/bin/replex -t DVD -k -o dvdmpg$ii $INFILE"
   /usr/local/bin/replex -t DVD -k -o dvdmpg$ii "$INFILE"
This got me as far as the point where it would attempt to burn to dvd. A little bit of poking around and I realised that it was trying to use the /dev/scd0 device which, with the deprecation of scsi emulation and all, is not the right device to use. I changed /dev/scd0 to /dev/dvd in commonvars and it now works a treat (with the exception of blueish upsidedown images in the menus), but I mostly want to make DVDs without menus anyway.

I have three questions:

1. Are the changes to the statuscheck script something that will also work for people burning PVR recordings, and if so, can we get nuv2disc patched so it does it this way and works for both PVR and DVB?

2. Does replex work for PVR recordings, and if not, is there a reliable way to detect if a recording is a DVB recording requiring the use of replex or a PVR recording requiring the use of mplex?

3. Shouldn't nuv2disc be patched to use /dev/dvd (or at least /dev/cdrom) instead of /dev/scd0 by default?


Last edited by Greg Frost on Sat Jun 04, 2005 6:37 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 7:37 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
Quote:
1. Are the changes to the statuscheck script something that will also work for people burning PVR recordings, and if so, can we get nuv2disc patched so it does it this way and works for both PVR and DVB?

2. Does replex work for PVR recordings, and if not, is there a reliable way to detect if a recording is a DVB recording requiring the use of replex or a PVR recording requiring the use of mplex?

3. Shouldn't nuv2disc be patched to use /dev/dvd (or at least /dev/cdrom) instead of /dev/scd0 by default?


1) yes tcprobe will work just fine for pvr recordings
2) it should..but haven't tested it.
Something that jumps to mind is to try mplex first and if that fails try replex.

3) The dvd recorder device jumps around depending on your kernel and system setup. It's almost impossible to find a setting that will work for everybody, which is why its a setting in commvars.

The latest nuv2disc has an option to create dvd's without menus, which I think was something your looking for.

Finally for your blueish upside down menus either add or remove the -z flag from the transcode command in dvdcpics.

-jams


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 04, 2005 6:34 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
jams wrote:
3) The dvd recorder device jumps around depending on your kernel and system setup. It's almost impossible to find a setting that will work for everybody, which is why its a setting in commvars.

I know it's difficult, but if the cdrom/dvd linking script works correctly when you install Knoppmyth, it should link /dev/cdrom and /dev/dvd to the right place. For those where it doesn't work, they can link them to the appropriate place themselves, or work out a way to detect the correct target for the link on their system and help cesman update the linking script.

I havent played with nuv2disc much but i see that it has some sort of VCD capability which I presume means that some people may want to burn to CD instead of DVD. Because of this possibility, I suggested using /dev/cdrom by default instead of /dev/dvd. This should work as people intend for almost everyone (with the possible exception of those with more than one optical drive in their myth box).


Top
 Profile  
 
 Post subject: Comercial Cutting
PostPosted: Thu Jun 23, 2005 5:50 am 
Offline
Joined: Sun Jun 05, 2005 12:46 am
Posts: 15
Greg,
Now that I have soughted out all my install problems. I am a little confused about recording to disc. I did a sample a record and tried to burn it to disc and found there was no video available. From reading your original post I gues I will need to edit the mpgtx script.

The next question I had is with commercial cutting/skipping. Do you have to manualy flag the commercials? I was under the impression that MYTH did it automatically.

I think I am missing something here?

cheers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 6:11 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Myth *attempts* to automatically flag commercials, but it is not always 100% accurate. I have never tried to use it, so i'm only going on heresay. There is a key press when you are in edit mode to bring in the commercial detect marks as cut points. I have always entered my cut points manually.

mpgtx is a program not a script and it doesnt seem to work for dvb recordings. You need to make the changes described above to the statuscheck.sh script that is part of nuv2disc so that it doesnt use mpgtx. You will also need to change cdvd.sh as shown above.

Even then Im not sure the burning to disc will work. I'm not sure i've fully sorted that out on my own system yet (but it should create the .iso which is easy to burn to disc from the command line).


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu