@jonny:jonny wrote:@cooleyes & uNn99:
mencoder can be also compiled with runtime cpu detection, do you think there is a big speed difference compared to specific builds?
hehe, limit speed difference.
but someone need them, so I build them, :P
:)hehe, limit speed difference.
but someone need them, so I build them, :P
on my athlon xp @2166 i get around 25-30fps (with the suggested settings, and avisynth frameserving dvd source)How much slower is x264 encoding compared to e.g. DIV3 or mp4?
I'm thinking of real-time encoding by VLC in the near future.
And are both video and audio codecs new?
I really really appreciate that post but the thing is that it left me super confused. What if I don't have the txt file created and have used some other process like the virtualdub way?Shonen wrote:Hi yoshaw,
FPS= rate/scale
Thus, for example, 25 fps (PAL) is 25000/1000=25. 25/1 also works.
29.97 (NTSC) is 8000000/333667=29.97
Etc.
You can calculate this with calculator to get the desired framerate within the muxed pmp file. Normally, the muxer detects the .txt file that is created alongside the 264 stream, and correctly enters the rate/scale ratio itself.
at the moment, you never need to specify those informations manually:I really really appreciate that post but the thing is that it left me super confused.
What if I don't have the txt file created and have used some other process like the virtualdub way?
it's normalAlso, the figures remained 25000/1000 regardless of the procedure I was using before(Jonny's custom x264 method which created the txt) but it didn't update the figures when the video was 29fps or more.
since the parameters need to be filled only in case of some advanced testing purpose, i guess there is no need to make all more user friendlyBetter if just let me know what to write in the place of 25000 if I have a 29.97fps video. Can't we have like a drop down box that simply says 29.97/25fps etc instead of the enduser multiplying it themselves? Ofcourse I'm saying this without knowing if its even possible or not so ignore it if its not.
you should uninstall the regular version to use the modified one (i guess the regular version will be simply overwritten if you don't do this)If I already have the regular x264 installed on my system. Would your binary patched version of x264vfw cause any problem if installed over it? You know the wierd stories of installing duplicate codecs, don't you. So that's why I'm asking its safe to install this right?
there is nothing special in the modified vfw version, it's like the official one, but with some defaults and internals changedAlso when installed, all I have to do is open a video in virtualdub and choose x264 in the compression option and it'll be your patched vfw right?
Nice you mention PSPlayerMT, but my experiences with it were rather disappointing. Many encodings won't be played back correctly and if they are, highest quality vids are not so smooth.mmick wrote:I am using a player called PSPlayerMT that allows even XVID or DIVX with MP3 audio (along with almost every video/audio types).
To play a full screen full speed movie/videoclip I just have to (re)encode to 480x272 (or less...I think upper res don´t work) with virtualdub (and I even doesn´t have to reencode audio if it´s in MP3) and with the subtitle plugin if I want subtitles and... voilá. A xvid/divx video playable on PSP and profile can even be the same as in a PC.
With PMPlayerMT I just have to:
- put my avi file & subtitles in virtualdub and final file is completly playable.
I can´t precise but a 2h movie spends about 30-40% of the battery in medium/high brightness. (PMPlayerMT allows zoom, full screen zoom, skip, FF, FW, 2x speed, video position memory, etc)
if you choose the normal way, yes, that would be the way to go (though the pmpmuxer also supports avi input now, so it's not 100% correct). The demux/mux part don't take very long though, the most time is spent on the transcoding and that's the same with PSPlayerMT.With PMP as far as I understand (as I never used it), I have to:
- demux a movie in video & audio (which takes a while and space)
- reencode & mux it (more space & time)
Isn´t there a program to encode AVI > AVC directly, simple as drag&drop + choose final res + size on card?
stop dreaming and wasting forum space with those requestsWhat I would like is somewhat a breed between PMP Mod (AVC) and PSPlayerMT:
- to be able to read my backuped avi movies without conversion (PSPlayerMT) at any resolution (PMP Mod)
- to be able to read them with subtitles in their original srt/sub file
- to be able to just copy any MPG videoclip of mine, ASF humor clip, 3GP, MP4 video from my SonyEricsson mobile (that also uses MSDUO) and see it (PSPlayer MT)
- to be able to listen MP3 while I see my pictures...
I can only quote jonny there, stop dreaming. This will probably not happen in the next millenium. So you have to take a choice and work with the stuff the devs provide you, or if you think more should be possible, give it a try yourself, maybe you do the revolution :)mmick wrote: What I would like is somewhat a breed between PMP Mod (AVC) and PSPlayerMT:
- to be able to read my backuped avi movies without conversion (PSPlayerMT) at any resolution (PMP Mod)
- to be able to read them with subtitles in their original srt/sub file
- to be able to just copy any MPG videoclip of mine, ASF humor clip, 3GP, MP4 video from my SonyEricsson mobile (that also uses MSDUO) and see it (PSPlayer MT)
- to be able to listen MP3 while I see my pictures...
Although I agree that from a dev/realistic point of view this is rampant dreaming and very hard or impossible to attain on a PSP, I think it's understandable that end-users have interest in these kind of features. Especially if you see PMP Mod's performance and PSPlayerMT's wide format support. For many people, video is just video, and they have little interest or time to delve into multiple applications, recoding, etc. They still see technology as black boxes with easy in-out operation, with free time spent away from the glow of a computer screen and it not running endlessly through the night recoding.mmick wrote:I think PMP has been developing very well but what I was looking for PSP was a kind all-in-one Media Player.
What I would like is somewhat a breed between PMP Mod (AVC) and PSPlayerMT:
- to be able to read my backuped avi movies without conversion (PSPlayerMT) at any resolution (PMP Mod)
- to be able to read them with subtitles in their original srt/sub file
- to be able to just copy any MPG videoclip of mine, ASF humor clip, 3GP, MP4 video from my SonyEricsson mobile (that also uses MSDUO) and see it (PSPlayer MT)
- to be able to listen MP3 while I see my pictures...
Code: Select all
".\mplayer\mencoder.exe" "$(SourceFile)" -vf scale=480:272:0:0::,harddup -of rawvideo -ofps 30000/1001 -ovc x264 -x264encopts qcomp=0.60:level_idc=30:dct_decimate:bframes=0:keyint=250:keyint_min=25:frameref=1:qp_min=10:qp_max=51:qp_step=2:qp_constant=26:cabac:direct_pred=1:noweight_b:i4x4:i8x8:b8x8mv:8x8mv:no4x4mv:8x8dct:mixed_refs:nobrdo:trellis=1:bime:fast_pskip:threads=1:aud:pictiming:me=2:me_range=16:subq=5:crf=20 -nosound -o "$(DestFile)"
".\codecs\lame.exe" "$(SourceFile)" "$(DestFile)" --priority 1 -r -x -s $(SampleRate) --vbr-new -V 5 -k --replaygain-fast --quiet
jonny wrote:stop dreaming and wasting forum space with those requests
my position about this is really clear, i don't want to repeat myself again and again every time
LOL Stop Dreaming? In what part?! In case you never tried PSPlayerMT, it does all that but limited to 480x272 and no subtitles because the programmer stopped working on the app due to some links of foreign websites.Raphael wrote: I can only quote jonny there, stop dreaming. This will probably not happen in the next millenium. So you have to take a choice and work with the stuff the devs provide you, or if you think more should be possible, give it a try yourself, maybe you do the revolution :)
jonny wrote: at the moment, you never need to specify those informations manually:
1 - if you use x264 (commandline), the txt file is used
2 - if you use virtualdub, those informations are taken directly from the avi
3 - if you use mencoder, those informations are taken directly from the avi
only someone trying to mux a raw stream, generated by a different method, need to fill those informations manually
it's normal
i search for the txt file only when you start the mux
you'll see a message when the txt file is used
in the last version of the muxer, to avoid confusion, the defaults are blank (leave the values blank, you'll be anyway notified if the muxer is not able to detect the parameters)
since the parameters need to be filled only in case of some advanced testing purpose, i guess there is no need to make all more user friendly
you should uninstall the regular version to use the modified one (i guess the regular version will be simply overwritten if you don't do this)
there is nothing special in the modified vfw version, it's like the official one, but with some defaults and internals changed
PS: i've updated the demuxer on my site, now supports both normal and avc pmps
When I try playing the encoded file from mediacoder in PMP AVC, all i get is the following error screen.optimus wrote:MediaCoder is now able to produce PMP MOD compatible AVC files (based on MEncoder). It also supports producing PMP MOD 2.x files (by choosing video format).
Learn more here
You can get it here. (note to download 0.5.0 pre)
Cheer up Jonny! You are my idol. ^_^
listen me carefullyLOL Stop Dreaming? In what part?! In case you never tried PSPlayerMT, it does all that but limited to 480x272 and no subtitles because the programmer stopped working on the app due to some links of foreign websites.
well... I just can assume that you aren´t just able to do it so as the Corean programmer show us it is possible
please, no scene drama report here.an existing simple program already does but due foreign websites disrespect to the Corean programmer it stopped from going further...
People seem to forget that we devs don't code for your pleasure, but mostly for educational purposes, fun, or just for ourselfs (we're cheap egoist bastards, you know?), all that in our spare time for no money and whenever something nice and helpfull comes out of it, we might share it with you. Some are even nice enough to share the complete source (like JiniCho & jonny), so everyone is free to improve things to their own liking, and others - like the PSPlayerMT dev - don't.mmick wrote: LOL Stop Dreaming? In what part?!
If it's already that great, then be happy there is this wonderfull peace of software. If you're not quite happy yet, well... then it can't be helped, since the dev made it impossible to improve his app further, so you're out of luck.what an existing simple program already does but due foreign websites disrespect to the Corean programmer it stopped from going further... well...
Until here I really was not thinking bad of you, but this sentence shows complete ignorance and impudance. With such comments, you make me wanna stop commiting to the community and just do everything for my own. If you don't like what we do, well... then do better. But never ever again blame someone for something that you're not capable of doing yourself. >:[I just can assume that you aren´t just able to do it so as the Corean programmer show us it is possible.
First I´m a new user as you can see and I don´t know what Jonny said several times. When I came here talking about things that could be improved the answer was almost as "I´m mighty powerful, damn you, shut up because I can´t be disturbed". The answer could be: please see post X because that was discussed OR that are some ideas but we´re not going that path.Raphael wrote:Until here I really was not thinking bad of you, but this sentence shows complete ignorance and impudance. With such comments, you make me wanna stop commiting to the community and just do everything for my own. If you don't like what we do, well... then do better. But never ever again blame someone for something that you're not capable of doing yourself. >:[
Code: Select all
patch -p0 < x264-pictiming-magik.diff
patch -p0 < x264-info_file.diff
606u wrote:As this topic went too long, maybe there is a similar HOWTO in the previous pages...
Step 0: setting-up (once, only):
- install perl, Bit-Vector and Carp-Clan packages;
- unrar pmp_muxer_avc_1_00_source.rar;
- .tar.gz files can be safely deleted;
- convert DOS line-endings to Unix-ones; I've used zip 1.zip *; unzip -a 1.zip; rm 1.zip;
- put the following as a first line in both perl scripts:- make perl scripts executable (chmod +x *.pl);Code: Select all
#!/usr/bin/perl -I/path/to/pmp_muxer_avc/dir
- unpack jonny's x264_source.rar, build and install (requires yasm);
- install mplayer/encoder if necessary;
Step 1: encoding video to H264:(Optional) Step 2: encoding audio to 44,1KHz MP3 (command-line borrowed from avi2pmp):Code: Select all
# mkfifo pipe.y4m # mplayer -benchmark -nosound -quiet -really-quiet \ -vo yuv4mpeg:file=pipe.y4m -vf scale=480:272 file.avi & # x264 --crf 25 -A all --level 3 --pictiming --aud --no-psnr \ --thread-input --output file.264 pipe.y4m
Step 4: mux file:Code: Select all
mencoder -quiet -really-quiet file.avi -srate 44100 -oac mp3lame \ -lameopts vol=0:mode=0:cbr:br=112 -ovc copy -of rawaudio -o file.mp3
Everything above in a shell-script:Code: Select all
pmp_muxer_avc -v file.264 -a file.mp3 -o file.pmp \ -w 480 -h 272 -r 23980 -s 1000
Code: Select all
#!/bin/sh die () { echo "$1" exit 1 } [ -f "$2.264" ] && die "$2.264: file exists" [ -f "$2.mp3" ] && die "$2.mp3: file exists" [ -f "$2.pmp" ] && die "$2.pmp: file exists" # set-up here: WIDTH=480 HEIGHT=272 FPS=23980 H264CRF=24 # up to 51; 18 == XviD' Qf 2 PIPE=/tmp/pipe.y4m [ -n "$1" -a -n "$2" ] || die "Usage: $0 in.avi out" rm -f $PIPE mkfifo $PIPE || exit 1 mplayer -benchmark -nosound -quiet -really-quiet \ -vo yuv4mpeg:file=$PIPE -vf scale=$WIDTH:$HEIGHT "$1" & x264 --crf $H264CRF -A all --level 3 --pictiming --aud --no-psnr \ --thread-input --output "$2.264" $PIPE mencoder -quiet -really-quiet "$1" -srate 44100 -oac mp3lame \ -lameopts vol=0:mode=0:cbr:br=112 -ovc copy -of rawaudio -o "$2.mp3" pmp_muxer_avc -v "$2.264" -a "$2.mp3" -o "$2.pmp" \ -w $WIDTH -h $HEIGHT -r $FPS -s 1000