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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 5th February 2009, 02:18   #1961  |  Link
Dark Guard
Registered User
 
Join Date: Jan 2009
Posts: 1
Was there any reason that .avi format was removed from the "auto-encode" feature?
Dark Guard is offline  
Old 5th February 2009, 17:57   #1962  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
container list relies on codecs...So, if you're using x264, AVI cannot be used with it.
Kurtnoise is offline  
Old 6th February 2009, 01:22   #1963  |  Link
Nozomi
Registered User
 
Join Date: Oct 2001
Location: Hong Kong
Posts: 46
I use the following parameters to re-encode DiVX HDTV source 720P video (no resize or any other filter applied except adding subtitles) , it is actually modified base on Sharktooth's "Unrestricted 2pass HQ", the only modification are from:

Main
Automated 2pass -> Const Quality (save time but want good quality)
Disabled Deblocking (machine too old/slow to support in playback)
High Profile -> Main Profile
AVC Level Unrestricted -> Level 3.0

RC and ME
No. Reference Frames 5 -> 3
Trellis 2 - 1

Advanced
Macroblock Disable P4x4

Quote:
" --crf 26 --level 3 --ref 3 --mixed-refs --bframes 3 --b-adapt 2 --b-pyramid --weightb --direct auto --nf --subme 7 --trellis 1 --partitions p8x8,b8x8,i4x4 --me umh --threads auto --thread-input --sar 1:1 --aud --progress --no-psnr --no-ssim"
I am glad the result AVC is able to reduce ~40% in size of the original without visual quality lost, overall bitrates reduced from 3400Kb to 2000Kb but I found the encoding time is still far too slow! Is there any other enhancement you can suggest to further increase the encoding speed while maintain the good quality? I don't mind the increase in output file size but macroblocks in dark scenes and scenes with "flat" backgrounds would be my main concerns.

Also, if there is any contradiction in --crf mode to use with the above parameters please enlighten me.

Appreciated for your advices.

Last edited by Nozomi; 6th February 2009 at 01:38.
Nozomi is offline  
Old 6th February 2009, 01:45   #1964  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Nozomi - If you enable deblocking, or increase the bitrate (lower crf), the macroblocks will likely go away
poisondeathray is offline  
Old 6th February 2009, 01:56   #1965  |  Link
Nozomi
Registered User
 
Join Date: Oct 2001
Location: Hong Kong
Posts: 46
@poisondeathray, thanks, lucky that for my case I don't found any macroblock even with deblocking disabled. My question is how to have further encoding speed improvement while maintain the existing quality, I am afraid enabling deblocking would just going towards the opposite direction.
Nozomi is offline  
Old 6th February 2009, 02:00   #1966  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Nozomi View Post
@poisondeathray, thanks, lucky that for my case I don't found any macroblock even with deblocking disabled. My question is how to have further encoding speed improvement while maintain the existing quality, I am afraid enabling deblocking would just going towards the opposite direction.
Why did you disable 8x8dct? It gives more quality per encoding speed cost than any other option in x264.
Dark Shikari is offline  
Old 6th February 2009, 03:57   #1967  |  Link
Nozomi
Registered User
 
Join Date: Oct 2001
Location: Hong Kong
Posts: 46
No particular reason, I just don't know I see, it can only be enabled with High Profile + Unrestricted AVC Level. Thanks for the tips.
Nozomi is offline  
Old 6th February 2009, 04:19   #1968  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Nozomi View Post
No particular reason, I just don't know I see, it can only be enabled with High Profile + Unrestricted AVC Level
8x8dct has absolutely no relation to level; you don't need to set "unrestricted" to use it.
Dark Shikari is offline  
Old 6th February 2009, 04:23   #1969  |  Link
Nozomi
Registered User
 
Join Date: Oct 2001
Location: Hong Kong
Posts: 46
Oops, you're right, my mistake. Change to High Profile can select it, thanks!
Nozomi is offline  
Old 7th February 2009, 13:34   #1970  |  Link
ufdent98
Registered User
 
Join Date: Nov 2006
Posts: 25
mp4 and xvid not working with autoencode

I have actually searched a whole bunch with no luck.

Problem:
When I use autoencode to create an MP4 file with xvid encoded video and aac encoded audio, the video portion doesn't mux in.

Details:
When encoded to avi seperately, and muxed into an MP4 container, everything comes out great. It's only when using the autoencode and it creates an .m4v file that it doesn't work. It says that it muxed, but when playing only audio comes out.

