Converting videos for portable devices (including softsubs)

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Re: Converting videos for portable devices (including softsubs)

Postby fobboy » Sun Aug 09, 2009 12:03 am

I am using the stable version of zarxgui. I do have output of text and xml.
fobboy
 
Joined: 26 Dec 2006

Re: Converting videos for portable devices (including softsubs)

Postby GloryQuestor » Sun Aug 09, 2009 10:49 am

btw, I would also recommend looking at Videora as an alternative. It supports the widest configuration range of devices, including the latest phone models. I've been using it for years now on both my PSP and currently for iPhone 3G video, and each video works perfectly in the correct resolution.
( :| Serious Business Studios :| )
Website Administrator, AnimeMusicVideos.Org
Pittsburgh Japanese Culture Society Events - AMV Department Head
Anime Weekend Atlanta - Video Art Track Department Supervisor
Another Anime Convention - Fan-Works Theater Staff
ImageImage
User avatar
GloryQuestor
Moderation Hero
 
Joined: 13 Apr 2004
Status: Study, Study, Study, Edit, Study, Study...

Re: Converting videos for portable devices (including softsubs)

Postby fobboy » Sun Aug 09, 2009 5:35 pm

I don't think videora converts softsubs (the ones without txt files).
fobboy
 
Joined: 26 Dec 2006

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Mon Aug 10, 2009 12:06 pm

@fobboy
I'm still looking into this. I am trying to encode the exact same file that you are and am getting an error as well. I'm not sure why... I haven't had this problem with other files that I've encoded. I'm using the same mp4box syntax as ZarxGUI's generated batch files. Encoding a file with the Zarxgui batch works but even when I use the same mp4box line in my batch this doesn't... I'm thinking that I might be doing something to an input stream that makes it incompatible in one of the earlier commands, not sure what though...


@GQ
I tried using Videora for Android devices after seeing your post. When I started setting setting up an encode, ads started popping up and caused numerous javascript errors in IE. I blindly clicked the option to stop executing scripts on the page to close the errors and it appears that the interface itself was a webapp. When I tried to add a video to encode after that, the dialog to add the file was missing. Closing Videora itself didn't bring back the UI. Had to close IE as well.

I did getting it working in the end, but It doesn't seem to maintain mkv softsubs. An option to batch process all files in a directory didn't jump out at me either. These are major differences from what my batch file aims to do.
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Mon Aug 10, 2009 3:16 pm

Fixed the problem. For some reason mp4box doesn't like outputting a file with that name to the converted_files folder so I instead am having it output a file called output.mp4 to the temp_files directory. Then when it is done the file is moved to the converted_files directory with the correct name. Probably should have been doing it this way from the start... This also prevents xml and txt files from showing up in the converted_files folder. Link in first post has been updated to new version.
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby mirkosp » Mon Aug 10, 2009 4:43 pm

Checking back, it seems that the filename had an & in it. Might be the cause. I know that mp4box doesn't like filenames with # in it, & might just be another character that's no good while muxing.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Mon Aug 10, 2009 5:23 pm

I thought that was the case, but I'm fairly certain I had previously processed files with ampersands. Also, in the batch file that zarxgui generates the ampersand is still present and unescaped. The zarxgui batch runs without error for me.

Code: Select all
"G:\Program Files\Zarx264gui\MP4Box.exe" -fps 23.97604 -add "F:\Video\Anime\[SZN & I-O] Hajime no Ippo New Challenger - 01[720p][1B50A5AA] v2.mkv-zarx264gui-temp.264" -add "F:\Video\Anime\[SZN & I-O] Hajime no Ippo New Challenger - 01[720p][1B50A5AA] v2.mkv-zarx264gui-temp.m4a" -new "F:\Video\Anime\[SZN & I-O] Hajime no Ippo New Challenger - 01[720p][1B50A5AA] v2.mkv-zarx264gui.mp4"


The only difference between Zarxgui's mp4box line and mine that I can think of is that I was using a "/../" to move back to a parent directory. If this is the cause then I'm not sure why there was no problem prior to this specific file...
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby fobboy » Thu Aug 20, 2009 9:11 pm

