View previous topic :: View next topic |
Author |
Message |
ingemar Tux's lil' helper
Joined: 21 May 2005 Posts: 83 Location: Gothenburg, Sweden
|
Posted: Mon Feb 13, 2006 10:38 am Post subject: mp4 file for JoS mp3-player (Video encoding) |
|
|
Hi.
I've just got my Jens of Sweden mp-500 mp3 player, which is capable of playing movies. But it can only play a special kind of movie, and it "must" be encoded with the transcoder software you get with the mp3-player. And that software must be run under windows, which I'd like to avoid. But my knowledge about transcoding videos to other formats are very limited, so maybe some of you guys could help me?
I've got a video file that is transcoded with the transcoder you get from JoS's website, and running "mencoder video.mp4" returns this:
Code: | 85 audio & 196 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0xb814f5
QuickTime/MOV file format detected.
--------------
Warning! pts=10622592 length=2031505
MOV track #0: 9221 chunks, 9221 samples
Audio bits: 16 chans: 2 rate: 32000
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (46)!
Fourcc: mp4a
--------------
Warning! pts=331932666 length=331920000
MOV track #1: 4979 chunks, 4979 samples
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (70)!
Image size: 128 x 112 (24 bpp)
Display size: 176 x 144
Fourcc: mp4v Codec: ''
--------------
MOV: longest streams: A: #0 (9221 samples) V: #1 (4979 samples)
VIDEO: [mp4v] 128x112 24bpp 15.152 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x7634706D size:128x112 fps:15.15 ftime:=0.0660
No audio encoder (-oac) selected. Select one (see -oac help) or use -nosound.
Exiting... |
I guess there is a better way to detect how a video file is encoded, but this seems to provide me with at least some information.
The image size must be 128x112 (it's a very tiny mp3-player). The audio is supposed to be mp3. That's all I know.
So, if I have a avi file, and want it to be transcoded to this type of mp4-file... ...how do I do that? I've been spending days reading man pages for mplayer/mencoder but I can't really say that I understand it all... So, could anyone help me? _________________ iBook G4 12" & AMD X2 4200+ |
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Mon Feb 13, 2006 11:46 am Post subject: |
|
|
Quote: | QuickTime/MOV file format detected. |
This tells you that you will have to use a Quicktime container for the video
Code: | MOV track #0: 9221 chunks, 9221 samples
Audio bits: 16 chans: 2 rate: 32000
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (46)!
Fourcc: mp4a
|
This are the settings for the audio (codec mp4a, 2 channel stereo, 16 bits and 32 kHz). AFAIK mp4a is the quicktime implementation of AAC, the mpeg4 audio standard.
Quote: | MOV: Found MPEG4 movie Elementary Stream Descriptor atom (70)!
Image size: 128 x 112 (24 bpp)
Display size: 176 x 144
Fourcc: mp4v Codec:
|
This are the video settings. You obviously need to resize your video to this settings (maybe 176 x 144 will work, but 128 x 112 will be more sure, as far as you can tell him the display size. I dont know, if mencoder has a interface to quicktime, and or if the quicktime version for linux has the needed features. If you dont use quicktime but other implementations of the mpeg4 standard you will have to edit the fourcc in the generated movie by hand. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
|
ingemar Tux's lil' helper
Joined: 21 May 2005 Posts: 83 Location: Gothenburg, Sweden
|
Posted: Mon Feb 13, 2006 1:19 pm Post subject: |
|
|
Yeah, that's what I managed to figure out of the response from mencoder too, but the thing is that I have no idea how to get mencoder to do what I want it to do.. _________________ iBook G4 12" & AMD X2 4200+ |
|
Back to top |
|
|
Spiderboy n00b
Joined: 14 Feb 2006 Posts: 11 Location: UK
|
Posted: Tue Feb 14, 2006 1:16 am Post subject: |
|
|
I used ffmpeg:
Code: |
ffmpeg -i dvdrip/Die_Hard/vob/002/Die_Hard-001.vob -t 60 -f mov -s 128x112 -r 15.15 -map 0.0 -map 0.13 Die_Hard.mov
|
and mencoder said:
Code: |
success: format: 0 data: 0x0 - 0x17c42a
QuickTime/MOV file format detected.
--------------
MOV track #0: 912 chunks, 912 samples
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (83)!
Image size: 128 x 112 (24 bpp)
Display size: 199 x 112
Fourcc: mp4v Codec: 'mpeg4'
--------------
MOV track #1: 2813 chunks, 2813 samples
Audio bits: 16 chans: 2 rate: 48000
Audio extra header: len=91 fcc=0x77617665
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (39)!
Fourcc: mp4a
--------------
MOV: longest streams: A: #1 (2813 samples) V: #0 (912 samples)
VIDEO: [mp4v] 128x112 24bpp 15.150 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x7634706D size:128x112 fps:15.15 ftime:=0.0660
|
which doesn't look too bad. Might be worth a try. The -maps are there to extract the relevant video and audio streams from
the vob.
Rich |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|