Log in

View Full Version : WORKING sollution for 264 to Mpeg convert!


Glorioso
24th August 2006, 13:59
I want to convert some movies, mkv x264, to Mpeg2 or TS(or wmv), i want to see them on my Xbox 360 anda these are the only formats the 360 acepts.

smok3
24th August 2006, 14:14
what you need is ffdshow or coreavc and halli splitter installed, then you can use avisynth with directshowsource and drag that to any decent mpeg encoder (like HCenc). No idea about wmv.

Glorioso
24th August 2006, 15:43
...avisynth with directshowsource and drag that to any decent mpeg encoder (like HCenc). .

Can u explain me haw can i do that?

smok3
24th August 2006, 15:50
well install everything noted, then try if your clip plays fine with media player classic,

2. then install avisynth also (if not there allready)
3. fireup your notepad, write something like:
directshowsource("file.mp4")
# for HC also
converttoyv12()
4. save this text in same dir as your source file is, as file.avs for example.
5. see again if this avs file plays fine with any directshow player
6. open that avs file in your encoder of choice (mine is HCenc for example). Note that not all encoders like avs as input.

Glorioso
24th August 2006, 19:01
well install everything noted, then try if your clip plays fine with media player classic,

2. then install avisynth also (if not there allready)
3. fireup your notepad, write something like:
directshowsource("file.mp4")
# for HC also
converttoyv12()
4. save this text in same dir as your source file is, as file.avs for example.
5. see again if this avs file plays fine with any directshow player
6. open that avs file in your encoder of choice (mine is HCenc for example). Note that not all encoders like avs as input.

Having some problems with avs files! But HC18 only acepts resolutions up to 720/576?

smok3
24th August 2006, 19:06
yes, HC is limited that way, i didnt know you need to go higher?
what problems with avs files?

Glorioso
24th August 2006, 19:43
yes, HC is limited that way, i didnt know you need to go higher?
what problems with avs files?

I had some dificulties whith syntax, but i went to the avisynth site and read the manual.

I want to covert some 720p files to mpeg, any other encoder tha can handle tha resolution? and Ac3?

thx for the help

smok3
24th August 2006, 19:57
not sure which one to use, you could try quenc or mencoder...

