NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) v
« Previous 1 2 3 4 5 6 … 125 Next »
Automated Cutting and Transcoding Guide Using Mencoder

 
  • 0 Vote(s) - 0 Average
Automated Cutting and Transcoding Guide Using Mencoder
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#341
2007-05-04, 06:50 PM
blizard Wrote:How do I use your script stattik? I have read this thread and wiki, but got lost on the way. Where do I start?

I would like to try to cut out commercials to shorten transcode time and to get a better file size. Transcode for even smaller files size before watching the show. As I understand it your script offer these option and can do this with no human interference when it is set up correctly.

Would be thankful to know where I can find your script and how to use it. I have downloaded comskip79_95.zip, but will first read more on how to use it before I install it.

/blizard

First, I would get comskip working to make sure you're happy with the commercial detection. Open comskip.ini and set output_edl=1. Then drop the file on comskip. When comskip is done, drop the txt file created by comskip onto comskip. This will open up a window where you can verify the commercials were detected correctly.

After you're happy with comskip, you can find my scrip here:

http://gbpvr.com/pmwiki/pmwiki.php/Utili...anscodeCut

There's also a link to download mplayer/mencoder.

To configure my script, open it up in a text editor and fill in the quickstart section (4 variables). Be sure not to include any spaces. If you want my script to run comskip on all files then also SET comskipmode=yes (you'll find that option in the section below the quickstart.)

That should be all that is needed. The run my script on shows, drop the shows onto the script.

Good luck.
blizard
Offline

Member

Posts: 98
Threads: 14
Joined: Jan 2006
#342
2007-05-08, 06:39 PM
-stattik- Wrote:First, I would get comskip working to make sure you're happy with the commercial detection. Open comskip.ini and set output_edl=1. Then drop the file on comskip. When comskip is done, drop the txt file created by comskip onto comskip. This will open up a window where you can verify the commercials were detected correctly.

After you're happy with comskip, you can find my scrip here:

http://gbpvr.com/pmwiki/pmwiki.php/Utili...anscodeCut

There's also a link to download mplayer/mencoder.

To configure my script, open it up in a text editor and fill in the quickstart section (4 variables). Be sure not to include any spaces. If you want my script to run comskip on all files then also SET comskipmode=yes (you'll find that option in the section below the quickstart.)

That should be all that is needed. The run my script on shows, drop the shows onto the script.

Good luck.

Thanks stattik!

Do I need to have both comskip enabled in GBPVRs config or is enough to set it to SET comskipmode=yes in your script?

I have had a hard time to figure out exactly what setting in GBPVR that should enabled or disabled to make comskip first to run, create EDL and txt file and use those to encode a commercial free AVI in Xvid. Is it even possible to use AAC instead of mp3 encoding? I tried to find experiment with MEncoder to create AAC, but I must have made something wrong as I could not get it to work. It was in normal command mode, so I might have arranged command in the wrong way or something.

What I wish to do is first make comskip run, take comskips data and use it without cleaning (Comclean) if it is possible and encode only those blocks that are commercial free.

Will this script now run in the background and check for new recording to auto comskip and encode or do I need to use another configuration in GBPVR to get it working?
Abit AT8-32X/Athlon64 X2 4200+@2200Mhz/2GB DDR RAM/Samsung 2x 250 GB/Club3D X1950XT+PowerColor Theatre 550 pro (PCIe x1)
CRT 19 inch/ 1600 x 1200 pxl/32 bit colour
Logitech Z-5400 surround system - DDL/DD ProLogic2 (96kHz/24kbit)/DTS decoder


[COLOR="Blue"]OS: Windows XP Pro x64 edition.
PVR: GBPVR v.1.1.15;MPC+FFDshow+Haali splitter and renderer (use SM 2.0 on videocard);Avidemux+AutoMen+MPlayer/MEncoder/Stattik batch file[/COLOR]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#343
2007-05-09, 05:13 AM
Quote:Do I need to have both comskip enabled in GBPVRs config or is enough to set it to SET comskipmode=yes in your script?

You can do either. Typically I set comskip in parallelprocessing.bat.

Quote:I have had a hard time to figure out exactly what setting in GBPVR that should enabled or disabled to make comskip first to run, create EDL and txt file and use those to encode a commercial free AVI in Xvid.

Make sure comskip.exe and comskip.ini are in your gbpvr folder. Open up comskip.ini and set output_edl=1. You can choose comskip in the processing tab or add create a parallelprocessing.bat file and add the following line to it:

comskip.exe %1

Quote: Is it even possible to use AAC instead of mp3 encoding? I tried to find experiment with MEncoder to create AAC, but I must have made something wrong as I could not get it to work. It was in normal command mode, so I might have arranged command in the wrong way or something.

AAC audio is possible with mencoder if it was compiled with aac support. The script doesn't support it yet. I've only started testing aac and x264 today.

Quote:What I wish to do is first make comskip run, take comskips data and use it without cleaning (Comclean) if it is possible and encode only those blocks that are commercial free.

Yes, that's what the EDL file is for.

Quote:Will this script now run in the background and check for new recording to auto comskip and encode or do I need to use another configuration in GBPVR to get it working?

The script will run in the background. It will search the directories you set for EDL files. When it find the EDL files, it will process the corresponding mpg file.
blizard
Offline

Member

Posts: 98
Threads: 14
Joined: Jan 2006
#344
2007-05-11, 04:37 PM
-stattik- Wrote:You can do either. Typically I set comskip in parallelprocessing.bat.

Make sure comskip.exe and comskip.ini are in your gbpvr folder. Open up comskip.ini and set output_edl=1. You can choose comskip in the processing tab or add create a parallelprocessing.bat file and add the following line to it:

comskip.exe %1

AAC audio is possible with mencoder if it was compiled with aac support. The script doesn't support it yet. I've only started testing aac and x264 today.

Yes, that's what the EDL file is for.


The script will run in the background. It will search the directories you set for EDL files. When it find the EDL files, it will process the corresponding mpg file.

Thanks for the script Stattik! Big Grin

I have had the script to run in auto mode a couple of times with postprocessing.bat (renamed your original bat file) and I have changed the script a little, but then it was no go...:confused: ...so it was to copy back what I have changed for portable device. Is it possible to make a script to convert for my Sony Ericsson Walkman to 3GP? Earlier before I did use SUPER (GUI for both FFmpeg and MEncoder) to convert files. I used Xvid setting with a bit rate of 144 kpbs and AAC sound (96 or 112 kbps) and it worked well on my mobile (cellphone). The screen are 176 x 220, but when I used SUPER it had a resolution at 176 x 144, is it possible to use fullscreen by first turning image around 90 degree and scale to correct size?

To be able to change the portable section in your bat file I would like to know more about the different variables and how to interpret their action. As now I have read wiki about bat files on this forum, used mplayer/mencoder documents and readme learn how to set option and what they do and run my file system to see how GBPVR, this bat file and other files (comskip etc) are related.

I have added my postprocessing.bat so you and other interested can see what I have and what I need to change. I am not sure I understand what secondary_transcode_directory are meant to do as all my recording are made on only one partition (cSmile and the transcoded to the same folder where they will be replaced by the smaller AVI (Xvid) without any commercial.

Could you explain how these option for user setting work when it is down to setting correct profile and which option that are auto detected? Do cartoon profile only kick in for "cartoon" when it is enabled in a profile (cartoon+twopass) or is it for every recording and what must be identified in those setting with double quotas to make this happen?

I wouldn't mind to help to create a better wiki so those features come clearer to the end user. For me it has taken a lot of time just to understand how postprocessing might work and what must or must not be enabled (or changed) so it will work.

Once more thanks for a very great script that make it possible to cut down some work to clean and transcode files. Smile
Abit AT8-32X/Athlon64 X2 4200+@2200Mhz/2GB DDR RAM/Samsung 2x 250 GB/Club3D X1950XT+PowerColor Theatre 550 pro (PCIe x1)
CRT 19 inch/ 1600 x 1200 pxl/32 bit colour
Logitech Z-5400 surround system - DDL/DD ProLogic2 (96kHz/24kbit)/DTS decoder


[COLOR="Blue"]OS: Windows XP Pro x64 edition.
PVR: GBPVR v.1.1.15;MPC+FFDshow+Haali splitter and renderer (use SM 2.0 on videocard);Avidemux+AutoMen+MPlayer/MEncoder/Stattik batch file[/COLOR]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#345
2007-05-11, 06:35 PM
Quote:Is it possible to make a script to convert for my Sony Ericsson Walkman to 3GP?

Sure, post the mencoder command line that worked for you in SUPER.

Quote: is it possible to use fullscreen by first turning image around 90 degree and scale to correct size?

I've never tried it but I believe I could get it working.


Quote:To be able to change the portable section in your bat file I would like to know more about the different variables and how to interpret their action.

The portable section of the script is set up specifically for iPods and PSP's. The script would have to be modified to create 3GP-compatible files. I'll know more when you posted the mencoder command lines from SUPER.

Quote:I am not sure I understand what secondary_transcode_directory are meant to do as all my recording are made on only one partition (cSmile and the transcoded to the same folder where they will be replaced by the smaller AVI (Xvid) without any commercial.

The secondary_transcode_directory will transcode all matching files in the directory and all subdirectories. Only one variable is allowed.

The transcode_directories option allows for multiple directories to be listed but doesn't search subdirectories.

It sounds like SET secondary_transcode_directory=C:\ would be the best setting for you.


Quote:Could you explain how these option for user setting work when it is down to setting correct profile and which option that are auto detected? Do cartoon profile only kick in for "cartoon" when it is enabled in a profile (cartoon+twopass) or is it for every recording and what must be identified in those setting with double quotas to make this happen?

SET profile= Every file will be flagged with this by default. In your case SET profile=twopass will process every show in twopass mode.

Below that there are profile patterns:

SET cartoon_patterns="Teen Titans"

If a show called Teen Titans_20070509_21002200 was recorded it would be flagged with the twopass and cartoon profiles. Just make sure that the exact name is used. "Teen titans" would not work. Other shows would just be processed in twopass.
wake
Offline

Junior Member

Posts: 16
Threads: 2
Joined: Apr 2005
#346
2007-06-02, 10:31 PM
I am running into a slight issue where ComSkip runs and creates the edl file, but the commercials end up not being cut from the encoded file. The encoded file looks great otherwise.

I am using the script v0.3.1a (4b does not work for me, it just errors out and I didn't want to mess with it so I just went back to a previous version that worked. If you would like I could post logs of 4b for your troubleshooting needs.)

Various mencoder versions have produced the same result, leaving the commercials.

I set the buffer on my command prompt window to 999 but it seems to not have saved all of the log. If the beginning of the log is needed let me know and I'll run it again and see if I can grab it.

Thanks!
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#347
2007-06-03, 03:54 AM
wake Wrote:I am using the script v0.3.1a (4b does not work for me, it just errors out and I didn't want to mess with it so I just went back to a previous version that worked. If you would like I could post logs of 4b for your troubleshooting needs.)

0.5.1 will be out soon so I'd wait for that to test.
Quote:Various mencoder versions have produced the same result, leaving the commercials.

The reason it's not working is because you're using a TS file. Mencoder uses the actual PTS stamps on the file which don't always start at 0. Download and use comskip 79.97 and add the following line to your comskip.ini.

enable_mencoder_pts=1

You should see an edl file with numbers somewhat like this:

Code:
40502.74    40648.15    0
41269.47    41505.60    0
42111.11    42300.80    0

I've just started testing this with my TS files so I'd be curious how it works out for you.
wake
Offline

Junior Member

Posts: 16
Threads: 2
Joined: Apr 2005
#348
2007-06-03, 06:54 PM
Not a problem stattik, I will test and let you know.

Thanks
wake
Offline

Junior Member

Posts: 16
Threads: 2
Joined: Apr 2005
#349
2007-06-03, 08:42 PM
Excellent, worked perfect with comskip 79.97 and enable_mencoder_pts=1.

Thanks a lot, greatly appreciated!
qam1600
Offline

Junior Member

USA
Posts: 39
Threads: 4
Joined: Jun 2007
#350
2007-06-23, 01:47 AM
I have an HVR-1600 and am trying to transcode HDTV MPEGs to DVD-compatible MPEGs. The script works for 1080i but won't work for 720p. I turned on debugging mode but can't figure out what is wrong?
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (89): « Previous 1 … 33 34 35 36 37 … 89 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Yet another guide enhancer :0) carpeVideo 18 10,395 2010-04-07, 03:39 PM
Last Post: carpeVideo
  Guide Questions native 6 4,282 2010-02-10, 01:23 PM
Last Post: native
  Mencoder with multiple TS audio streams lanmat 2 4,624 2009-11-09, 12:15 PM
Last Post: lanmat
  mencoder error messages fvfv 3 2,868 2009-10-19, 08:07 PM
Last Post: -stattik-
  TV guide table colour Pob 3 2,505 2009-09-21, 10:55 PM
Last Post: Snooze
  Searching Guide Contents skycyclepilot 1 2,034 2009-08-23, 03:30 PM
Last Post: McBainUK
  Search for Movies in TV Guide spdrac1 1 2,042 2009-05-23, 03:37 PM
Last Post: JavaWiz
  MPEG2 transcoding to Xvid/AAC -which plug-in/tool are best fit? blizard 6 5,144 2009-03-01, 05:43 PM
Last Post: Deusxmachina
  Warning: Mencoder and large MPEG2 files can fail jam_zhou 1 1,705 2008-07-26, 01:39 AM
Last Post: sgilani
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,771 2008-03-27, 11:45 PM
Last Post: _Dude_

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode