lam_das
18th January 2007, 23:35
I encoded the season premiere of 24 using xvid with ffmpeg on linux (no b-frames, no qpel, no gmc) and created a 1.2G file which I put on the dvd-rw disk and tried to play on my samsung dvd-v5650 player. It plays fine upto a point (plays 1 hr 15 mins out of 1 hr 25 mins of show) and then it freezes and comes back to menu.
Another symptom is that I can not seek 5 mins with 'next' button on the remote after it has crossed 25 mins position. It keeps coming back to 25 min position. At this very position, I can not fast forward faster than 2x. Play stops at close to 1hr 15 mins.
If I play the same file in mplayer, windows media player it plays fine.
If I play the same file in divx player in windows, it freezes at exactly the same spot.
So, what is about this xvid file that divx player and the standalone player don't like? I also figure that the freeze is close to 1GB mark. Is there a size limit on the divx player and the standalone player that they can't play files greater than 1GB.
$ file 24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.avi
24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.avi: RIFF (little-endian) data, AVI, 640 x 480, ~30 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
already ruled out:
1. dvd+rw media.
2. with b-frames.
Any ideas?
Thanks a lot.
Forgot to mention: The ffmpeg cmdline
pass 1:
ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -f rawvideo -pix_fmt yuv420p -s 720x480 -aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_18406/vidout -aspect 1.33333333333333 -r 29.970 -deinterlace -croptop 0 -cropright 6 -cropbottom 4 -cropleft 14 -s 640x480 -vcodec xvid -b 1843200 -bt 32 -minrate 32 -maxrate 3600 -bufsize 65535 -flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -cgop 1 -pass 1 -passlogfile /tmp/xvid.18406.log -f avi /dev/null
pass 2:
ffmpeg -vol 218 -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_18406/audout -f rawvideo -pix_fmt yuv420p -s 720x480 -aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_18406/vidout -aspect 1.33333333333333 -r 29.970 -deinterlace -croptop 0 -cropright 6 -cropbottom 4 -cropleft 14 -s 640x480 -vcodec xvid -b 1843200 -bt 32 -minrate 32 -maxrate 3600 -bufsize 65535 -flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -cgop 1 -pass 2 -passlogfile /tmp/xvid.18406.log -acodec mp3 -async 1 -ab 128 -f avi 24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.2.avi
Another symptom is that I can not seek 5 mins with 'next' button on the remote after it has crossed 25 mins position. It keeps coming back to 25 min position. At this very position, I can not fast forward faster than 2x. Play stops at close to 1hr 15 mins.
If I play the same file in mplayer, windows media player it plays fine.
If I play the same file in divx player in windows, it freezes at exactly the same spot.
So, what is about this xvid file that divx player and the standalone player don't like? I also figure that the freeze is close to 1GB mark. Is there a size limit on the divx player and the standalone player that they can't play files greater than 1GB.
$ file 24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.avi
24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.avi: RIFF (little-endian) data, AVI, 640 x 480, ~30 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
already ruled out:
1. dvd+rw media.
2. with b-frames.
Any ideas?
Thanks a lot.
Forgot to mention: The ffmpeg cmdline
pass 1:
ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -f rawvideo -pix_fmt yuv420p -s 720x480 -aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_18406/vidout -aspect 1.33333333333333 -r 29.970 -deinterlace -croptop 0 -cropright 6 -cropbottom 4 -cropleft 14 -s 640x480 -vcodec xvid -b 1843200 -bt 32 -minrate 32 -maxrate 3600 -bufsize 65535 -flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -cgop 1 -pass 1 -passlogfile /tmp/xvid.18406.log -f avi /dev/null
pass 2:
ffmpeg -vol 218 -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_18406/audout -f rawvideo -pix_fmt yuv420p -s 720x480 -aspect 1.33333333333333 -r 29.970 -i /tmp/fifodir_18406/vidout -aspect 1.33333333333333 -r 29.970 -deinterlace -croptop 0 -cropright 6 -cropbottom 4 -cropleft 14 -s 640x480 -vcodec xvid -b 1843200 -bt 32 -minrate 32 -maxrate 3600 -bufsize 65535 -flags +4mv+trell+loop -aic 1 -mbd 1 -cmp 2 -subcmp 2 -cgop 1 -pass 2 -passlogfile /tmp/xvid.18406.log -acodec mp3 -async 1 -ab 128 -f avi 24_2007-01-14_8-00PM_Day_6-_6-00AM_-_7-00AM-7-00AM_-_8-00AM.2.avi