Awesome Corran. I came back from holidays and finally had the time to test out the fixed version. All the problems I had before are now gone. Just 1 point though. I was wondering if it was possible to change the height of the converted file as well?

The skewing of the video file isn't very noticeable to me, but the black bars on my itouch is very noticeable.
fobboy
 
Joined: 26 Dec 2006

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Thu Aug 20, 2009 10:00 pm

The aspect ratio of the video is maintained based on the output width provided. This should prevent skewing but can result in black bars if your display's aspect ratio is not the same as the videos aspect ratio. I don't plan to add an option for setting the height but others are free to do so.

However, from what I understand, the ipod touch and iphone have playback settings that allow the video to be stretched to fill the screen. I assume this based on testing I had a friend of mine perform. I do not have an apple device myself and can not verify.
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby fobboy » Sun Aug 23, 2009 11:13 pm

the option to "fill the screen" doesn't work well...it actually fills up more than the screen which results in a part of the outside picture being cut.

Can you direct me to a place where I can find out more information on editing the commands? What did you use to actually create the program?
fobboy
 
Joined: 26 Dec 2006

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Sun Aug 23, 2009 11:38 pm

You can right click the batch files and select Edit to open them in Notepad.


The way I currently have it, you can create a height variable in encode.bat at the top of the file. I recommend making a variable called targetheight next to the targetwidth variable.

To alter the command that actually does the encoding you need to edit encoder.bat in the tools directory. Specifically, you will need to edit the two lines that start with %mencoder%

Here are the mencoder docs:
http://www.mplayerhq.hu/DOCS/HTML/en/en ... guide.html
Scaling output:
http://www.mplayerhq.hu/DOCS/HTML/en/me ... put-aspect

The part of the command that you would need to edit is
Code: Select all
-vf scale,harddup -zoom -xy %targetwidth%


Keep in mind that by changing this to use a specific height and make the video fill the screen of your player, you are altering the video's aspect ratio to something different than the original file.
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby Enigma » Fri Sep 04, 2009 12:11 pm

Sticky nao
User avatar
Enigma
That jolly ol' bastid
 
Joined: 07 Mar 2009
Location: California
Status: Free

Re: Converting videos for portable devices (including softsubs)

Postby KuriYokan » Mon Sep 14, 2009 7:54 am

Hi. I must say, your program is fantastic! I would like to ask if there's a way to increase the volume of the audio in the converted videos. I find the sound a little too soft.
KuriYokan
 
Joined: 14 Sep 2009

Re: Converting videos for portable devices (including softsubs)

Postby Corran » Tue Sep 15, 2009 12:59 pm

KuriYokan wrote:I would like to ask if there's a way to increase the volume of the audio in the converted videos. I find the sound a little too soft.


The audio of the resulting file should match the original with the exception of files with more than two audio channels. I'm not sure how to best handle these types of files right now. (Maybe I shouldn't mess with channels at all...? Not sure how portable devices handle 2+ channel audio off the top of my head..)


It may be possible to adjust the audio volume via the mplayer command in "\tools\encoder.bat", but the batch files are not currently written to make such changes. The line that deals with mplayer audio extraction is the one that starts with %mplayer%.

Mplayer command line documentation can be found here if you wish to try and figure it out.
http://www.mplayerhq.hu/DOCS/man/en/mpl ... %20FILTERS
User avatar
Corran
 
Joined: 14 Oct 2002

Re: Converting videos for portable devices (including softsubs)

Postby carnivorous » Tue Oct 20, 2009 2:54 pm

Marvelous job! It works perfectly, with .ass softsubs and all. There is one thing that I can't figure out though.

For some reason the converted file ends up without ED or OP. As in, the whole chapter is fine, but the OP and ED are trimmed. And if I check the length of the video it lacks around 3 minutes compared to the source file (OP+ED). It might have something to do with the softsubs maybe? The karaoke?

For the record, the files I tried converting were 2 episodes of Toradora by the group Coalgirls ([Coalgirls]_Toradora(704x480_DVD_AAC)).

And sorry for bumping for such a stupid reason, but maybe someone else has the same issues as me. Once again, thanks for the hard work.
carnivorous
 
Joined: 20 Oct 2009

PreviousNext

Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest