Results 1 to 7 of 7

Thread: MPEG2 to DIVX/XVID transcoding

  1. #1
    Join Date
    May 2007
    Beans
    2,334

    SOLVED: MPEG2 to DIVX/XVID transcoding

    Hi All,

    I have 3 tuner cards in my backend server (1xPVR-500 and 2xDVB-c) both of which produce MPEG2 output.

    I'm starting to get abit worried about the diskspace on my server (I still have about 800Gb free so I've got time before it gets critical).

    The question I have is "Is there a way that I can automatically transcode the recorded video to XVID/x264 but still keep the information in the mythTV SQL database?"

    I can export videos using mencoder to XVID which I can play on my frontend but I can't workout to "reimport" the video back into MythTV and update the skip list. I've tried just overwriting the MPEG2 file with the XVID file, then with mythcommflag but mythcommflag died with an error that it "waited too long when trying to read the ringbuffer".

    Regards
    Ian Dobson
    Last edited by ian dobson; August 8th, 2008 at 06:14 PM.
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

  2. #2
    Join Date
    Mar 2007
    Location
    Christchurch, NZ
    Beans
    3,239

    Re: MPEG2 to DIVX/XVID transcoding


  3. #3
    Join Date
    May 2007
    Beans
    2,334

    Re: MPEG2 to DIVX/XVID transcoding

    Hi,

    1) I've managed to export a small video using mencoder
    2) Using mythrebuilddatabase I can add a recording back to the SQL database but it doesn't appear to create a cut/skip list.

    It shouldn't be too hard to write a small perl script that dumps the program data from the DB, transcodes the video, "deletes" the old one then reimports the video using the data from (1), once I workout why mythrebuilddatabase doesn't recreate the skiplist.

    Regards
    Ian Dobson
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

  4. #4
    Join Date
    Feb 2008
    Beans
    123

    Re: MPEG2 to DIVX/XVID transcoding

    Quote Originally Posted by nickrout View Post
    Being the original supplicant on that thread I can vouch for the advice

    1. Edit the Transcoding MPEG2 Profile. This has to be done via mtyhfrontend.
    2. Set the Dest Codec to MPEG4 (Xvid)
    3. I set the bitrate to 1200, gave me good results
    4. Via Mythweb start a Transcoding job for a existing recording
    5. This transcodes the recoding in place and updates the myttv db appropriately. Does take a while to run though You can monitor the progress via the mythweb status page.


    My 1 Hour SD recordings (2.4GB) shrunk to 630MB on average. Quality was not noticeably effected.

    Automatic transcoding can be specified in the recording rule. Again I use mythweb to do this. Actually I use mythweb for everything except watching the videos

  5. #5
    Join Date
    May 2007
    Beans
    2,334

    Re: MPEG2 to DIVX/XVID transcoding

    Hi Lindsay.Mathieson,

    OK I think I've setup the transcode filter correctly but when I transcode a film I get a nuv file thats about 50% the size of the original file.

    Using GSPOT to examine the video file it appears to be a MPEG1 file.

    When I get back home at the weekend I'll have another look at it.


    Regards
    Ian Dobson
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

  6. #6
    Join Date
    Feb 2008
    Beans
    123

    Re: MPEG2 to DIVX/XVID transcoding

    This is the built in transcoder? not nuvexport?

    The builtin transcoder will still produce nuv files - nuv is just a wrapping format, the codec will be mpreg4.

  7. #7
    Join Date
    May 2007
    Beans
    2,334

    SOLVED: MPEG2 to DIVX/XVID transcoding

    Hi,

    I'm using the built in transcoder. After playing about abit I've found the nuv is a MPEG1 container, and I'm actually getting MPEG4 videos. So the problem is solved.

    I'm just supprised how quickly my backend (Q6600) can transcode from MPEG2 to MPEG4. It seems to transcode at about 60-90fps.

    Regards
    Ian Dobson
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •