How to convert .flv to .amv in Puppy, updated

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
peppyy
Posts: 443
Joined: Mon 27 Jun 2005, 23:49
Location: VT USA
Contact:

How to convert .flv to .amv in Puppy, updated

#1 Post by peppyy »

How to convert .flv to .amv with Puppy 3.01 and possibly others.

Hopefully this will prove to be helpful.

Edit: I created a dotpup called amverter which is in the beta stage, I would enjoy some feedback since this is a first for me. It can be found here http://www.murga-linux.com/puppy/viewtopic.php?t=38147

I recently bought one of those very inexpensive Multi-Media players on eBay from Hong Kong as a present for my son. It came with software for Win to convert video to the .amv format. This is the format that many of these little players use I was determined to do it with Linux.

I followed the directions found here
and downloaded the tool here.

After some trial and error here is what worked for me.

Download the tool and copy it to usr/bin
Rename it ffmpeg-amv
Make it executable, I did this from the right click menu in 3.01

I download whatever video to a directory /video to keep things simple.
My player uses 16-fps (frames per second) and a resoloution of 160x120 so I use the following code for conversion.

Code: Select all

ffmpeg-amv -i input-file.flv -s 160x120 -r 16 -ac 1 -ar 22050 -qmin 3 -qmax 3 output-file.amv
This works well for the player I have, in fact the quality often looks better than the original video.
I have not converted other video formats with this process so I do not know if they work or not.
I am hoping to find the time to create a little gui to add the filenames but don't count on it ;)
Last edited by peppyy on Fri 30 Jan 2009, 03:58, edited 1 time in total.
Puppy Linux...
It just works!

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#2 Post by paulski »

I did it similarly for Puppy 4.0 and it works on more formats
I downloaded :
http://amv-codec-tools.googlecode.com/f ... 6-20071030

renamed it to amv-ffmpeg

Got some hints from here
http://code.google.com/p/amv-codec-tool ... nvertToAMV

And ran the following in the command line to suit my Zicplay player that needs 128 x 96 amv files

Code: Select all

./amv-ffmpeg -i  INPUTFILE -f amv -s 128x96 -r 16 -ac 1 -ar 22050 -qmin 3 -qmax 3 OUTPUTFILE.amv
It worked for flv, avi, mpg, wmv so far
To do it from vob files I have had to convert to avi first. It just gets too complex otherwise

I even used Xdialog to make a neat little script tool to make the job easier (attached). Peppy - you could improve this if you want an easy gui.
Attachments
avi2amv.sh.gz
(407 Bytes) Downloaded 751 times

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

here is (supposedly) some code for a 2 pass ipod h264 ... I can't test it due to lack of said ipod but if anyone can confirm it I will try to make a right click option for ROX aka hot rox

Code: Select all

ffmpeg -y -i input_file -an -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 640x480 -f mp4 -pass 1 /dev/null

ffmpeg -y -i input_file -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 6 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 640x480 -acodec aac -ab 96 -ar 48000 -ac 2 -f mp4 -pass 2 output_file.mp4
(change 640x480 to 320x240 and -b 500k to 175k if you will only use it on an mp4 player and not tv or computer)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
peppyy
Posts: 443
Joined: Mon 27 Jun 2005, 23:49
Location: VT USA
Contact:

#4 Post by peppyy »

paulski wrote:
I even used Xdialog to make a neat little script tool to make the job easier (attached). Peppy - you could improve this if you want an easy gui.
Thank you, I have been pulling my hair out trying to create my first gui with glade to do this.

I found a problem with spaces in filenames and fixed that. I am using it with my settings for my player and I am sure a quick how-to would suffice for explaining that.

I have noticed the output directory is wherever the shell script is run from, I am looking into that now. Might just be worth wrapping up for folks once it is all done. I have built dotpups but no pets yet.

Thank you for pointing me in the right direction ;)
Puppy Linux...
It just works!

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

old thread - I made woo-ff since this was started
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply