Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st July 2007, 00:20   #41  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
dvr-ms input support would be cool.
dansus is offline   Reply With Quote
Old 21st July 2007, 09:18   #42  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
try this update

http://www.64k.it/andres/data/a/AutoMen08.exe

if mediainfo fails on analysis it will trigger a hidden mplayer run for 4 seconds as analysis, so don't warry if application seems hang

after that you will see the usual options for resize...

from my simple test ( i have only 2 dvr-ms files, grabbed on internet) it is ok

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 25th July 2007, 03:35   #43  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
Thanks for adding that. Looks great in xvid, not having to change to mpeg2 first has really done the trick.

Unfortunately the audio is out by over a second and its kept some of the black bars all round.
dansus is offline   Reply With Quote
Old 25th July 2007, 07:10   #44  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
@dansus
try this update

update http://www.64k.it/andres/data/a/AutoMen09.exe

more stable autocrop
changed order of harddup

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 25th July 2007, 12:20   #45  |  Link
bucketbuster
Registered User
 
Join Date: Aug 2005
Location: Netherlands
Posts: 6
Are you planning on adding a batch-function?
bucketbuster is offline   Reply With Quote
Old 25th July 2007, 12:25   #46  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
there is already! the QueueIt button

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 26th July 2007, 00:41   #47  |  Link
Mateo227
Registered User
 
Mateo227's Avatar
 
Join Date: May 2007
Posts: 6
Hi Buzzqw,

Thank you so much for creating this great tool, however I have a problem with encoding WMV files.

After I encode a WMV file with AutoMen 0.9 and attempt to play the file in Windows Media Player 9, I receive this message: "The file you are attempting to play has an extension that does not match the file format. Playing the file may result in unexpected behavior."

In fact, when I open the the WMV file with Media Info it says that this file is in fact an AVI file.

I have not been able to figure out how to encode a true WMV file with Mencoder and it seems that your tool is having the same problem.

Any help would be greatly appreciated.
Thanks,
Mateo227
Mateo227 is offline   Reply With Quote
Old 26th July 2007, 05:48   #48  |  Link
Carraway
Registered User
 
Join Date: Jan 2003
Location: New York, NY
Posts: 75
Quote:
Originally Posted by Mateo227 View Post
Hi Buzzqw,

In fact, when I open the the WMV file with Media Info it says that this file is in fact an AVI file.
I ran a couple of FLV files created with AutoMen through MediaInfo and both of them were detected as AVI files as well. Is this an issue with AutoMen or with mencoder itself?
Carraway is offline   Reply With Quote
Old 26th July 2007, 07:18   #49  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
@Carraway and @Mateo227

the problem is on both side

for exact encoding in wmv/flv/mp4 format with mencoder you must use the "-of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames " option

and i haven't used this options..

update to this build http://www.64k.it/andres/data/a/AutoMen10.exe

the lavfopts is used in both flv and wmv encoding

thanks!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 26th July 2007, 18:46   #50  |  Link
Mateo227
Registered User
 
Mateo227's Avatar
 
Join Date: May 2007
Posts: 6
Wow, that fixed it! Thanks a lot and keep up the GREAT work!
Mateo227 is offline   Reply With Quote
Old 28th July 2007, 11:59   #51  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
Thanks for 09.

No change on the black bars and sync.

