INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
iPod H.264 640X480 3gp_converter hack

Forum Index -> Video -> Portable Video Printer-friendly version
Goto page Previous  1, 2, 3  Next
Reply to topic

What profiles:
Movies, with ratings
0%
 0%  [ 0 ]
Movies, with cover art
12%
 12%  [ 1 ]
TV shows, with tagging
12%
 12%  [ 1 ]
all of the above.
75%
 75%  [ 6 ]
Total Votes : 8

Author Message
crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 07, 2007 17:50 Posts Comp View users profile Send private message Reply with quote

LOOKS GREAT, the only thing I see so far is I think under TV Show you need Episode ID as well. Episode Title, Episode # and Episode ID are common meta data and specifically with iTunes.

Thanks,
John


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 07, 2007 17:54 Posts Comp View users profile Send private message Reply with quote

I am actually generating Episode ID by putting season number and episode number together. As in season 1, episode 20 the episode id would be 120. It makes it a little bit less work and less data entry.
_________________
White & Nerdy


crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 07, 2007 18:02 Posts Comp View users profile Send private message Reply with quote

That would be great, but a huge percentage of episode ID's do not work in that manner. For instance the first three shows I just pulled up on www.tv.com do not work in that manner. Here are links to Fresh Prince, Friends and 24. Not any of these shows are anywhere near the standard 101,102's that are so common.

http://www.tv.com/the-fresh-prince-of-bel-air/show/475/episode_li ... s;episodes

http://www.tv.com/friends/show/71/episode_listings.html?om_act=co ... s;episodes

http://www.tv.com/24/show/3866/episode_listings.html?om_act=conve ... s;episodes


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 07, 2007 18:08 Posts Comp View users profile Send private message Reply with quote

Well i Guess i could add that. I will look into it.
_________________
White & Nerdy


crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 07, 2007 18:10 Posts Comp View users profile Send private message Reply with quote

If you don't add it you might add an option too not automatically generate the ID, because I would rather my files not have the ID over having the incorrect ID. Once again you are doing a great job on this project. Thanks again.
John


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 07, 2007 18:18 Posts Comp View users profile Send private message Reply with quote

OK i have added it, when you put in the season and episode number it will be auto generated but you can change it at will.
_________________
White & Nerdy


Xolo
Member


Joined: 18 Mar 2001
Location: Canada

Post Posted: Jan 08, 2007 15:52 Posts Comp View users profile Send private message Reply with quote

What I would like to see is this software available for PC's, not just Macs.......think it'll be possible?

Thanks
_________________
Are you registered as human?
Negative, I am a meat popsicle!


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 08, 2007 15:55 Posts Comp View users profile Send private message Reply with quote

The first version is a PC only version version 2 will be for all platforms (win, OSX, and Linux)
_________________
White & Nerdy


Soopafresh
Dismember


Joined: 01 Jan 2004
Location: United States

Post Posted: Jan 08, 2007 17:53 Posts Comp View users profile Send private message Reply with quote

Nice work on this stuff smile.gif I like the error checking and roll back features as well. As far as command line transcoder is concerned... the newer versions of FFmpeg are MultiCore capable, which is a slight advantage over Mencoder (both apps are close relatives anyway). Mencoder might be weird with A/V sync on h264. Can't recall the specifics - it might be an issue with muxing to an AVI container rather than MP4. By far, the most actively developed h264 software is x264, which always requires avisynth input, is a tad slow, but produces pretty amazing video, and is also multicore aware.


Your other hurdle is use of DirectShowSource for Mpeg2 source files. While there's been a lot of enhancements to Directshowsource in Avisynth 2.57, it'll be a faster and better synced transcode if you use Mpeg2source. Problem with that is the extra space of including DGindex and Dgdecode with your software.

Dunno if you'd consider it, but I'd love to see the .PB file for your GUI when you're done. I'm trying to create a gui for some of my own automated processes (mostly audio normalizing), but I realize I'm synaptically challenged.


FallenAngelII
Member


Joined: 09 Oct 2005
Location: Sweden

Post Posted: Jan 15, 2007 02:06 Posts Comp View users profile Send private message Reply with quote

Suggestion: Add the ability to encode video in less than 750 kbps. Some of us like to encode in lower bitrates tongue.gif. Add the ability to encode video in bitrate 1 and up tongue.gif.

