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
Clanky
Offline

Senior Member

Posts: 276
Threads: 57
Joined: Dec 2004
#561
2008-02-09, 12:59 PM
My PAL dvb recordings are 16:9 mpegs, 720 x 576, some are 544 x 576.

When it is converting, it shows swscaler: 720x576 -> 512x384, displayed 682x384. The resulting xvid properties are 512x384.

When I play the xvid in vlc player the default aspect ratio is wrong & I have to select 16:9 in vlc.

Is there anything I can do to correct this?
Deusxmachina
Offline

Senior Member

Posts: 545
Threads: 13
Joined: Aug 2007
#562
2008-02-10, 12:00 PM
There was talk of using a .mkv container a few pages back. Can the avi settings be changed to .mp4 to get .264 in an .mp4? Figured it's better to ask first before messing with it.
I bet Michael Bay uses GBPVR because it's awesome:
http://www.youtube.com/watch?v=MiHsxQJ9ZOo
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#563
2008-02-10, 09:59 PM
-stattik- Wrote:Here's 0.5.5b. Please test it and post any issue of question you have.

Here's what's new:

0.5.5b
* Tweaked autocrop settings for PAL material.
* PSP Profile now uses x264 AVC for video.
* When ripping anamorphic DVD's and choosing full resolution, you will get 848x480 for NTSC and 1024x576 for PAL.
* Added custom_crop option. (Thanks vmq) If you want all shows of a certain size (IE 720x480) to get cropped, set the custom variables to your liking. If you also set full_resolution=yes, make sure your final height and width are divisible by 16. The encoder likes thatSmile
* added custom_letterbox option to override script generated letterbox settings.
* croptop has been depreciated in favor of the custom_crop_top variable.
* MKV container support added. (Preliminary)

Thanks stattik,

I found that first cropping 720x480 to 700x364 (my crop values are 10,10,60,56) and then scaling to 608x336 are not worth the few saved bytes and the extra scaling actually hurts the picture quality. My following patched version of your script offers better cropping without scaling abilities plus a small bugfix:

0.5.5b + vmq1 patch
* When cropping in full_resolution mode make sure to increase the cropped width and height to multiples of 16, round left and top offset accordingly.
* Set the aspect ratio of cropped full_resolution letterbox recordings to 16/9 and to the encoded aspect ratio for scaled letterbox recordings. The latter is not strictly 16/9, but close.
* Add full_res_patterns to force full_resolution for matching filenames.
* Add use_twopass to allow making two pass encoding the default
* Fix problems with filenames with special characters, as & or ^. (Law & Order episodes can now be encoded Wink )

The attached archive includes the changed batch file and the diff file showing all changes with respect to the 0.5.5b version.

Volker

P.S.: The script and patch file also contain my local configuration changes, if you need it I can create a version with only the actual changes but without my configuration changes.
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#564
2008-02-12, 03:15 AM
Deusxmachina Wrote:There was talk of using a .mkv container a few pages back. Can the avi settings be changed to .mp4 to get .264 in an .mp4? Figured it's better to ask first before messing with it.

OK, I'm back from vacation so I'll be catching up with this thread.

Using 0.5.5b with the following should work.

Code:
SET container_format=mp4
SET video_encoder=x264
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#565
2008-02-12, 03:24 AM
Clanky Wrote:My PAL dvb recordings are 16:9 mpegs, 720 x 576, some are 544 x 576.

When it is converting, it shows swscaler: 720x576 -> 512x384, displayed 682x384. The resulting xvid properties are 512x384.

When I play the xvid in vlc player the default aspect ratio is wrong & I have to select 16:9 in vlc.

Is there anything I can do to correct this?