Code:
D:\TV Recordings>"C:\Documents and Settings\Daniel\My Documents\Encoding\Automen
\mencoder.exe" -vf harddup,crop=0:0:0:0,harddup,hqdn3d,scale -zoom -xy 704 -sws
9 -priority idle -o "D:\TV Recordings\Video_aut
omen.avi" -ovc xvid -xvidencopts bitrate=1612:pass=1:turbo:max_bframes=2:bquant_
ratio=162:bquant_offset=100:vhq=2:me_quality=6:chroma_me:chroma_opt:hq_ac:trelli
s:lumi_mask:autoaspect:bvhq=1 -nosound "D:\TV Recordings\Tour de France Highligh
ts (2007-07-23).dvr-ms"
MEncoder dev-SVN-r23237-3.4.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3700+ (Family: 15, Model: 55, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Setting process priority: idle
success: format: 0  data: 0x0 - 0x4dc076b4
ASF file format detected.
[asfheader] Audio stream found, -aid 2
[asfheader] Video stream found, -vid 1
VIDEO:  [DVR ]  0x0  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6  fourcc:0x20525644  size:0x0  fps:25.00  ftime:=0.0400
xvid: using library version 1.1.2 (build xvid-1.1.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale]
Opening video filter: [hqdn3d]
Opening video filter: [harddup]
Opening video filter: [crop w=0 h=0 x=0 y=0]
Crop: 0 x 0, 0 ; 0
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Pos:   0.0s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Pos:   0.1s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Pos:   0.1s      5f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Pos:   0.2s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
Pos:   0.2s      7f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...

ect

Pos:   1.0s     27f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp h
eader.
VDec: vo config request - 704 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 10 -> 9
SwScaler: reducing / aligning filtersize 10 -> 9
[swscaler @ 00B21FF0]SwScaler: Lanczos scaler, from yuv420p to yuv420p using MMX
2
[swscaler @ 00B21FF0]SwScaler: using 4-tap MMX scaler for horizontal luminance s
caling
[swscaler @ 00B21FF0]SwScaler: using 4-tap MMX scaler for horizontal chrominance
 scaling
[swscaler @ 00B21FF0]SwScaler: using n-tap MMX scaler for vertical scaling (YV12
 like)
[swscaler @ 00B21FF0]SwScaler: 704x576 -> 704x396
videocodec: XviD (704x396 fourcc=44495658 [XVID])
xvid: par=1/1 (ext), displayed=704x396, sampled=704x396
xvid: bitrate setting is ignored during first pass
xvid: 2Pass Rate Control -- 1st pass

1 duplicate frame(s)!
Writing header...
ODML: vprp aspect is 16:9.
Pos:   1.1s     29f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: vprp aspect is 16:9.
New_Face failed. Maybe the font path is wrong.n   0mb  A-V:0.000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: vprp aspect is 16:9.

1 duplicate frame(s)!
Pos: 360.2s   9007f (11%) 17.79fps Trem:  62min 1115mb  A-V:0.000 [3080:0]
dansus is offline   Reply With Quote
Old 28th July 2007, 12:47   #52  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
do you have a sample (dvr-ms)where is easy to spot synch issue ?

if possible i want help... but the main work is done by mencoder...

NJJ
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 28th July 2007, 14:24   #53  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
heres a couple of clips to play with, the sync issue is less severe with the shorter clips.

Also i noticed that it decided to cut 10mins off the end of an hour vid.

Thanks.

TDF.clip.dvr-ms

TDF.clip2.dvr-ms
dansus is offline   Reply With Quote
Old 28th July 2007, 16:03   #54  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,435
Just a few suggestions...

I see you use these parameters for mencoder

-vf harddup,crop=0:0:0:0,harddup,hqdn3d,scale -zoom -xy 704

it would be much better if you use

-vf crop=0:0:0:0,hqdn3d,scale=704:-2,harddup
froggy1 is offline   Reply With Quote
Old 28th July 2007, 16:22   #55  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
http://www.64k.it/andres/data/a/AutoMen11.exe

on your long sample i have perfect synch

when input is dvr-ms is now used demuxer 35

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 28th July 2007, 16:29   #56  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
@froggy1

about harddup... i have read that is better to keep harddup as first filter

and for scale=704:-2 i will look around for usage!
thanks

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 28th July 2007, 16:43   #57  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,435
Quote:
Originally Posted by buzzqw View Post
@froggy1

about harddup... i have read that is better to keep harddup as first filter

and for scale=704:-2 i will look around for usage!
thanks

BHH
from the MEncoder man page

Quote:
Only useful with MEncoder. If harddup is used when encoding, it will force duplicate frames to be encoded in the output. This uses slightly more space, but is necessary for output to MPEG files or if you plan to demux and remux the video stream after encoding. Should be placed at or near the end of the filter chain unless you have a good reason to do otherwise.
Remember that mencoder processes filters in reverse order, eg if you place

-vf scale=512:384,harddup

it will first open the harddup filter then the scale filter. If you place...

-vf harddup,scale=512:384

it will first open the scale filter then the harddup one
froggy1 is offline   Reply With Quote
Old 28th July 2007, 16:56   #58  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
ouch.. thanks!

wait for a quick update!

BHH
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Old 28th July 2007, 17:20   #59  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,435
Regarding your crop issues. I would do something like this...

1) detect the length of the input source with mplayer and export the output to a file...

Code:
mplayer input_file -identify -vo null -frames 1
2) When running mplayer with the -identify option it prints the video length. Look for the ID_LENGTH= line

3) Now to detect the exact and correct cropping values you run mplayer for ~15 frames with the -sstep option with you give to -sstep ID_LENGTH/15 , eg

Code:
mplayer input_file -vf cropdetect -nosound -vo null -frames 15 -sstep ID_LENGTH/15
this will force mplayer to detect the crop values at various positions in the video. I use this approach for a very long time now inside one of my Linux script and it has never failed to give me incorrect crop values.

Your approach in detecting the crop value for ~6 seconds is flawed as during these 6 second there can be only dark/black frames which will lead to incorrect crop values...

Here's my Linux shell code on how I do it, might help you a bit if you understand Linux shell programming

Code:
mplayer "$sourcetype" $device $vid -identify -vo null -frames 1 2>/dev/null > $CONFIGDIR/cropdetect
VLENGTH=$(grep "^ID_LENGTH" $CONFIGDIR/cropdetect | cut -f '2' -d '=' | cut -f '1' -d '.')
GETCROP=$(mplayer "$sourcetype" $device $vid -vf cropdetect -nosound -vo null -frames 15 -sstep $(($VLENGTH/15)) -nocache 2>/dev/null | tr '\r' '\n' | grep "crop=" | tail -1 | awk '{print $9}' | sed 's/crop=//g; s/).//g')
rm -f $CONFIGDIR/cropdetect
froggy1 is offline   Reply With Quote
Old 28th July 2007, 17:51   #60  |  Link
buzzqw
HDConvertToX author
 
Join Date: Nov 2003
Location: Cesena,Italy
Posts: 6,552
i already use id_lenght when mediainfo fails

thanks for the headup about sstep, i have tryed some years ago.. and was broken

my Kudos!

update http://www.64k.it/andres/data/a/AutoMen12.exe

fixed: crop detection is now very similar to autocrop for avisynth (will analyze all movie for better analysis)
fixed: harddup usage
fixed: -zoom usage (now is scale xxx:-2 )

a very big thanks froggy1!

BHH

P.S our dataware house is linux/sun based ... so i know a little of burn shell
__________________
HDConvertToX: your tool for BD backup
MultiX264: The quick gui for x264
AutoMen: The Mencoder GUI
AutoWebM: supporting WebM/VP8
buzzqw is offline   Reply With Quote
Reply

Tags
automen, ffmpeg, handbrake, mencoder, x264

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.