convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue :)


 
Thread Tools Search this Thread
Operating Systems Linux convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue :)
# 1  
Old 12-22-2008
convert avi to cellphone friendly 320x176 mp4 file...ffmpeg to the rescue :)

found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution Smilie

to encode an avi to to an nokia e71 recognized mp4 format:

ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 250 \
-keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 -directpred 3 outputFILE.mp4


original file was 700MB, resulting mp4 encoded file slightly less then half @300MB...quality is excellent Smilie

even though I don't foresee watching many video's on this amazing phone, I thought I would share my findings...

hh,
manny
# 2  
Old 12-23-2008
Out simple curiosity, which options were causing you problems ( ie which ones did you have to tweak to get it to work) ?

Also what was the input encoding?

I have a number of h.264 / X.264 devices and usually have to spend an inordinate amount of time figuring out options on a per-file basis if I want to transcode them.
# 3  
Old 12-23-2008
reborg,
don't have the previous ffmpeg commands handy, but the input file properties are as follows:

$ file test.avi
test.avi: RIFF (little-endian) data, AVI, 632 x
258, 23.98 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)


please let me know if you have any other ?s
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Wget for downloading a public file (stream) as mp4

I need a hint for using wget for getting a free content from a TV station that is streaming its material for a while until it appears on any video platform, that means no use of illegal methods, because it is on air, recently published and available. But reading the manual for wget I tried the... (5 Replies)
Discussion started by: 1in10
5 Replies

2. Shell Programming and Scripting

How to find the length of MP4 file in cygwin?

Hi, Apologies if I'm posting in wrong section. How can I find length (duration) of MP4 videos and m4a audio files on cygwin? I heard about mediainfo, ffmpeg, avconv utilities on Linux platform but not sure if they work (or available) on cygwin. Please advise, TIA (1 Reply)
Discussion started by: prvnrk
1 Replies

3. UNIX and Linux Applications

Help in converting VOB file to AVI

Hello to all in forum, Somebody could help me saying me which command or application can I use to convert correctly a VOB file of more than 5 GB in size. I have the VIDEO_TS folder with the files: - VTS_01 - Stream Information.txt - VTS_01_0.IFO - VTS_01_1.VOB The Stream Information... (4 Replies)
Discussion started by: Ophiuchus
4 Replies

4. What is on Your Mind?

convert DVD to mp4 for my nook

How can I transfer my Television DVD collection to a hard drive converting all files to mp4 (for my nook tablet). (0 Replies)
Discussion started by: madison768
0 Replies

5. Shell Programming and Scripting

ffmpeg script to convert all movies in a folder for PSP

Hi all, I use ffmpeg to convert my movies to play them with my PSP. I use the terminal version of ffmpeg so i put in the code: ]ffmpeg -i FILENAAM.avi -f psp -r 29.97 -b 512k -ar 24000 -ab 64k -s 320x240 M4V00001.MP4 FILENAAM is the part i replace with the title of the movie i want to see... (17 Replies)
Discussion started by: Ditzyken
17 Replies

6. Shell Programming and Scripting

Automated FFmpeg Convert Bash Script

I need a bash script that will. So here is what I made so far. 1. Convert video files to iPhone format 2. MV converted video to new directory (with domain.com attached to it) 4. Copy a NFO file (from another directory) and add some conversion information 5. Delete old directory torrent... (6 Replies)
Discussion started by: domz
6 Replies

7. UNIX and Linux Applications

Convert .mp4 to .avi

Hello, I need software to convert multimedia files. What is the good software? I was looking for it on the web, but I did not find any special. Thanks... (1 Reply)
Discussion started by: feliks
1 Replies

8. Shell Programming and Scripting

ffmpeg or mplayer for avi conversion?

I need to output a summary of a video as an animated gif. Ideally, I would have 8 equally-spaced frames from the video, and play them back one at a time, each for 0.25 seconds. So I'd have a 2 second animated gif. This is what I have so far: #!/bin/bash mplayer "$@" -vo... (0 Replies)
Discussion started by: dotancohen
0 Replies
Login or Register to Ask a Question