FallenAngelII
Member


Joined: 09 Oct 2005
Location: Sweden

Post Posted: Jan 17, 2007 09:27 Posts Comp View users profile Send private message Reply with quote

Does anyone know what value to change to change the frame rate? Or fix it somehow? Because the two movies I tried encoding both went more and more offsync the more time passed (the output had too high a frame rate compared to the source).

crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 17, 2007 10:31 Posts Comp View users profile Send private message Reply with quote

I am trying to go by memory, but I think the -r sets a set frame rate. I also believe the hack was set up to encode everything at 30 fps. I think you can remove the -r and the number and it will try and encode to the original frame rate. However my sync issues often come when my original audio had a vbr. Here is what I have had to do for some of my XVID files that have a vbr.

1) Extract an uncompressed wav from the mp3.
2) Remultiplex with Virtual Dub Mod.
3) Remove the -r 30 or change to -r (desired/original frame rate)in the hack
4) Encode

I have no idea if any of this is correct, because I don't really know what I am doing, but this is what I have tried.


crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 17, 2007 14:39 Posts Comp View users profile Send private message Reply with quote

I have just tried what I lined out above and it did not work for me as I thought it would. The XVID play in sync after I multiplex the wav, but after I run it through the hack it is out of sync. So if you come across a good solution please let me know. Sorry if I caused any problem for you.

ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 17, 2007 16:18 Posts Comp View users profile Send private message Reply with quote

That should work. and just a side question what is the input file format?
_________________
White & Nerdy


crash447
Member


Joined: 07 Aug 2002
Location: United States

Post Posted: Jan 17, 2007 16:27 Posts Comp View users profile Send private message Reply with quote

The Input is an .avi with XVID/MP3. I have tried both leaving out the -r and framerate and putting in -r 23.976 for the frame rate because that is the original framrate and both times I get an out of sync file encoded at 23.981 fps.

ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 17, 2007 16:35 Posts Comp View users profile Send private message Reply with quote

OK weird.... i haven't ever had problems with avi's mostly vob problems. try changing -r to -maxfr see if that works
_________________
White & Nerdy


GMaq
Linux Member


Joined: 17 Mar 2004
Location: Canada

Post Posted: Jan 17, 2007 18:18 Posts Comp View users profile Send private message Reply with quote

Hi,
How about the "Movie" presets, my encoded file ends up in oblivion, if I use the "TV Shows" preset it works OK but then I have to re-tag the encoded file so iTunes doesn't see my movie as a TV Show. Any one else notice this or aren't you doing movies.
_________________
My Site: www.bandshed.net
Wife's Site: www.morethanwordsbooks.ca
My Guide: http://forum.videohelp.com/topic330839.html
My App: http://www.bandshed.net/3GP.html


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 17, 2007 18:38 Posts Comp View users profile Send private message Reply with quote

That is cause by an error on my part. Remove the line that says -chap {somefile.txt}
_________________
White & Nerdy


GMaq
Linux Member


Joined: 17 Mar 2004
Location: Canada

Post Posted: Jan 17, 2007 19:03 Posts Comp View users profile Send private message Reply with quote

ssj2_goha wrote:
That is cause by an error on my part. Remove the line that says -chap {somefile.txt}
Hi Again,
Thanks for the fix, it really makes the program much more useful to me. Sorry to be thick, I'm no good with commandline, I've always used apps with GUI's. Do I remove the entire line or just "-chap" from the line that contains it? And just to be extra stupid we're editing the Transcoding.INI file right?
_________________
My Site: www.bandshed.net
Wife's Site: www.morethanwordsbooks.ca
My Guide: http://forum.videohelp.com/topic330839.html
My App: http://www.bandshed.net/3GP.html


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 17, 2007 23:42 Posts Comp View users profile Send private message Reply with quote

just -chap and the .txt file after it. and yes in the trascoding.ini file
_________________
White & Nerdy


FallenAngelII
Member


Joined: 09 Oct 2005
Location: Sweden

Post Posted: Jan 18, 2007 01:01 Posts Comp View users profile Send private message Reply with quote

Well, it's not because of a VBR-thing. My rip of "Over The Head" uses CBR. Ah well, I'll try the suggested fixes smile.gif.

FallenAngelII
Member


Joined: 09 Oct 2005
Location: Sweden