ilovejedd
24th August 2006, 20:43
ffmpeg can convert directly from mkv to mpeg2
ffmpeg -i "infile.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 "outfile.mpg"
Unofficial Win32 builds can be found here (http://arrozcru.no-ip.org/ffmpeg_builds/). Download the GPL packages for AC3 encoding. You can also compile it from source if you want.

Glorioso
24th August 2006, 20:58
ffmpeg can convert directly from mkv to mpeg2
ffmpeg -i "infile.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 "outfile.mpg"
Unofficial Win32 builds can be found here (http://arrozcru.no-ip.org/ffmpeg_builds/). Download the GPL packages for AC3 encoding. You can also compile it from source if you want.

Sorry, i'm very newbie, where is that code used?

ilovejedd
24th August 2006, 21:33
Command line. In those MS-DOS/Command Prompt boxes. You can also type that in Start >> Run, just use the full paths for all the files. e.g.
"C:\Program Files\ffmpeg_6060_gpl\ffmpeg.exe" -i "C:\Documents and Settings\All Users\Documents\Videos\Escaflowne ep12.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 "C:\Xbox 360\Escaflowne ep12.mpg"

Glorioso
24th August 2006, 22:26
Command line. In those MS-DOS/Command Prompt boxes. You can also type that in Start >> Run, just use the full paths for all the files. e.g.
"C:\Program Files\ffmpeg_6060_gpl\ffmpeg.exe" -i "C:\Documents and Settings\All Users\Documents\Videos\Escaflowne ep12.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 "C:\Xbox 360\Escaflowne ep12.mpg"

One more thing, what do u mean by Download the GPL packages for AC3 encoding, in the site there is this:
FFmpeg Revision 6060
Shared:
FFmpeg_6060_shared_gpl.tar.bz2
FFmpeg_6060_shared_gpl.zip
FFmpeg_6060_shared.tar.bz2
FFmpeg_6060_shared.zip
Static:
FFmpeg_6060_static_gpl.tar.bz2
FFmpeg_6060_static_gpl.zip
FFmpeg_6060_static.tar.bz2
FFmpeg_6060_static.zip

ilovejedd
24th August 2006, 22:32
Either FFmpeg_6060_shared_gpl.zip or FFmpeg_6060_static_gpl.zip will work.

A little revision in the command line arguments.
"C:\Program Files\ffmpeg_6060_gpl\ffmpeg.exe" -i "C:\Documents and Settings\All Users\Documents\Videos\Escaflowne ep12.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 -f vob "C:\Xbox 360\Escaflowne ep12.mpg"
The earlier one I gave you was trying to save it as MPEG1-PS instead of MPEG2-PS. LoL, I was wondering why the audio wouldn't play on VLC. Anyway, adding -f vob before the output file should fix it.

Glorioso
25th August 2006, 17:06
"G:\HDTV\Exp\FFmpeg_6060_shared" -i "g:\hdtv\Dune.1984.720p.HDTV.x264-THOR.mkv" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 -f vob "g:\hdtv\exp\exp.mpg"

Nothing hapens!!! What is wrong with the string?

Fixed, exe missing, it's processing now

Glorioso
25th August 2006, 21:20
Ok, one problem, no audio, the video is fine but no audio (when i stop MPCLassic it crashes withe the encoded file). I've tried 3 times, one Mkv and 2 avis and never geted audio.

"G:\HDTV\Exp\ffmpeg-SVN-r6087-shared-gpl-win32\ffmpeg.exe" -i "g:\hdtv\DHDT.Spirit.of.Exploration.720p.Divx6.Ac3.avi" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 -f vob "g:\hdtv\exp\exp.mpg"

ricardo.santos
26th August 2006, 01:57
I want to convert some movies, mkv x264, to Mpeg2 or TS(or wmv), i want to see them on my Xbox 360 anda these are the only formats the 360 acepts.

Super and Merdiacoder converts it, but i "put my money" on avisynth + mpeg2 encoder.

ilovejedd
26th August 2006, 08:07
Ok, one problem, no audio, the video is fine but no audio (when i stop MPCLassic it crashes withe the encoded file). I've tried 3 times, one Mkv and 2 avis and never geted audio.

I wonder why? Perhaps it's having trouble decoding ac3 (although it shoudn't)? So far, I've only tested this with MKV with H264 video and MP3 audio and MKV with XviD video and Vorbis audio and both outputs worked fine.

I'm downloading Elephant Dreams HD right now and will try converting to test if it's an issue with AC3.

Glorioso
26th August 2006, 09:35
I wonder why? Perhaps it's having trouble decoding ac3 (although it shoudn't)? So far, I've only tested this with MKV with H264 video and MP3 audio and MKV with XviD video and Vorbis audio and both outputs worked fine.

I'm downloading Elephant Dreams HD right now and will try converting to test if it's an issue with AC3.

"G:\HDTV\Exp\ffmpeg-SVN-r6087-shared-gpl-win32\ffmpeg.exe" -i "g:\hdtv\christina_aguilera-aint_no_other_man.avi" -vcodec mpeg2video -b 6000 -r 29.97 -s 1280x720 -aspect 16:9 -acodec ac3 -ar 48000 -ac 2 -ab 192 -f vob "g:\hdtv\exp\exp.mpg"

Nwes, i have sound, i had installed a AvidExpress and i had a conflict in drivers i think. I used the code above. One BIG problem, in my pc the mpg rubs great, but in Xbox360 i get two black vertical bars in each side and a streched image. I think is something wrong with the atributes of the string, any clue?

ilovejedd
26th August 2006, 16:32
Get rid of -aspect 16:9. Since it's already 1280x720, setting the aspect ratio is unneeded and it may be causing problems for your Xbox 360. Other than that, I have no idea what the problem might be.

Glorioso
26th August 2006, 17:45
Get rid of -aspect 16:9. Since it's already 1280x720, setting the aspect ratio is unneeded and it may be causing problems for your Xbox 360. Other than that, I have no idea what the problem might be.
Didn't work, i'll try with other file, i tried with a ffmpeg gui but got the same result, black bars... stupid error!

alophind
6th September 2006, 20:24
I didn't understand this at all ,
I have a movie in H.264 in TS file (which is 5GB).
I want to convert it to MPEG2 file so I could see it on my TVix.

What do I need to do ? I tried to search the forum for solutions and didnt find any...

I really want to do this ;-) , Would be happy to get instructions for dummy (.. me ;) )

thx guys .