Thanks, i'm sure it's something simple I'm missing.
[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1012
--[NoImage] OS : Windows Seven (6.1.0.7000)
--[NoImage] Framework used : 2.0 SP1 (2.0.50727.3521)
-[Information] Hardware
--[NoImage] CPU : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
-[Information] Log for job8 (idx, Sean Paul - Like Glue.mpg -> Sean Paul - Like Glue.d2v)
--[Information] [2/7/2009 10:58:26 AM] Started handling job
--[Information] [2/7/2009 10:58:26 AM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\dgindex\dgindex.exe" -SD=< -AIF=<C:\Users\steve\Desktop\Sean Paul - Like Glue.mpg< -OF=<C:\Users\steve\Desktop\Sean Paul - Like Glue< -exit -hide -OM=1 -TN=c0
--[Information] [2/7/2009 10:58:26 AM] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [2/7/2009 10:58:26 AM] Running auto force film
---[NoImage] Film percentage: -1
--[Information] [2/7/2009 10:58:26 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [2/7/2009 10:58:27 AM] Job completed
-[Information] AutoEncode job generation log
--[NoImage] Split Size : null
--[Information] Eliminating duplicate filenames
---[NoImage] Video output file: C:\Users\steve\Desktop\Sean Paul - Like Glue.m4v
---[NoImage] Muxed output file: C:\Users\steve\Desktop\Sean Paul - Like Glue-muxed.mp4
---[NoImage] Encodable audio stream 0: C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.m4a
-[Information] Log for job1 (audio, Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.mp2 -> Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.m4a)
--[Information] [2/7/2009 11:01:31 AM] Started handling job
--[Information] [2/7/2009 11:01:31 AM] Preprocessing
--[NoImage] Avisynth script
---[NoImage] NicMPG123Source("C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.mp2")
---[NoImage] 6<=Audiochannels(last)?x_stereoce2db66d9bd34204aa5dda0f4fa81776(ConvertAudioToFloat(last)):last
---[NoImage] SSRC(44100)
---[NoImage] Normalize()
---[NoImage] return last
---[NoImage] function x_stereoce2db66d9bd34204aa5dda0f4fa81776(clip a)
---[NoImage] {
---[NoImage] fl = GetChannel(a, 1)
---[NoImage] fr = GetChannel(a, 2)
---[NoImage] c = GetChannel(a, 3)
---[NoImage] lfe = GetChannel(a, 4)
---[NoImage] sl = GetChannel(a, 5)
---[NoImage] sr = GetChannel(a, 6)
---[NoImage] l_sl = MixAudio(fl, sl, 0.2929, 0.2929)
---[NoImage] c_lfe = MixAudio(lfe, c, 0.2071, 0.2071)
---[NoImage] r_sr = MixAudio(fr, sr, 0.2929, 0.2929)
---[NoImage] l = MixAudio(l_sl, c_lfe, 1.0, 1.0)
---[NoImage] r = MixAudio(r_sr, c_lfe, 1.0, 1.0)
---[NoImage] return MergeChannels(l, r)
---[NoImage] }
--[NoImage] Commandline used: -ignorelength -lc -br 96000 -if - -of "{0}"
--[Information] [2/7/2009 11:01:31 AM] Encoding started
--[Information] [2/7/2009 11:01:31 AM] Encode thread started
--[Information] [2/7/2009 11:01:31 AM] Avisynth script environment opened
--[Information] [2/7/2009 11:01:31 AM] Script loaded
--[Information] Output Decoder
---[NoImage] Channels: 2
---[NoImage] Bits per sample: 32
---[NoImage] Sample rate: 44100
--[NoImage] Commandline: C:\Program Files (x86)\megui\tools\neroaacenc\neroAacEnc.exe -ignorelength -lc -br 96000 -if - -of "C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.m4a"
--[Information] [2/7/2009 11:01:31 AM] Encoder process started
--[NoImage] Output from encoder via stderr
---[NoImage] *************************************************************
---[NoImage] * *
---[NoImage] * Nero AAC Encoder *
---[NoImage] * Copyright 2008 Nero AG *
---[NoImage] * All Rights Reserved Worldwide *
---[NoImage] * *
---[NoImage] * Package build date: Sep 17 2008 *
---[NoImage] * Package version: 1.3.3.0 *
---[NoImage] * *
---[NoImage] * See -help for a complete list of available parameters. *
---[NoImage] * *
---[NoImage] *************************************************************
--[Information] [2/7/2009 11:01:42 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [2/7/2009 11:01:42 AM] Successfully deleted C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.mp2.d2a
--[Information] [2/7/2009 11:01:42 AM] Job completed
-[Information] Log for job2 (video, Sean Paul - Like Glue.avs -> )
--[Information] [2/7/2009 11:01:42 AM] Started handling job
--[Information] [2/7/2009 11:01:42 AM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Users\steve\Desktop\Sean Paul - Like Glue.avs" -pass1 "C:\Users\steve\Desktop\Sean Paul - Like Glue.stats" -bitrate 800 -kboost 100 -overhead 0 -nopacked -closed_gop -max_bframes 0 -par 1:1 -threads 1
--[Information] [2/7/2009 11:01:42 AM] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =26371.00, length(bytes) = 74900711
---[NoImage] Avg: enctime(ms) = 3.77, fps = 265.14, length(bytes) = 10712
---[NoImage] I frames: 116 frames, size = 13986/ 1622447, quants = 2 / 2.00 / 2
---[NoImage] P frames: 6876 frames, size = 10657/ 73278264, quants = 2 / 2.00 / 2
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 320 x 240, 29.970fps (30000/1001), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 6992, Bitrate = 800kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.1
---[NoImage] xvid [info]: Bitstream version: 1.2.1
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 8, threads requested = 1, threads in use = 1
--[Information] [2/7/2009 11:02:09 AM] Postprocessing
---[Information] Deleting intermediate files
--[Information] [2/7/2009 11:02:09 AM] Job completed
-[Information] Log for job3 (video, Sean Paul - Like Glue.avs -> Sean Paul - Like Glue.m4v)
--[Information] [2/7/2009 11:02:09 AM] Started handling job
--[Information] [2/7/2009 11:02:09 AM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Users\steve\Desktop\Sean Paul - Like Glue.avs" -pass2 "C:\Users\steve\Desktop\Sean Paul - Like Glue.stats" -bitrate 800 -kboost 100 -overhead 0 -nopacked -closed_gop -max_bframes 0 -par 1:1 -threads 1 -o "C:\Users\steve\Desktop\Sean Paul - Like Glue.m4v"
--[Information] [2/7/2009 11:02:09 AM] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =50794.00, length(bytes) = 23057982
---[NoImage] Avg: enctime(ms) = 7.26, fps = 137.65, length(bytes) = 3297
---[NoImage] I frames: 116 frames, size = 11551/ 1340020, quants = 2 / 2.58 / 3
---[NoImage] P frames: 6876 frames, size = 3158/ 21717962, quants = 2 / 5.67 / 7
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 320 x 240, 29.970fps (30000/1001), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 6992, Bitrate = 800kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.1
---[NoImage] xvid [info]: Bitstream version: 1.2.1
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 8, threads requested = 1, threads in use = 1
--[Information] Final statistics
---[NoImage] Video Bitrate Desired: 800 kbit/s
---[NoImage] Video Bitrate Obtained (approximate): 790 kbit/s
--[Information] [2/7/2009 11:03:00 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [2/7/2009 11:03:00 AM] Successfully deleted C:\Users\steve\Desktop\Sean Paul - Like Glue.stats
--[Information] [2/7/2009 11:03:00 AM] Job completed
-[Information] Log for job4 (mux, Sean Paul - Like Glue.m4v -> Sean Paul - Like Glue-muxed.mp4)
--[Information] [2/7/2009 11:03:00 AM] Started handling job
--[Information] [2/7/2009 11:03:00 AM] Preprocessing
--[NoImage] Job commandline: "C:\Program Files (x86)\megui\tools\mp4box\mp4box.exe" -add "C:\Users\steve\Desktop\Sean Paul - Like Glue.m4v:fps=29.97" -add "C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.m4a#trackID=1" -tmp "C:\Users\steve\Desktop" -new "C:\Users\steve\Desktop\Sean Paul - Like Glue-muxed.mp4"
--[Information] [2/7/2009 11:03:01 AM] Encoding started
--[NoImage] Standard output stream
---[NoImage] MPEG-4 Video import - 320 x 240 @ 29.9700 FPS
---[NoImage] Indicated Profile: Advanced Simple Profile @ Level 5
---[NoImage] Import results: 6992 VOPs (116 Is - 6876 Ps)
---[NoImage] IsoMedia import - track ID 1 - Audio (SR 44100 - 2 channels)
---[NoImage] Converting to ISMA Audio-Video MP4 file...
---[NoImage] Saving C:\Users\steve\Desktop\Sean Paul - Like Glue-muxed.mp4: 0.500 secs Interleaving
--[NoImage] Standard error stream
--[Information] [2/7/2009 11:03:01 AM] Postprocessing
---[Information] Deleting intermediate files
----[Information] [2/7/2009 11:03:01 AM] Successfully deleted C:\Users\steve\Desktop\Sean Paul - Like Glue.m4v
----[Information] [2/7/2009 11:03:01 AM] Successfully deleted C:\Users\steve\Desktop\Sean Paul - Like Glue Tc0 L2 2ch 44.1 224 DELAY 0ms.m4a
--[Information] [2/7/2009 11:03:01 AM] Job completed


steve

Last edited by ufdent98; 7th February 2009 at 17:16. Reason: Nozomi Request
ufdent98 is offline  
Old 7th February 2009, 14:33   #1971  |  Link
Nozomi
Registered User
 
Join Date: Oct 2001
Location: Hong Kong
Posts: 46
autoencode will create originalfilename-muxed.mp4 not .m4v. Could you show the logs...
Nozomi is offline  
Old 7th February 2009, 15:37   #1972  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
Im sad to see the avi and x264 option is gone. To bad.

Is anyone else having problems with the mp3 encoding.

-[NoImage] Commandline: C:\Program Files\megui\tools\lame\lame.exe --abr 96 -h --silent - "C:\Users\baba\Desktop\RocknRolla\VTS_01_1 T80 3_2ch 384Kbps DELAY 0ms.mp3"
--[Information] [2/7/2009 3:01:52 PM] Encoder process started
--[Error] An error occurred
---[NoImage] Exception message: The pipe has been ended.
---[NoImage] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[NoImage] Inner exception: null
--[Information] [2/7/2009 3:05:25 PM] Job complete
rkalwaitis is offline  
Old 7th February 2009, 15:43   #1973  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
it never existed.
Sharktooth is offline  
Old 7th February 2009, 18:56   #1974  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
I could make a x264 and use the muxer to make an avi file with mp3 sound. Now I can not do it anymore.
rkalwaitis is offline  
Old 7th February 2009, 22:31   #1975  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by rkalwaitis View Post
Im sad to see the avi and x264 option is gone. To bad.

Is anyone else having problems with the mp3 encoding.

-[NoImage] Commandline: C:\Program Files\megui\tools\lame\lame.exe --abr 96 -h --silent - "C:\Users\baba\Desktop\RocknRolla\VTS_01_1 T80 3_2ch 384Kbps DELAY 0ms.mp3"...
Lame mp3 stil don't support multichannel audio, you need to downmix to stereo mix.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 8th February 2009, 04:52   #1976  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
@rkalwaitis: megui muxer NEVER supported muxing h.264/avc in avi. i repeat, NEVER.
there was once the avc2avi muxer tool, but it never supported audio muxing so it was removed coz it was useless and btw, avc in avi is a no go.

Last edited by Sharktooth; 8th February 2009 at 04:56.
Sharktooth is offline  
Old 8th February 2009, 08:56   #1977  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
Sharktooth, Obviously I would be foolish to argue with you. Your knowledge of this issue is far superior to mine. My terminology may be poor at best as I confuse avc with x264. But I know I could take a (rawavc-264) and turn it into a avi file. Once it was an avi I could use the avi muxer to add the sound. The avc2avi muxer you talked about must of been the tool I used to turn my rawavc to an avi file. I do not understand why I can not have have avc in a avi? Wouldnt the avc to avi muxer remedy any problems? I mean why have a tool that converts avc to avi? I will read more about avc files and their taboo relationship with an avi file. Just so everyone knows, I was not trying to argue with anyone here or come across as a know it all, I have not the knowledge base to do so. My questions or comments are geniune and not meant to be offend.

Tebasuna51, Thanks for the help, Ill give it a whirl.
rkalwaitis is offline  
Old 8th February 2009, 09:00   #1978  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by rkalwaitis View Post
Sharktooth, Obviously I would be foolish to argue with you. Your knowledge of this issue is far superior to mine. My terminology may be poor at best as I confuse avc with x264. But I know I could take a (rawavc-264) and turn it into a avi file. Once it was an avi I could use the avi muxer to add the sound. The avc2avi muxer you talked about must of been the tool I used to turn my rawavc to an avi file. I do not understand why I can not have have avc in a avi? Wouldnt the avc to avi muxer remedy any problems? I mean why have a tool that converts avc to avi? I will read more about avc files and their taboo relationship with an avi file. Just so everyone knows, I was not trying to argue with anyone here or come across as a know it all, I have not the knowledge base to do so. My questions or comments are geniune and not meant to be offend.

Tebasuna51, Thanks for the help, Ill give it a whirl.
AVC in AVI simply doesn't work properly for many reasons. But here's the kicker:

There exists no player, hardware or software, that will play H.264 in AVI--but won't play an equivalent MP4 or MKV file. However, there are many such players that will play MP4 or MKV, but not AVI, because H.264 in AVI is a broken hack.

Therefore, there is no reason ever to use H.264 in AVI.
Dark Shikari is offline  
Old 8th February 2009, 09:04   #1979  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by ufdent98 View Post
I have actually searched a whole bunch with no luck.

Problem:
When I use autoencode to create an MP4 file with xvid encoded video and aac encoded audio, the video portion doesn't mux in.
open your mp4 in mediainfo and what do you see exactly ?
Kurtnoise is offline  
Old 8th February 2009, 14:25   #1980  |  Link
rkalwaitis
Robert
 
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
so x264 is not h264, but both can make a rawavc? Perhaps this is my confusion. Calling x264 - h264.

@tebasuna, your info helped and it worked. Thanks
rkalwaitis is offline  
Closed Thread

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 15:15.


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