So I tried mpeg-1 encoding with ffmpeg and the quality is WAY better than TMPGenc but I'm having trouble reaching a bitrate higher than 1000 no matter what I do. Here's my script, any suggestions?
MPEG-2 once again did slightly worse than its predecessor. :/Code:ffmpeg -i "M:\TouhouAnime.avs" -pass 1 -f mpeg1video -an -passlogfile log_file -b:v 2000k -qmax 50 -qmin 1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 100 -bf 2 -flags mv0 "TouhouAnimeMPEG1 2000kbs.mpg"
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 60 of 67
Thread
-
-
^ my suggestions:
— decrease qmax
— decrease GOP length
— disable trellis
{and as a last resort only... use a high-bitrate matrix } -
Also, MPEG-1 is now triumphing over XviD at high bitrates. Seems slow settings compromise the quality with XviD as well, should I turn off trellis there also?
-
MPEG-1 was first modern video codec however designed in second middle of 80's and as such highly limited by technology limitation of this time.
Videoconferencing and ISDN require at least 128kbps and offers somehow limited resolution (176x120) and limited frame rate (most videoconferencing profiles was or 15 or.7.5 fps) = 352x240@30fps was offered over T1/E1 line ie over 1Mbps.
A few years ago it was true, MPEG-2 offered usually higher quality than existing H.264 implementations - today this is no longer case and H.264 offer very high quality - encoding tools are at proper level of maturity. -
Oh my gods, how could I have forgotten mpeg2enc
download: https://sourceforge.net/projects/mjpeg/files/mjpegtools/2.1.0/
man page: http://linux.die.net/man/1/mpeg2enc
Have more fun -
How do you specify an input file with this thing? I only see an option for outputting.
-
mpeg2enc accepts (and expects) only stdin — so, you have to feed it through avs2yuv, or avs2pipe(mod), or even ffmpeg.
Something like this:
Code:avs2yuv input.avs -o - | mpeg2enc etc etc etc
Last edited by El Heggunte; 4th Sep 2016 at 17:35. Reason: update
-
-
^ I agree, ffmpeg's MPEG-1 encoder improved a lot since the days of NuEnc and QuEnc...
For the curious, here goes a very-short (1min 33 sec) MPEG-1 clip @ 1136x592x29.97fps.
If I hadn't used the (infamous) KVCD matrix, then it would be bigger than 200MB and I could not upload it to MediaFire with my free account...
http://www.mediafire.com/download/clv5923jyuc1ey2/jerilynnpromo.mp4 -
http://forum.doom9.org/showthread.php?p=1762062#post1762062
My fault, seem that MPEG-1 allow for custom quantization matrices - sorry for that - i always had impression that this part of sequence header functionality was added in 13818.Last edited by pandy; 5th Sep 2016 at 12:41.
-
-
Originally Posted by johnmeyer View Post
What bitrate are you using for encoding?
The same one as the original, 360 kb/s for 352x240. On the plus side, it still does look better than the original.
Well, the quality produced by mpeg2enc was horrible, mpeg2 once again looking worse than mpeg1. Any other contenders or is ffmpeg essentially the best implementation? Hell, ffmpeg beat the shit out of Xvid at high bitrates.
2. what are the parameter settings for each encoder you used -- mpeg1 mpeg2 ffmpeg x264 x265 etc ?
Please provide the necessary details so that all can share in your quest and believe your facts.
Otherwise, start another thread and provide a new source for everyone to test what best can be produced by any encoder, thank you.
ps: also, please upload your mpeg1 video so we can see what you are happy about. -
vhelp, this was originally an exercise to see how much a scuzzy old clip could've been improved if the encoder was willing to wait a whole day for encoding to finish back in the early 2000s. I've deleted all the test files for that one so it's too late.
Then _Al_ gave me an idea to test that Touhou anime clip with mpeg 1/2 which got away with reasonably good quality with x264/x265 at dialup bitrates. I can share that and all the accompanying data with you but first I want to know what the best mpeg-1/2 encoder is. So far, ffmpeg produced the best quality for the low bitrate scenario but it was difficult to adjust it for high bitrates.
So if you're experienced with those codecs, which I clearly am not, recommend an encoder, the very best settings you got and I'll report the results. Right now I'm still stuck with trying to find the best implementation. TMPGenc, HCenc, mpeg2enc, bbmpeg all failed, several of them profoundly.Last edited by -Habanero-; 6th Sep 2016 at 19:05.
-
Not sure where it is coming from, I'd certainly use H.264 and not mpeg 1/2. X265 is still in early stage but if it works for you why not. I'd stop comparing suppose versions and just use what is the best and not elaborating why. Only after couple of months doing some tests if new x265 versions are better (for whatever you do). You test high bitrate then low bitrate , I'm never sure where you are at at the moment. I have trouble to follow you, always switching settings, heading somewhere else, like responding to vhelp for example.
Procoder used to be hell of an encoder, even at about 5000 it got very good results, but as soon I tested HcEncoder it was good enough for me. People watching DVD do not care really anyway, as long it is not messed up, they notice flickering (HD into DVD) but care less for some microscope better/worse quality. Also there was H.264 on the rise.
While using mpeg2 with extremely low bitrates perhaps you have to have special matrix for that and also matching quantizer, because what you do is an extreme setting but I had never used low bitrates, not sure who does, therefore no responses. -
That's exactly what I told him, and apparently he didn't take it seriously.
High-compression matrices can make both MPEG-1 and MPEG-2 suck less at excessively-low bitrates.
Even Cinema Craft Encoder offered its own CQMs...
Code:Very Low Bitrate: 08 16 19 22 26 27 99 99 16 17 18 19 20 21 99 99 16 16 22 24 27 29 99 99 17 18 19 20 21 22 99 99 19 22 26 27 29 34 99 99 18 19 20 21 22 23 99 99 22 22 26 27 29 34 99 99 19 20 21 22 23 24 99 99 22 26 27 29 32 35 99 99 20 21 22 23 25 26 99 99 26 27 29 32 35 40 99 99 21 22 23 24 26 27 99 99 26 27 29 34 38 46 99 99 22 23 24 26 27 28 99 99 27 29 35 38 46 56 99 99 23 24 25 27 28 30 99 99 Ultra Low Bitrate: 08 16 19 22 99 99 99 99 16 17 18 19 99 99 99 99 16 16 22 24 99 99 99 99 17 18 19 20 99 99 99 99 19 22 26 27 99 99 99 99 18 19 20 21 99 99 99 99 22 22 26 27 99 99 99 99 19 20 21 22 99 99 99 99 22 26 27 29 99 99 99 99 20 21 22 23 99 99 99 99 26 27 29 32 99 99 99 99 21 22 23 24 99 99 99 99 26 27 29 34 99 99 99 99 22 23 24 26 99 99 99 99 27 29 35 38 99 99 99 99 23 24 25 27 99 99 99 99 CG / Smooth: 08 16 20 22 24 24 24 24 16 16 16 16 16 16 16 16 16 16 20 22 24 24 24 24 16 16 16 16 16 16 16 16 20 20 22 24 28 28 28 28 16 16 16 16 16 16 16 16 22 22 24 24 28 28 28 28 16 16 16 16 16 16 16 16 24 24 24 24 32 32 32 32 16 16 16 16 16 16 16 16 24 24 24 24 32 32 32 32 16 16 16 16 16 16 16 16 28 28 28 28 32 32 32 32 16 16 16 16 16 16 16 16 28 28 28 28 32 32 32 32 16 16 16 16 16 16 16 16
-
Originally Posted by _Al_
El Heggunte, I got superb quality on low bitrates, it's the high bitrates I was having issues with controlling. -
Habanero , my English sucks, that's a fact. I do not build sentences to be a beauty even in my language. But anyway if you do not understand , I am not surprised at all, because right here you do what you do all the time. Not giving anything a thought, or trying to read even text that is pretty clear, just marching to other setting, encoder, looking for holy grail. I am lost to understand what you actually do. Last input of your is a example as well, others also. And you might write it in Queens English, it would not help anyway.
Last edited by _Al_; 6th Sep 2016 at 20:41.
-
Al, I just communicated to you that I didn't understand a sentence you wrote. Then instead of rephrasing you make excuses. This is useless and your time spent on composing that sentence remains wasted as a result.
I am lost to understand what you actually do -
Do not ask "what's best" because this question cannot be answered objectively. Each and everyone has their own view about what's best in a certain area. The best is what works best for you. You won't share or tell anyone what the clip is so no one can help find a decent copy to reproduce. 2, we can't inspect the file properties on the old scuzzy one you have. You have people shooting in the dark here.
-
Habanero, it seems to me your request for the perfect mpeg2 encoder is at best unreasonable.
If you were to clearly state what you are trying to do then provide some samples, response might be more productive.
What you are asking is for parameters for you to try then you report back, no, that is no good.
It doesn't make sense to go about this way.
Let's face it, in general with your way of requesting, no-one really cares what you want in the way of an encoder.
I suppose you have tons of material you want to boil down to smallest size with no quality loss, again not a very realistic goal.
What you do is up to you but for many of us, since hard drive are relatively cheap, we just go ahead and buy a bunch to contain our contents.
Or we reduce the size with our encoder(s) of choice and get on with our lives.
Remember this, the original always has the best quality and encoding it only loses quality.
I have to scratch my head when I hear in these days people churning away their computers downsizing their collection to smaller sizes for hours without end.
Made sense years ago when GBs were at a premium...whatever people do with their equipment or time is up to them, I suppose.
No one really wants to waste their time doing someone else's job they should be doing themselves.
Find your own parameters for your clips for small, medium or large size and be done with it.
So far you have wasted not only your own time but of people who were trying to help you with this long meaningless thread.
Just a reality check... -
Steve, let's get this clear, I am doing quality tests for the sake of quality tests. I don't give two tugs of a dead dog's c0ck about MPEG-2. It is outdated and the very best configuration of it took 5 times more bitrate to achieve the same quality as x265. I never have and never will use it for any purpose other than a quality test. With me so far?
You're talking to an experienced encoder and former Blu-ray ripper/bootlegger who has been encoding with x264 since 2007. I know which codec is the best in terms of quality and how to use it. What I have limited experience in is in outdated, crappy codecs that fell out of popularity years ago.
To do a proper quality test, one must use the best known implementation of the codec otherwise the test would be biased. The public consensus on the best implementation of the H.264 standard is x264, so that part's easy. For MPEG-2 I'm not sure but I'm satisfied with FFmpeg's implementation. If you disagree, I'm interested in your input. If you wanna bitch and moan and give misguided lectures, this isn't the thread. -
I see...I think.
Do you want your output to be dvd compliant for your client-el?
Anyway, putting that aside as it doesn't require an answer, ffmpeg if it hasn't changed in the past several years, hasn't been known to produce the best mpeg2 output.
Other mpeg2 encoders are known to produce better results which it seems have been covered in this thread.
One thing ffmpeg is known for however is speed, 'quick and dirty'.
Of course there are frontends for ffmpeg and some of them one can put command lines in.
I fooled around with Avanti years back, seems it did fairly well using higher bit rates.
The guy that created it knew how to tweak it some to get better results.
As a side discussion, whatever encodes the US broadcast (OTA) has what I would consider good quality at relatively low bit rates.
I have no idea what is used to do this, perhaps commercial quality hardware and /or software, (whatever it is).
Perhaps someone would know more about this.
One other direction brings us back to hcenc.
I think this is your best bet.
What you could do is search through the forum for parameters for it and perhaps find something that would be useful.
Maybe look over at doom while you are at it also.
Have no idea where you got your "originals" but if you got it off the web and someone who didn't know what they were doing has already butchered it, no encoder is going to like some of that stuff anyway, it will look worse than usual.
That's all I've got as I don't encode much anymore but when I did, I had clean source material and used hcenc, tmgenc (sort of default values on those 2).
I did fool around with ffmpeg but was using frontends with a few changes in command line...so I can't be much help.
I suppose when you find those magic parameters, you will report back the results? LOLoriginals
You could de-compress your video then run it through encoder to see if that makes a difference.Last edited by Steve(MS); 8th Sep 2016 at 02:37.
-
Still you didn't try x262... (but it may have weak areas as this is never finished project at early stage of development).
-
x262? I didn't know such a thing existed. I presume the authors of x264 had nothing to do with it?
Steve, no I don't need it DVD-compliant. This is just testing the limits of the codec. My source for the first test was a 480p CG video already compressed with DivX at 0.200 BPP. It was the best source I could find. Back in 2002 I grabbed a copy of the same video which was 240p done with MPEG-1 that had a lower frame rate, low bitrate and the quality was garbage as you could predict. Using this higher quality source, I wanted to resize to 240p and see if watchable quality could've been retained if better parameters were used.
I've done it with FFmpeg and achieved a fairly tolerable picture.
The second test is a 720p flawless anime source resized to 480p which modern codecs can achieve good quality with dialup bitrates. Currently, I got the same quality @ 380 kb/s with mpeg-1 via ffmpeg and got great quality @ 1300 kb/s.
I've tried HCenc and used what I thought were good settings but the quality was so visibly bad compared to TMPGenc that I abandoned it quickly. So unless I missed some silver bullet that's not on by default, HCenc is definitely not in the top 3.
Similar Threads
-
Is it possible to send the output of the x265 encoder using MPEG2 TS?
By athukoralakasun in forum Video ConversionReplies: 8Last Post: 15th Jan 2015, 07:08 -
Best free MKV encoder for converting 1080i to 720p?
By Kamakzie in forum Video ConversionReplies: 4Last Post: 5th Dec 2013, 17:51 -
Windows Media Encoder and input mpeg2 file?
By trodas in forum Video ConversionReplies: 1Last Post: 4th Nov 2013, 15:25 -
What encoder is the best to encode lossless AVI to Mpeg2?
By avz10 in forum Video ConversionReplies: 4Last Post: 19th Oct 2013, 13:33 -
Free MPEG-2 Video Encoder
By khodam in forum ProgrammingReplies: 10Last Post: 28th Jun 2013, 09:39