Are these mpegs letterboxed? Typically 720 x 576 is a 4:3 resolution which is why the script uses 512x384 for a resolution. If these mpegs are truely 16:9 and are not letterboxed then you can SET profile=hdtv which will give you the correct aspect ratio. Would you be able to supply some samples of these videos?
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#566
2008-02-12, 06:13 AM
lstepnio Wrote:I'm really not having luck with the mkv container. The video data is in the encode but the video just pin isn't rendered when testing in GraphEdit. I tried VLC and video is rendered but is very-very-very jumpy/jerky. I'm able to build a correct DS graph with any other mkv file I throw at my system and I verified on multiple(3) machines.

The jitter is from bframes. You can set bframes=0 to test but it still won't create a successfull DS graph. I believed the lavf muxer was fixed but perhaps there are still issues to be ironed out. Mplayer played your file just fine.

lstepnio Wrote:edit: The "( )" in the filename is confirmed to cause issues; any possible fix?

perhaps VMQ's solution to & and ^ can be extended to ( and ). I'll look into it.
Deusxmachina
Offline

Senior Member

Posts: 545
Threads: 13
Joined: Aug 2007
#567
2008-02-12, 12:05 PM
-stattik- Wrote:Using 0.5.5b with the following should work.

Code:
SET container_format=mp4
SET video_encoder=x264

I started from scratch with the 0.5.5b and new build of Mencoder. 2008.02.06.7z. Fortunately, a previous page mentioned Mencoder only getting mp4/mkv support from the October builds on, or it may not have worked no matter what since I was using a C2D build from around July and might explain why I was having problems, other than just user-error.

mp4 and mkv do indeed work, with xvid. Currently, I can't put x264 in them, or in anything, for that matter. It errors almost immediately and closes. Still working on that part, but just wanted to let people know who are trying to get mkv or mp4 to work.
I bet Michael Bay uses GBPVR because it's awesome:
http://www.youtube.com/watch?v=MiHsxQJ9ZOo
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#568
2008-02-12, 03:49 PM
Deusxmachina Wrote:I started from scratch with the 0.5.5b and new build of Mencoder. 2008.02.06.7z. Fortunately, a previous page mentioned Mencoder only getting mp4/mkv support from the October builds on, or it may not have worked no matter what since I was using a C2D build from around July and might explain why I was having problems, other than just user-error.

mp4 and mkv do indeed work, with xvid. Currently, I can't put x264 in them, or in anything, for that matter. It errors almost immediately and closes. Still working on that part, but just wanted to let people know who are trying to get mkv or mp4 to work.

What kind of audio are you using? I'm using mp3 and I've successfully created mp4 and mkv files with x264 video although they don't create a proper graph in graphedit. Can you post a debug or the command line that mencoder is launched with?
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#569
2008-02-12, 04:43 PM
Is the latest version of your script still command line callable so it can be used with skiptool?
Currently I include 5.1g which is getting a little dated.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#570
2008-02-12, 06:20 PM
pastro Wrote:Is the latest version of your script still command line callable so it can be used with skiptool?
Currently I include 5.1g which is getting a little dated.


I haven't changed anything as far as that's concerned.
« Next Oldest | Next Newest »

Users browsing this thread: 8 Guest(s)

Pages (89): « Previous 1 … 55 56 57 58 59 … 89 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Yet another guide enhancer :0) carpeVideo 18 10,402 2010-04-07, 03:39 PM
Last Post: carpeVideo
  Guide Questions native 6 4,285 2010-02-10, 01:23 PM
Last Post: native
  Mencoder with multiple TS audio streams lanmat 2 4,628 2009-11-09, 12:15 PM
Last Post: lanmat
  mencoder error messages fvfv 3 2,869 2009-10-19, 08:07 PM
Last Post: -stattik-
  TV guide table colour Pob 3 2,506 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,044 2009-05-23, 03:37 PM
Last Post: JavaWiz
  MPEG2 transcoding to Xvid/AAC -which plug-in/tool are best fit? blizard 6 5,146 2009-03-01, 05:43 PM
Last Post: Deusxmachina
  Warning: Mencoder and large MPEG2 files can fail jam_zhou 1 1,707 2008-07-26, 01:39 AM
Last Post: sgilani
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,775 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