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
#691
2008-09-12, 03:52 AM
If you check the INFO file that is created by the script, you may see the following line:

Code:
VIDEO:  MPEG2  544x576  (aspect 3)  25.000 fps  10000.0 kbps (1250.0 kbyte/s)

Aspect 3 will be 16:9. Aspect 2 will be 4:3. Some files don't show that info so I have to guess by checking the resolution.

I'll try to straighten out the xvid/x264 issue.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#692
2008-09-12, 04:12 AM
Hi gEd,

I ran the script on some test PAL files in both xvid and x264 and they both were correctly identified as aspect 3 and so used 16:9 settings.

Would it be possible to either provide a small clip (a few seconds) or the output from the script?
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#693
2008-09-12, 01:13 PM
All the recordings appear to have an aspect of 3.

C:\Program Files\devnz\gbpvr\Third Party>start "Mock the Week.mpg - stattik_tran
scode" /low /wait /min C:\Progra~1\mplayer\mencoder.exe "S:\Archive\GROWNU~1\Com
edy\Mock the Week\Mock the Week.mpg" -sws 9 -lavdopts threads=1 -ovc xv
id -xvidencopts fixed_quant=3:me_quality=6:chroma_me:noqpel:chroma_opt:vhq=4:bvh
q=1:trellis:hq_ac:quant_type=mpeg:turbo:threads=1 -oac mp3lame -lameopts cbr:br=
128 -vf yadif=0,scale=512:384,hqdn3d=3:2:3:3 -fps 25 -ofps 25 -o "S:\Archive\G
ROWNU~1\Comedy\Mock the Week\Mock the Week.avi"

MEncoder Sherpya-SVN-r27323-4.2.4 © 2000-2008 MPlayer Team
CPU: AMD Athlon™ (Family: 6, Model: 10, Stepping: 0)
SSE supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

success: format: 0 data: 0x0 - 0x2527a800
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 6500.0 kbps (812.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400
Input fps will be interpreted as 25.000 instead.

I have sent u a PM with a URL to a sample file.

thanks
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#694
2008-09-12, 03:11 PM
It worked correctly for me. Here's the output.

Code:
stattik's Mencoder Automation Script
Version 0.5.6br

Variables Loaded. Script is starting.

10:10:10.02 Now Processing D:\DVD\Test_Files\Sample.mpg

Getting source file info...  Ignore any errors for the next few lines ;)




Starting Guided Transcode



Enter the options below separated by spaces

----Video Encoder----
1 = mpeg2
2 = xvid
3 = x264
----Quality----
4 = Medium
5 = High (default)
6 = Very High
----Encoding Strategy----
7 = Fixed Bitrate (mpeg2)
8 = Fixed Quality (default) (xvid and x264)
9 = 2 Pass
n = Normal Priority
bn= Below Normal Priority
Advanced Options = 480p,544p,720p,aac,mp3,avi,mkv,mp4,(no)edl

2


Enter the profile(s) you want to use.

1  = Automatic       (Let the script decide.)
2  = Full Res        (The resolution will not be scaled.)
3  = Letterbox       (Crops out the horizontal black bars on a 4:3 picture)
4  = Pillarbox       (Crops out the vertical black bars on a 16:9 picture)
5  = Cartoon         (XVID only)
6  = iPod            (This will create an iPod-compatible file)
7  = PSP             (This will create a PSP-compatible file)
8  = DVP-642         (XVID only)
9  = Cut and Copy    (This will use an edl file to only cut out commercials)
10 = DVD             (This will create a DVD-compatible file)
test = Test clip legnth, enter the number of seconds. (Greater than 10)

Enter all the profile numbers you want applied separated by spaces.

1

Source Info: -Total: 1 min- -Show: 1 min- -Commercial: 0 min-



Checking to see if source file matches any transcode profiles.

Applying automatic encoding logic to source file.

The options for the current transcode are listed below.


Flagged as HiDef

Copying temp.txt file to create PTL file.
        1 file(s) copied.

C:\Documents and Settings\Administrator>start "Sample.mpg - stattik_transcode" /low /wait /min D:\Pr
ogra~1\mplayer\MPlayer-rtm-svn-26446\mencoder.exe D:\DVD\Test_Files\Sample.mpg -edl "D:\DVD\Test_Fil
es\Sample.edl" -sws 9      -lavdopts threads=2    -ovc xvid -xvidencopts fixed_quant=3:me_quality=6:
chroma_me:noqpel:chroma_opt:vhq=4:bvhq=1:trellis:hq_ac:quant_type=mpeg:turbo:threads=2 -oac mp3lame
-lameopts cbr:br=128  -vf yadif=0,scale=608:336, -fps 25 -ofps 25  -o "D:\DVD\Test_Files\Sample.avi"


C:\Documents and Settings\Administrator>ECHO off

Transferring metadata to destination file if it exists.
The system cannot find the file specified.
Could Not Find D:\DVD\Test_Files\Sample.edl

Transcode is complete.


Perhaps you're using different options?
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#695
2008-09-13, 11:14 AM
I was using it non-interactively. I'll have to check when I get back home.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#696
2008-09-13, 04:43 PM
Post your copy of the script then and I'll run it with your config.
sportsfan986
Offline

Junior Member

Posts: 11
Threads: 2
Joined: May 2008
#697
2008-09-15, 12:57 PM
Every time I run the script as two pass my files are over compressed. I am trying to trans code 1 hour shows before commercials and it keeps reading in program lengths of 16 minutes instead of the 42 minutes they come out to be after it is done converting. Any suggestions on how to fix this problem?
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#698
2008-09-15, 10:07 PM
I see when you ran 5.6br it only selected the hidef and not the Pillarbox profile. When I run 0.5.6br it says:-

Flagged as Pillarbox
Flagged as HiDef

IF %input_aspect% EQU 3 (
SET ID_VIDEO_ASPECT=1.7778
IF DEFINED comskip_aspect IF %comskip_aspect:~2% LSS 6100 SET pillarbox_pro=yes

My values:
true_aspect 12
input_aspect 3
comskip_aspect 1.2600
comskip_aspect:~2 2600

So based on my values, it "correctly" selects Pillarbox but it is this profile that results in the avi being 4:3 file instead of 16:9. Commenting out the above code to prevent Pillarbox profile results in a perfect 16:9 avi.

So I am guessing you get different values to me, possibly because your comskip file has different values to mine.

Attached is the script I ran and my comskip files for this recording.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
divinehammer
Offline

Member

Posts: 149
Threads: 44
Joined: Jan 2007
#699
2008-09-16, 02:23 PM
I am still having trouble getting this to cut the commercials out. attached is the script that I am using. I was unable to capture the script output from the cmd becuase the script finished just need to put a pause in there to capture it. do you have to actually install mplayer and mencoder or can you just point to the appropriate exe files which is what I have done. Thanks for the help.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#700
2008-09-16, 03:13 PM
Thanks for the info gEd. I'll take a look at it.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (89): « Previous 1 … 68 69 70 71 72 … 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,766 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