maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Handbrake Video-Encoder, no valid 770-output? (https://talk.maemo.org/showthread.php?t=764)

niko 2005-12-19 00:45

Handbrake Video-Encoder, no valid 770-output?
 
I can't get valid videos for the 770 when encoding with handbrake / os x 10.3.

fps: 15
Encoder: ffmpeg
Bitrate: 200
File format: avi
Codecs: MPEG-4 Video/ MP3 Audio

(http://handbrake.m0k.org/)

Does somebody know if this is possible?

waddell 2005-12-19 01:54

Quote:

Originally Posted by niko
I can't get valid videos for the 770 when encoding with handbrake / os x 10.3.

fps: 15
Encoder: ffmpeg
Bitrate: 200
File format: avi
Codecs: MPEG-4 Video/ MP3 Audio

(http://handbrake.m0k.org/)

Does somebody know if this is possible?

There are a few limitations you need to keep in mind. Check the maemo.org wiki -

maemo.org/maemowiki/VideoEncoding

for more info. Depending on the aspect ratio of your source material, try encoding to a standard size, e.g. CIF, and see if that works. Also, try to simplify your mp3 related options, e.g. make sure you are using CBR, not VBR, etc... you might want to try just encoding the vidoe without an audio stream until such time as you know the video is working ok. Best of luck.

niko 2005-12-19 02:19

Thanks for your reply,

I forgot to post above that i encoded with several sizes all fitting the size-limitations we have with the 770 (max size, and the 16 pixel stuff).

I tried also different dvds and have encoded successfully for the 770 with my PC and DVD Catalyst. (great tool http://www.pocketdvd.ca/)

I am not sure if the output-format works with the 770 and i will stop testing until there is someone who says he has done it with success.

regards, niko

niko 2005-12-22 12:06

So we can say by now that it does not work ;-)

iangoh 2006-03-17 09:17

Modify HandBrake to encode with DIVX instead of DX50
 
Handbrake 0.7.x encodes File Format: AVI File (MPEG-4 Video/MP3 Audio) with DIVX 5 (DX50) when you use ffmpeg. The Nokia 770 video player does not support DX50 but does support DIVX playback (that's what happens when you use the Media Converter ).

I downloaded the HandBrake-0.7.1 source code , poked around looking for where the video codec was actually specified.

In libh/muxavi.c, starting at line 316:

Code:

    if( job->vcodec == HB_VCODEC_FFMPEG )
        h.Handler = FOURCC( "dx50" );
    else if( job->vcodec == HB_VCODEC_XVID )
        h.Handler = FOURCC( "xvid" );
    else if( job->vcodec == HB_VCODEC_X264 )
        h.Handler = FOURCC( "h264" );

So all I needed to do was change the "dx50" to "divx":

Code:

    if( job->vcodec == HB_VCODEC_FFMPEG )
        h.Handler = FOURCC( "divx" );

Then follow the HB Build instructions. The HandBrake.app now rips to DIVX video codec instead of DX50. Tested it against my Nokia 770. Works! :)

FOURCC video codecs listed at: http://www.fourcc.org/codecs.php

Supported Nokia Audio/Video Formats at: http://www.internettablettalk.com/content/view/156/2/

Share and Enjoy!

- Ian

niko 2006-03-20 11:44

Thanks for your repley, thats good news.
Unfortunately i have no experience with recompiling for Mac or Linux.

I found at the Handbrake-HP that now there is a version out for Windows too.
May be they have also included an option to change the codec.

If not, i think many people in this forum would be happy if you could share your compiled version somehow.

fanoush 2006-03-20 12:23

You can also use FOURCC changer. It is part of xvid codec here http://www.koepi.org Or you can change it inside video with some binary editor, just find DX50 in the video and replace with DIVX. It is somewhere in the beginning (on two places in specific video I tried).


All times are GMT. The time now is 06:25.

vBulletin® Version 3.8.8