#1  
Old 01-06-2009, 04:39 AM
Dedicated User
Phone: Nokia N82 V30.0.019
 
Join Date: Dec 2008
Location: California
Posts: 83
Thanks: 36
Thanked 1 Time in 1 Post
Encoding movies on Linux for the N82

Has anyone found a command that works on Linux to encode movies in a format that will work on the N82? I found two commands online, but the first fails to complete on 1 of the 2 movies I've tried, and audio doesn't work on the N82 with the second command, although it works when playing back the encoded file on the computer.

mencoder -of lavf -lavfopts format=mp4 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:acodec=libfaac:abitrate=128:vc odec=mpeg4:keyint=25 -af lavcresample=44100 -vf harddup,scale=320:-3 -mc 0 -noskip "source.mpg" -o "destination.mp4"

ffmpeg -y -i "source.mpg" -acodec libfaac -ab 72k -s 320x176 -aspect 16:9 -vcodec libx264 -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 "destination.mp4"

Has anyone found something reliable?
Reply With Quote
Sponsored links
  #2  
Old 01-07-2009, 11:22 PM
Newbie
Phone: N85 v30.019, N95 v31.0.017, E61i v3.0633.69
N-Gage ID: None
 
Join Date: Dec 2008
Location: uk
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Does it need to be command-line?

Avidemux is a fantastic conversion program and works well on linux.

If you want some help with the exact settings let me know. (RealPlayer on the S60 is sooooo fussy with codec specifics - You need baseline h264 or simple-profile xvid, with aac audio, in an MP4 wrapper)
Reply With Quote
  #3  
Old 01-08-2009, 07:09 PM
Dedicated User
 
Join Date: Jun 2008
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
I just want to say I'm also interested in this. And preferably a command line version (as I find it easier to apply multiple times, automatically etc). Those conversion command line tools are quite complex, if I find anything I'll post it and otherwise I'll lurk around this thread. :)
Reply With Quote
  #4  
Old 01-09-2009, 07:39 PM
Nokia Guru
Phone: N97 mini ver 10.0.020 vodafone UK branded
 
Join Date: May 2007
Location: Yorkshire
Posts: 1,409
Thanks: 100
Thanked 207 Times in 179 Posts
Quote:
Originally Posted by ggking7 View Post
Has anyone found something reliable?
You are probably missing some codec, what flavour of Linux is it?

If it's ubuntu try the adding the medibuntu repository, also look for "plugins-ugly" in synaptics.
Reply With Quote
  #5  
Old 01-09-2009, 08:02 PM
Dedicated User
Phone: Nokia N82 V30.0.019
 
Join Date: Dec 2008
Location: California
Posts: 83
Thanks: 36
Thanked 1 Time in 1 Post
You think it's a missing codec? 1 of the 2 videos I tried worked perfectly. I use Gentoo and I have gst-plugins-ugly installed.
Reply With Quote
  #6  
Old 01-09-2009, 10:01 PM
Dedicated User
Phone: Nokia N82 V30.0.019
 
Join Date: Dec 2008
Location: California
Posts: 83
Thanks: 36
Thanked 1 Time in 1 Post
ziggyball, I just tried avidemux with MPEG-4 AVC (x264) and AAC (FAAC) but the N82 says "Unable to open clip". Any idea what I need to fix?
Reply With Quote
  #7  
Old 01-11-2009, 02:17 PM
Newbie
Phone: N85 v30.019, N95 v31.0.017, E61i v3.0633.69
N-Gage ID: None
 
Join Date: Dec 2008
Location: uk
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
First, as an aside I have noticed that the *very* latest builds ~4499 create MP4 files which my N85 doesn't like - although they run fine on my N95 - so your N82 should be ok with all builds. Certainly v2.4.3 build 4276 is stable and creates most compatible MP4s.

So, for the best h264 encode...

Select MPEG-4 AVC (x264)
Then in Configure:
Set the Encoding mode to Constant Bitrate
Set Target bitrate to about 500kb/s
Under Misc, you need to untick CABC
In Partition Macroblocks, untick everything except 4x4 UntraSearch
In B-frames, untick everything and set everything to None, 0 or disabled (N95/N85 don't support any kind of B-frames)

Then select whichever video filters you want as long as you end up with a 320x240 output (de-interlacing if needed)

In the audio, select AAC (FACC) I tend to use 96kb/s
The audio filters you use (if any) will depend on the input audio (check menu audio option 'Main Track'). You 'might' need mix it down to stereo if the input audio is multi-channel.

Then select MP4 Format and off you go ;)
I know this isn't exactly point and click but it does give a high level of control...
Reply With Quote
  #8  
Old 01-13-2009, 03:27 AM
Dedicated User
Phone: Nokia N82 V30.0.019
 
Join Date: Dec 2008
Location: California
Posts: 83
Thanks: 36
Thanked 1 Time in 1 Post
Thanks ziggyball, I get sound with your settings but it's way out of sync with the video when I play it back on the computer. When I play it back on the N82, the same 60 seconds or so of sound seems to repeat throughout the video. Very weird. The source .mpg plays back on the computer perfectly. Does any of this ring a bell for you?
Reply With Quote
  #9  
Old 01-19-2009, 12:01 AM
Newbie
Phone: N85 v30.019, N95 v31.0.017, E61i v3.0633.69
N-Gage ID: None
 
Join Date: Dec 2008
Location: uk
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Hmmm, ggking7, this is an interesting problem.

You could try using avidemux to save the audio as a WAV (set audio to WAV PCM and go to audio=>save) and inspect whether the WAV is complete or repeating or too fast/slow. If it *is* then transcoding it will be more tricky. If it's okay, then try using the wav as the source of the audio.

The hammer to crack a nut solution to this would be to save the audio as a wav. Then encode the resulting wav as an aac/m4a and mux back into your final mp4 using somthing like yamb.

Of course the best thing is just to get avidemux working correctly with the mpg! If you go to the toolbar and select audio=>main-track, what are the details? If there is a shift reported in the audio you have to compensate for it in the shift setting in Audio filters.

Can I ask what the mpg is that you're trying to covert? What other files if any have you tried?

Cheers :-)
Reply With Quote
  #10  
Old 01-19-2009, 01:05 AM
Dedicated User
Phone: Nokia N82 V30.0.019
 
Join Date: Dec 2008
Location: California
Posts: 83
Thanks: 36
Thanked 1 Time in 1 Post
I've actually got it working with h264enc now. It has 2 built-in S60 presets and they work great. Thank you for your help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoding Music - Which Codec - What settings?? (N95-2) Blatant General 95 27 05-01-2008 11:24 PM
video encoding n95 8gb monkeyplay3k General 95 0 03-24-2008 12:01 AM
N95 and Nero Recode 3 encoding problems w_suther General 95 5 02-21-2008 07:47 PM
Encoding for Video Out kilofox General 95 5 10-18-2007 10:23 PM
Encoding filies to 3gp Exploring General 95 1 09-20-2007 02:46 PM


All times are GMT. The time now is 03:24 PM.


Style design and concept by DigitalVB.com
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
Integrated by BBPixel ©2003-2010, jvbPlugin
Ad Management by RedTyger

no new posts