Esato

Forum > Sony Ericsson / Sony > Symbian phones > Fixed: no delay when playing long movies on M600 (probably on P990 also)

Author Fixed: no delay when playing long movies on M600 (probably on P990 also)
space2
M600 black
Joined: Jun 15, 2004
Posts: 218
From: Lund/Sweden
PM, WWW
Posted: 2006-09-16 12:39
Reply with quoteEdit/Delete This PostPrint this post
Hi!

I saw some of you had the problem that when playing long movies the phone seemed to crash. It waited a lot of seconds/minutes till the movie started to play, and was not responsive in that time.

I had the same problem, I tried with only smaller files, ~7-8 minutes, and the file had a startup time of 12-16seconds. I can image a full movie would then need ~2-3 minutes!

But, today I was able to fix the movie file, and now it starts in ~3 seconds (and I think the 3 seconds is not scalable, ie longer movies should start in the same time, but I don't have a bigger memory card to test

Now the bad news: I used linux. The good news: I think the tool I used (http://mpeg4ip.sf.net) is availabe for windows as well.

So now the solution:

First let's list the contents/tracks of the .mp4 file:


$ mp4creator -list input.mp4
Track Type Info
1 video MPEG-4 Unknown Profile(0), 380.360 secs, 160 kbps, 320x240 @ 25.000000 fps
2 audio MPEG-4 AAC LC, 380.309 secs, 32 kbps, 48000 Hz


Now extract the two tracks:


$ mp4creator -extract=1 input.mp4
$ mp4creator -extract=2 input.mp4


Keep in mind that the numbers 1 and 2 are the track numbers for the video and audio tracks, so it depends on the input file.

Now let's rename them:


$ mv input.mp4.t1 input.divx
$ mv input.mp4.t2 input.aac



And pack them together:


$ rm -f output.mp4
$ mp4creator -H -i -I -c input.divx -r 25 output.mp4
$ mp4creator -H -i -I -c input.aac output.mp4
$ mp4creator -optimize output.mp4


Note1: just to be sure delete the output file, since if it already exists, mp4creator will add the tracks to it
Note2: for the video track you must specify the rate, in my case it was a 25fps movie, hence I specified -r 25

And let's check the result:


$ mp4creator -list output.mp4
Track Type Info
1 video MPEG-4 Simple @ L1, 380.360 secs, 160 kbps, 320x240 @ 25.000000 fps
2 hint Payload MP4V-ES for track 1
5 audio MPEG-4 AAC LC, 380.309 secs, 32 kbps, 48000 Hz
6 hint Payload mpeg4-generic for track 5
7 od Object Descriptors
8 scene BIFS


You can notice that there are some more tracks. I think the problem was the lack of the tracks 7 and 8 (because adding just the hint tracks didn't solved it)

Please let me know if this works/doesn't work for you.
charlie2999
T68 gold
Joined: Jan 22, 2005
Posts: 18
PM
Posted: 2006-09-16 12:51
Reply with quoteEdit/Delete This PostPrint this post
hey
Would there be any chance that you posted a few movies for us that dont have the technical knowhow or time
( we who download offcourse have the originals )

I would really appreciate it and love you?
I for one would love any type of media, Long movies or short funny clips =D
Thanks

[ This Message was edited by: charlie2999 on 2006-09-16 11:51 ]
suske
M600 black
Joined: Aug 07, 2006
Posts: 13
PM
Posted: 2007-05-28 23:03
Reply with quoteEdit/Delete This PostPrint this post
Actually you don't have to add the hint track. You only need the BIFS and OD tracks to make this work.

It can be simplified by using the MP4Box tool. (gpac.sourceforge.net)

To add the BIFS and OD tracks use : MP4Box -isma movie.mp4

[ This Message was edited by: suske on 2007-05-28 22:05 ]
ares
P1
Joined: Dec 11, 2003
Posts: > 500
From: Coimbra, Portugal
PM
Posted: 2007-05-28 23:48
Reply with quoteEdit/Delete This PostPrint this post
AFAIK, M3 converter does all that automaticaly

Also, i donīt think there are any more delays with the latest firmwares?
SE w880 + Iphone 4 16gb
mode
Sony Xperia Z1
Joined: Jan 12, 2007
Posts: > 500
PM
Posted: 2007-05-29 06:05
Reply with quoteEdit/Delete This PostPrint this post
Nope, even since R4B03 (now it's R5A17)- almost no delay at all (abt 1 sec to start the movie), and the same applies when the movie switches between split files when you check the 'continuous paly' option. One of P990's most impressive improvements to me.
suske
M600 black
Joined: Aug 07, 2006
Posts: 13
PM
Posted: 2007-05-29 16:50
Reply with quoteEdit/Delete This PostPrint this post
With my current M600i firmware (R6A16) i still have problems with large MP4 files if not playing an ISMA compliant MPEG4. MP4 generated with ffmpeg longer than an hour or so will not play ! (it says it is unable to open the file or something) When adding the OS and BIFS streams those MP4 suddenly play perfectly.

I'd like to hear other people's experiences.
Access the forum with a mobile phone via esato.mobi