|
2010-05-15
, 21:19
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#22
|
#!/bin/bash for video in "$@"; do name="${video##*/}" name=${name%.*} fps=`mplayer -identify -ao null -vo null -endpos 2 "$1" | grep ID_ | grep ID_VIDEO_FPS | uniq | cut -d'=' -f 2` mkfifo "$name.y4m" nohup mplayer "$video" -nosound -benchmark -vo yuv4mpeg:file="$name.y4m" -sws 9 -vf dsize=800:480:0,scale=0:0,expand=800:480,dsize=15/9 2>&1 & sleep 4 x264 --profile baseline --level 3 --no-cabac --partitions p8x8,b8x8,i4x4 --me umh --subme 7 --threads auto --no-fast-pskip --output "$name.264" "$name.y4m" --pass 1 --bitrate 2000 sleep 2 nohup mplayer "$video" -nosound -benchmark -vo yuv4mpeg:file="$name.y4m" -sws 9 -vf dsize=800:480:0,scale=0:0,expand=800:480,dsize=15/9 2>&1 & sleep 4 x264 --profile baseline --level 3 --no-cabac --partitions p8x8,b8x8,i4x4 --me umh --subme 7 --threads auto --no-fast-pskip --output "$name.264" "$name.y4m" --pass 2 --bitrate 2000 mkfifo "$name.wav" neroAacEnc -ignorelength -lc -q 0.5 -if "$name.wav" -of audio.mp4 2>nero.log & mplayer -nocorrect-pts -vo null -vc null -ao pcm:file="$name.wav":fast "$video" MP4Box -fps $fps -add "$name.264" -add audio.mp4 "$name.mp4" #`which mkvmerge` -D "audio.mp4" -A "$name.264" -o "$name.mkv" rm -f *.{log,y4m,264,wav,mbtree} rm -f audio.mp4 nohup.out done
./scriptname Video Video2 Video3 Video4
The Following 4 Users Say Thank You to fatalsaint For This Useful Post: | ||
|
2010-05-16
, 01:18
|
Posts: 25 |
Thanked: 4 times |
Joined on Jan 2010
@ Belfast
|
#23
|
[codec_id]
CODEC_ID_AAC
[codec_longname]
libfaac AAC (Advanced Audio Codec)
[codec_type]
Audio
[codec_bitratemin]
24
[codec_bitratemax]
320
[codec_bitrates]
[codec_resolutions]
[codec_framerates]
[codec_samplerates]
32000
44100
[codec_channelsmin]
0
[codec_channelsmax]
2
[codec_id]
CODEC_ID_H264
[codec_longname]
libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[codec_type]
Video
[codec_bitratemin]
100
[codec_bitratemax]
2000
[codec_bitrates]
[codec_resolutions]
800x480 maximum
[codec_framerates]
5
10
12
15
23,976023976024
24
25
29,97002997003
[codec_samplerates]
32000
44100
48000
[codec_channelsmin]
0
[codec_channelsmax]
0
[1088_hack]
True
[vbv_buffer]
2000
[max_bitrate]
2000
[level]
30
[cabac]
True
[MaxRefs]
4
[DisableHighPartitions]
True
[MaxBFrames]
0
[BPyramidMode]
0
[WeightedPPred]
0
[DoAutoDeint]
True
[DoAutoDetele]
True
|
2010-05-16
, 04:24
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#24
|
|
2010-05-16
, 04:48
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#25
|
heres some guidelines for settings
this will give you playable smooth bitrate in default media player (maybe smoother with oss media server in km player)
|
2010-05-16
, 04:49
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#26
|
|
2010-05-16
, 06:07
|
|
Posts: 270 |
Thanked: 610 times |
Joined on Nov 2007
@ Leipzig/Germany
|
#27
|
The Following 2 Users Say Thank You to seiichiro0185 For This Useful Post: | ||
|
2010-08-15
, 17:45
|
|
Posts: 546 |
Thanked: 85 times |
Joined on Feb 2008
@ Winnipeg, Canada
|
#28
|
|
2010-09-07
, 19:54
|
|
Posts: 546 |
Thanked: 85 times |
Joined on Feb 2008
@ Winnipeg, Canada
|
#29
|
|
2010-09-07
, 21:28
|
|
Posts: 635 |
Thanked: 282 times |
Joined on Sep 2009
@ Black Mesa Research Facility
|
#30
|
As far as mencoder goes I've come up with several different one-liners, two of which I've included here:
I thought about trying the specialized Handbrake setting from the Video Encoding wiki, but I'm really looking for a CLI method & HandbrakeCLI can't use custom presets. So to use that I'd need to "translate" it.
Any tips? TX
GROG!
N900 | ZAGG Body Armour | 16Gb A-DATA micro-sd
N810 | 2 x Patriot 8gb mini-SD | Boxwave Crystal Clear SS | Black Aluminum case | OTG dongle
N800 | 2 x 8gb OCX SD | Boxwave Anti-glare SS | PDAir book-style case
Holux M-1200 bluetooth GPS | iGo 4-row bluetooth keyboard | Linksys USB 10/100 ethernet | Plantronics Voyager 855 BT Headset