Log in

View Full Version : MP4 Encoding for IPod Like Device...


jasonmgeorge
8th May 2007, 05:47
I was given a SANSUI-R-PMP-610B, which is a device similar to a video IPod, as a gift recently. Unfortunately for me, the device is from China, the instructions are in Chinese, and technical support at Sansui seems to be ignoring my email written in English.

I have no problems loading files onto the device; however, playback has not been successful. I’ve tried inspecting a video file that was preloaded, but matching the settings I was able to find hasn’t worked either.

I’ve copied the pertinent information from my original email to Sansui below. Any chance someone could give me some pointers on encoding an AVI file that will actually play?

Thanks,
Jason

Sansui email below…

After inspecting the AVI file preloaded on the device I see that it was created with MEncoder at 20fps, 224x176, XVID Mpeg-4 video feed and 96Kbps, 44100 Hz, 2 channel, mp2, CBR audio feed.
I have downloaded an English, Windows XP copy of MEncoder and encoded my own AVI files with the same characteristics, but none will play on the 610B. Most files give me a file format error when I attempt to play them on the 610B. Using the following command I can get a file that has no error but will not play:

mencoder dvd://1 -dvd-device i: -srate 44100 -vop scale=224:176 -o back_future.avi -oac lavc -lavcopts acodec=mp2:abitrate=96 -ovc xvix -xvidencopts bitrate=600 -ofps 20

Could you provide instructions for encoding a movie that will work on the device or at least explain the avi characteristics that are necessary?

Awatef
8th May 2007, 12:50
I would suggest that you encode your video with XviD choosing the "simple profile", that is the most basic profile, and see what happens.

jasonmgeorge
11th May 2007, 06:08
No luck. I've tried the following command.

mencoder dvd://2 -dvd-device i: -srate 44100 -vop scale=224:176 -o test.avi -oac lavc -lavcopts acodec=mp2:abitrate=96 -ovc xvid -xvidencopts bitrate=600: profile=sp2 -ofps 15

I'm using AVIcodec to analyze the preloaded video file. Is there a better way to discern the file properties for the avi file that will play?

jasonmgeorge
18th May 2007, 04:48
On a whim I decided to re-encode the preloaded AVI file using the above command; this does not work either. After inspecting the RIFF structure using abcAVI Tag Editor, it appears the difference lies in the audio stream mode. All files encoded with the above command result in a stream mode 0x0002 followed by a "ACM_MPEG_JOINTSTEREO" tag. The original file has a stream mode of 0x0000 with no sub-tag. Any ideas on how I can rectify this (and if this is indeed the issue)?

hd200
4th January 2008, 14:53
I dig this topic up because i have almost or exactly same hardware and i tryed to encode video for this with ffmpeg lastest svn. My player is this: http://www.unity.lv/en/products/mp4_players/4U

ffmpeg.exe -i input.avi -threads 2 -vcodec mpeg4 -s 224x176 -b 300kb -r 20 -vtag xvid -acodec mp2 -ar 44100 -ab 128k OUTPUT_rockchip_MP4.avi

these commands do not work, what i miss?
here is working file for analyze:
http://www.yourfilehost.com/downloadfile.php?cat=video&file=mp4_player_working_file.avi