View Full Version : Looking for a Linux H.264/Stereo AAC encoding script for Xbox 360 compliant video
MukiEX
7th September 2007, 22:07
FFMpeg or Mencoder would be fine. Heck, even a VLC setup would be great. I'm just looking for a way to encode videos (SD vids, but HD would be nice too) at optimal settings for the Xbox 360.
However, I've pulled hair out looking for a mencoder script (does it even work for this purpose?) and my only fast box is a Linux box, so that puts me an a wonderous bind. ^_^ Mencoder is optimal mainly because I know the vids play fine under mplayer.
Any help, of course, would be greatly appreciated. =3
MukiEX
20th October 2007, 19:53
No such luck?
The closest thing I could personally find was this little epic thread from mencoder-users, but I couldn't even use the final ffmpeg script.
http://lists.mplayerhq.hu/pipermail/mencoder-users/2007-May/005957.html
disturbed1
24th October 2007, 01:25
I don't own a 360, nor have ever encoded anything for it but....
give this a try http://h264enc.sourceforge.net/index.html I use his xvidenc script, quite a nice script. I'd suspect the h264 to be of the same caliber.
kxmas
28th October 2007, 18:53
Here's what I'm using with MythTV.....
video_filter_args=""
if [ "x$hdtv" = "x" ]; then
video_filter_args="pullup,softskip,harddup,scale=640:480,scale=-10:-1"
bitrate=1200
elif (( "$videoheight" >= "1080" )); then
video_filter_args="pullup,softskip,harddup,scale=1280:720,scale=-10:-1"
bitrate=4200
elif (( "$videoheight" >= "720" )); then
video_filter_args="pullup,softskip,harddup,scale=-10:-1"
bitrate=4200
fi
nice -n 17 mencoder -vf "${video_filter_args}" -passlogfile "${file_name}.2pass.log" -ovc x264 -x264encopts crf=20:threads=auto:turbo:pass=1:bframes=3:partitions=p8x8,b8x8,i4x4:direct_pred=auto:keyint=250:level_idc=41:subq=1:frameref=1 -oac copy -ofps 30000/1001 -of rawvideo -o /dev/null "${original_name}" 1>/dev/null
nice -n 17 mencoder -vf "${video_filter_args}" -passlogfile "${file_name}.2pass.log" -ovc x264 -x264encopts bitrate="${bitrate}":threads=auto:pass=2:bframes=3:partitions=p8x8,b8x8,i4x4:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=250:level_idc=41:me=umh:subq=7:frameref=3:keyint_min=25:me_range=16:no8x8dct:mixed_refs:weight_b -oac copy -ofps 30000/1001 -of rawvideo -o "${file_name}".264 "${original_name}"
nice -n 17 mplayer "${original_name}" -dumpaudio -dumpfile "${file_name}.ac3"
nice -n 17 ffmpeg -y -i "${file_name}.ac3" -ac 2 "${file_name}.wav"
nice -n 17 /opt/cxoffice/bin/wine neroAacEnc_SSE.exe -2pass -br 160000 -lc -if "${file_name}.wav" -of "${file_name}-audio.mp4"
nice -n 17 MP4Box -fps 29.97 -add "${file_name}.264" -add "${file_name}-audio.mp4" "${file_name}.mp4"
nice -n 17 MP4Box -hint "${file_name}.mp4"
nm
29th October 2007, 07:30
nice -n 17 mencoder -vf "${video_filter_args}" -passlogfile "${file_name}.2pass.log" -ovc x264 -x264encopts crf=20:threads=auto:turbo:pass=1:bframes=3:partitions=p8x8,b8x8,i4x4:direct_pred=auto:keyint=250:level_idc=41:subq=1:frameref=1 -oac copy -ofps 30000/1001 -of rawvideo -o /dev/null "${original_name}" 1>/dev/null
nice -n 17 mencoder -vf "${video_filter_args}" -passlogfile "${file_name}.2pass.log" -ovc x264 -x264encopts bitrate="${bitrate}":threads=auto:pass=2:bframes=3:partitions=p8x8,b8x8,i4x4:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=250:level_idc=41:me=umh:subq=7:frameref=3:keyint_min=25:me_range=16:no8x8dct:mixed_refs:weight_b -oac copy -ofps 30000/1001 -of rawvideo -o "${file_name}".264 "${original_name}"
It would be better to use a similar bitrate for both passes, which is not necessarily the case here when using CRF for the first pass. I'd go for a single CRF pass or two passes with the same bitrate specified for both.
kxmas
30th October 2007, 06:42
Thanks for the tip
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.