In order to create an SMV encoder for GNU/Linux, I've cracked the SMV format. I don't know how many programmers frequent this forum, but if any do, they may want the format description to create their own encoders, so I'm posting it here. Given the quality of the Windows encoders I had to fight to get sample SMV files, the average amateur Windows programmer with a little bit of experience with media files could probably write a better one.
Anyway, here it is:
Code: ›
An SMV file has three sections, concatenated together:
1) An IMA ADPCM .wav file, with header.
2) An SMV header, described below.
3) A number of .jpeg files, with headers, each prepended by a 24-bit (3-byte)
little-endian value representing the size, and buffered at the end with
nulls such that they are at predictable locations (the jpeg modulo).
The SMV header is a magic string in ASCII followed by a number of 24-bit
(3-byte) little-endian values. The following is an example SMV header. Note
that the first entry is the exact ASCII string as it appears in the SMV file,
but the rest are the decimal representation of 24-bit little-endian values.
SMV002000 magic
128 width
160 height
16 header length in 3-byte words (starting at '002' in magic)
1 apparently constant
8533 jpeg modulo
9 fps
1875 # of frames
1 apparently constant
0 apparently constant
3 frames per jpeg
65793 padding? (65793 == 0x010101)
65793 padding?
65793 padding?
65793 padding?
I've tested your smv-encode, version 0.22, on my Philips GoGear SA3125 mp4player.
It works! I've used the following parameters:
-w 127, -h 159, -f 11, -fps 11, -q 50
and the following change on mencoder calling command: rotate=2 to rotate=1. Can this is specified as option on command line?
There is noise for some files on right headphone, as you said. Another little issue is the input file have to be given as full path.
Thanks for your amazing work. My MP4 can be used on linux now.
No rating
yurac
Thanks !
Thanks to GregorR who cracked the format.
I will add the rotate parameter you request.
I am also writing a gui now.
No rating
yurac
Tayroni,
Could you please try the new version 0.27?
It includes the changes you requested.
Relative names are ok now.
The rotate parameter is -r
The framerate is now -f
Your command line should look as follows:
smv-encode <input> -w 127 -h159 -q50 -f 11 -n 11 -r 1
Add -d if you want to see the mencoder,mplayer output.
Thanks.
No rating
yurac
I added a gui and autotools support (smv_encode0.4)
It works for me on Ubuntu Hardy
No rating
tayroni
Sorry Yurac for the delay to answer. My notebook goes down and I was unable to answer.
I tested version 0.52 with gui and the above parameters work very well.
I'm using Ubuntu Hardy too.
No rating
masmiguel
hello , i have tested smv convert with a philips sa 3485 and work very well with this parametres smv_encode -b -g 220x176 -f 24 -n 11 -r2 -q 41 but the only one is tht before ia have to rotate the movie 90º with another program to see it fullscreen .
thanks for your work. hugs masmiguel
Pd: there are some way to rotate 180º the movie with de smv convert ?
No rating
yurac
See version 0.55. Is it ok now?
No rating
Nekow42
Hi I just gave 0.55 a try with my smv-video-only Sylvania SMPK2066.
Many fruitless attempts to get the many proprietary converters working in wine. GUI pops up, but convert button always crashes it.
I finally stumbed across this thread after some google-search-kung-fu.
I tried yurac's program, the GUI, and it works great! Videos convert fast, decent file sizes, and they work on the player. Also, the GUI is very nice, better than the proprietary GUIs.
Paremeters I used for the Sylvania SMPK2066 player were:
Geometry 128x128
Framerate 10
Tile factor 5
Rotate degree 0
Image quality 41
Thanks yurac, and thanks GregorR of course for cracking the format.
One thing I wanted to point out, yurac, is if the file name or path contains spaces, the GUI will not work. I think this could be fixed by passing the path and file name to smv_encode with the path and filename surrounded by double quotes.
Example: smv_encode -b -g 128x128 -f 10 -n 5 -r -1 -q 41 "/home/username/Some File.mpg"
Great work, and thanks again.
No rating
yurac
Thanks!!
I will fix the bug.
No rating
masmiguel
hello , first of all thanks yurak i have tested smv convert 0.55 with a philips sa 3485 and work perfet with this parametres:
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 You cannot attach files in this forum You can download files in this forum