Post Posted: Jan 18, 2007 01:28 Posts Comp View users profile Send private message Reply with quote

Umm... these are the command lines I'm using:
Command0=""<%AppPath%>\cores\ffmpeg" -y -r -maxfr -i "<%InputFile%>" -deinterlace -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 320x240 -b 500 -maxrate 1400 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command1=""<%AppPath%>\cores\ffmpeg" -y -r -maxfr -i "<%InputFile%>" -deinterlace -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 320x240 -b 500 -maxrate 1400 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command2=""<%AppPath%>\cores\NicMP4Box.exe" -add "<%TemporaryFile%>.M4V" "<%OutputFile%>.M4V""
Command3="rm "<%TemporaryFile%>.M4V""
Command4="rm ""<%OutputFile%>-0.log""
Command5=""<%AppPath%>\cores\AtomicParsley.exe" "<%OutputFile%>.M4V" -W --stik "Movie" --title "<%Title%>" -artwork "<%OutputFile%>.png""

And it gives me an Error. >_>'


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 18, 2007 03:05 Posts Comp View users profile Send private message Reply with quote

Command0=""<%AppPath%>\cores\ffmpeg" -y maxfr 30 -i "<%InputFile%>" -deinterlace -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 320x240 -b 500 -maxrate 1400 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command1=""<%AppPath%>\cores\ffmpeg" -y -maxfr 30 -i "<%InputFile%>" -deinterlace -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 30 -fixaspect -s 320x240 -b 500 -maxrate 1400 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command2=""<%AppPath%>\cores\NicMP4Box.exe" -add "<%TemporaryFile%>.M4V" "<%OutputFile%>.M4V""
Command3="rm "<%TemporaryFile%>.M4V""
Command4="rm ""<%OutputFile%>-0.log""
Command5=""<%AppPath%>\cores\AtomicParsley.exe" "<%OutputFile%>.M4V" -W --stik "Movie" --title "<%Title%>"

Try that biggrin.gif
_________________
White & Nerdy


FallenAngelII
Member


Joined: 09 Oct 2005
Location: Sweden

Post Posted: Jan 18, 2007 03:35 Posts Comp View users profile Send private message Reply with quote

That didn't work. I edited the first maxfr into -maxfr and now it's encoding. Now all I have to do is wait for another hour and a half for the movie to finish encoding tongue.gif.

What does -maxfr 30 do, anyway? Encode the video with a maximum frame rate of 30, encoding it with the same framerate as the source file? Or does it force the source file into 30 frames, no matter how many it had to begin with, changing it somehow?


ssj2_goha
iMember


Joined: 18 Oct 2005
Location: Japan

Post Posted: Jan 18, 2007 05:13 Posts Comp View users profile Send private message Reply with quote

oops my bad..... i should have tripled checked that... it was to be -maxfr sorry again.....
Also if you want a video size of 320X240 you can use this:

Command0=""<%AppPath%>\cores\ffmpeg" -y -maxfr 30 -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 13 -fixaspect -s 320x240 -b 600 -maxrate 768 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 1 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command1=""<%AppPath%>\cores\ffmpeg" -y -maxfr 30 -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -bitexact -vcodec h264 -coder 0 -bufsize 256 -g 250 -vlevel 13 -fixaspect -s 320x240 -b 600 -maxrate 768 -qmin 2 -qmax 51 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 64 -f ipod "<%TemporaryFile%>.M4V""
Command2="rm "<%OutputFile%>-0.log""
Command3=""<%AppPath%>\cores\QT3GPPFlatten" "<%TemporaryFile%>.M4V" "<%TemporaryFile%>_2.M4V" -c QT_H264_QVGA_AAC.ini -t mpg4"
Command4="rm "<%TemporaryFile%>.M4V""
Command5=""<%AppPath%>\cores\ATOMChanger" "<%TemporaryFile%>_2.M4V" "<%OutputFile%>.M4V" "Camouflage_MOVIE_for_iPod.ini" "<%Title%>""
Command6="rm "<%TemporaryFile%>_2.M4V""
Command7=""<%AppPath%>\cores\AddiTunes" "<%OutputFile%>.M4V"

that is for the old iPod standard

Yes -maxfr 30 makes the output file the same as the input as long as it's not over 30FPS if it is it make the output file 30FPS
_________________
White & Nerdy