Automatic commercial cutting & transcoding to xvid | Page 3

Discussion in 'Tips and Tricks' started by Noelix, June 15, 2006.

  1. blueskies

    blueskies New Member

    Joined:
    July 20, 2006
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    Thanks a lot for these guides guys.. they've helped me tons. The only problem I'm having is that neither MP or Windows Media Player will play the xvid encoded movies. They play fine in VLC; the only problem I see is that the total movie length is always at 0:00:00. I've uninstalled and reinstalled the xvid codecs, but is there a way to get WMP to use/understand them? Seems like any easy fix but I just can't figure it out. Thanks.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. EPGsetup

    EPGsetup Portal Member

    Joined:
    July 17, 2006
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    Re: What's wrong???

    Mencoder isn't working, the batch file steamrolls over the error, and deletes the file then breaks.

    Shattik batch file:
    Code (Text):
    1. :delete
    2.  if "%testmode%" == "yes" goto eof:
    3.    del /q "%~dpn1_original.mpg"
    4.    del /q "%~dpn1_original.avi"
    5.  if "%mpegdel%" == "mpegdel" goto eof:
    6.    del /q "%~dpf1" <<---- Delete this line (temporarily)
    7.  
    Remove that one line from the Shattik batch file and run it manually from the command prompt to see what the error is - it won't delete the file if you remove that line. I am pretty sure there is a mistake in your file when it goes to encode.

    Code (Text):
    1. shattik_transcode.bat "yourfilegoeshere.dvr-ms"
    or, try playing the file in mplayer. If there is an error it will spew out there.

    Code (Text):
    1. mplayer -demuxer 35 "yourfile goes here.dvr-ms"
    Final guess, you added <Enter>'s/newlines in Shattik's batch file. This is the silliest, and most probable, error. That line should be one, contiguous line. I can't help you beyond that.
     
  4. EPGsetup

    EPGsetup Portal Member

    Joined:
    July 17, 2006
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    Easiest way is to get Gspot. Ignore the name - it is quite clean - and simply a codec analysis utility. You can load a media file and attempt to render it, and it will let you know which filters it is using (or are missing) to make the video file appear on the screen.

    Fire that up, load the Xvid made by the encoding, and it will let you know if there is a missing audio or video filter. VLC uses built in filters (mplayer does too), but everything else for the most part uses DirectShow filters.

    I'd recommend using Koepi's Xvid binaries. Google will find you his page for the latest version.
     
  5. baloubic

    baloubic Portal Member

    Joined:
    June 10, 2006
    Messages:
    32
    Likes Received:
    1
    Ratings:
    +1 / 0
    Thanks m8, really appreciate your help!

    I ran stattik_transcode.bat in dos after having run comskip manually on a file. The problem seems to be that the program simply can't find the file to cut/encode when it's beeing run automatically.

    So I tried to drag&drop the dvr-ms file on stattik_transcode.bat and now mplayer in creating an avi file on my hard drive as I write this.

    Code (Text):
    1. :nodebug
    2. set name=%1
    3. copy "%~dpn1.edl" "%~dpn1.ptl"
    This generates ".edl" and ".ptl" files that naturally aren't found.

    Code (Text):
    1. :nodebug
    2. set name=D:\Recordings\myrecordedprogram.dvr-ms
    3. copy "D:\Recordings\myrecordedprogram.dvr-ms.edl" "D:\Recordings\myrecordedprogram.dvr-ms.ptl"
    Is what the script does when I drag&drop the file onto the script.


    I guess it's a dirmon problem then, somethings with the targets(dvr-ms,DVR-MS) not working... Strange, because it's setup the exact same way as in your pictures. I'll try rename the recordings directory to a name without spaces to see if that has any effect, when the ongoing mencoder encoding is done. Not that I think that has anything to do with it...

    Edit: Switching to a directory name without spaces for the dvr-ms-files made the stattik.bat script work. The only problem remaining is that they're, like blueskies noted above, unplayable (bad header)
     
  6. baloubic

    baloubic Portal Member

    Joined:
    June 10, 2006
    Messages:
    32
    Likes Received:
    1
    Ratings:
    +1 / 0
    I've got the same problem as blueskies now, with the file mencoder created.

    Gspot says it's an xvid, but with a bad header. Dunno why ?
     
  7. blueskies

    blueskies New Member

    Joined:
    July 20, 2006
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    I thought I'd solved this problem, but I'm not sure. At first I thought that it was because the batch files were using the wrong profile on the files. I edited the :standard line, but was using eps of Family Guy to test, which were being sent to the :cartoon profile instead. So I added the "-demux 35" and "-idx" to all the profiles, and now it's hit or miss. Some shows are encoded perfectly, others aren't and only play in VLC.

    What would be a good way to filter all file to go to one profile? (or is this a bad idea?) I was thinking of sticking this line...

    Code (Text):
    1. if exist "_" goto standard:
    ...before all the other "if exist"s.
     
  8. Noelix

    Noelix Portal Pro

    Joined:
    February 18, 2006
    Messages:
    393
    Likes Received:
    1
    Occupation:
    Flash Designer
    Location:
    Salt Lake City, UT
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    Thanks EPGsetup for continuing to help people out with the process. I myself got fed up with comskip after it cut off the dramatic ending of an episode of Monk so I removed it from the process altogether. Also, AutoDVRconvert has issues in that it does not always delete the .dvr-ms file or just does not recognize a .dvr-ms file in the directory and won't convert it even if you ask it nicely (aka try to convert it manually instead of automatically).

    So for the DVR-MS to MPEG conversion I've been using MP's internal "Compress" feature (note that unfortunately the auto-compress feature does not work and neither do the dvr-ms to xvid or wmv conversions), and then I have Dirmon2 detecting the created mpeg file and encoding it using stattik's script. I haven't had any avi indexing problems with this process so I don't know what the dealy there is (maybe the dvr-ms to avi direct compression?), but I have had issues with Dirmon2 as well - and in case you were keeping track, Dragon Global released a newer version of the program that fixes some bugs.

    The process I have now isn't perfect but I feel that the best way for all of us to benefit the most is to get an automated process worked into MP itself, so that's what I'm hoping happens down the line. From the looks of the 'compress' section it looks planned, just not implemented.
     
  9. Noelix

    Noelix Portal Pro

    Joined:
    February 18, 2006
    Messages:
    393
    Likes Received:
    1
    Occupation:
    Flash Designer
    Location:
    Salt Lake City, UT
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    Just look for "family guy" in the code and remove it if you don't want it to go to the cartoon profile. Honestly I haven't seen much of a difference between standard and cartoon profiles anyways.
     
  10. blueskies

    blueskies New Member

    Joined:
    July 20, 2006
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    The problem was more certain shows using different profiles that weren't edited (-demux, -idx, -whatever). I was looking for a way to filter any file to go though the standard profile, rather than editing each one.

    Either way, I'm not using this anymore. The setup is pretty much perfect, but I don't really like 1) comskip cutting things incorrectly, and 2) not seeing the info for the show when I select it. I figure, I've got a 250gb hdd holding these recordings, I don't really need to worry about space too much. :D
     
  11. EPGsetup

    EPGsetup Portal Member

    Joined:
    July 17, 2006
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    Well, I shate Noelix's observation. Comskip keeps getting false positives, even with Motorweek on PBS. However, I am willing to bear with it a bit longer till I get everything slick.

    I have continued to edit Stattik's batch file adding fixes here and there, and as it stands I have it so it WILL NOT delete the source file if there is an error encoding it. Also, it automatically uses the right parameters for a DVR-ms instead of a MPG.

    As for bluesky's wish to have everything go to a single profile, that is easily accomplished. Right below the :mpg subsection, add the words GOTO standard:. That basically shortcuts all the other profiles.

    Right now I am trying to keep all the profiles as generalized as possible, so I am basically reverse enginineering the entire stattik script Noelix posted. I'm linking that below. Not linked yet
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!