myMPxPlayer.org      
Home • Forum • Downloads • Gallery/Photos • Check your PM • Log in • Register
         
Board Navigation
Go to the homepageHome
Index of the forum.Forum
Downloads
View uploaded imagesGallery/Photos
Check articles uploaded to the websiteKnowledge Base
Links CategoriesLinks
Donate to myMPxPlayer.orgSupport Us

Search through forums.Search Site
Search through downloadsSearch Downloads

Frequently Asked Questions.FAQ
Read the rules of this websiteRules
View website statisticsStatistics
See who is online at this time.Online Users
Members of our staffStaff

Advertisement

Chatbox

There are 0 user(s) on chat now:

[ Login to join chat ]


User Block
Username:

Password:

 Remember me



I forgot my password

Don't have an account yet?
You can register for FREE


SMV format description
Post new topic

Reply to topic
 
Author Message
GregorR

USA US Oregon
PostPosted: Fri Oct 26, 2007 1:05 am   Post subject:  SMV format description Back to top 

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?


If anybody's interested, my encoder is at http://www.codu.org/smvconv/

Download Post  No rating  
Th3_uN1Qu3
MPx-a-lolics Anonymous
MPx-a-lolics Anonymous

Romania European Union
PostPosted: Sun Nov 25, 2007 8:32 am   Post subject:   Back to top 

Wow, thanks. I'm by no means a programmer but i do have some knowledge in the internal workings of files and know a little linux too.

I just got a SMV player yesterday and i have noticed that the transcoder is pretty slow. I'm sure your info will be of use. Wink

_________________
For my dreams i hold my life...

MEIZU M6SL Cool <> black <> 4GB <> 2.4 inch TFT <> Touchpad <> XviD 20FPS <> 25 hours battery (music) <> Wolfson DAC Very Happy <> Sony earbuds
Resigned: SigmaTel STMP3504 <> 2GB <> 1.5 inch TFT
Bye-bye Actions! (at least for now)
Download Post  No rating  
yurac

Israel
PostPosted: Mon Jun 02, 2008 10:10 am   Post subject:  smv encoder Back to top 

Hi Gregor,

I tested your encoder with my player and it does not work.
I am trying to find what is the problem.

Download Post  No rating  
yurac

Israel
PostPosted: Sun Jun 08, 2008 3:51 pm   Post subject:  Re: SMV format description Back to top 

I made small changes in smvconv and it works for me now.
However, there are still several issues with the movie quality.
I put the modified version at
http://www.cs.bgu.ac.il/~yurac/interests/smv-encode/

Download Post  No rating  
tayroni

Brazil
PostPosted: Sat Jun 14, 2008 12:56 am   Post subject:  Re: SMV format description Back to top 

Hi yurac;

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.

Download Post  No rating  
yurac

Israel
PostPosted: Fri Jun 20, 2008 2:30 am   Post subject:   Back to top 

Thanks !
Thanks to GregorR who cracked the format.

I will add the rotate parameter you request.
I am also writing a gui now.

Download Post  No rating  
yurac

Israel
PostPosted: Fri Jun 20, 2008 5:46 am   Post subject:   Back to top 

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.

Download Post  No rating  
yurac

Israel
PostPosted: Tue Jul 01, 2008 8:42 am   Post subject:   Back to top 

I added a gui and autotools support (smv_encode0.4)
It works for me on Ubuntu Hardy

Download Post  No rating  
tayroni

Brazil
PostPosted: Mon Jul 14, 2008 6:54 pm   Post subject:  Re: SMV format description Back to top 

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.

Download Post  No rating  
masmiguel

Spain
PostPosted: Mon Jul 21, 2008 5:39 am   Post subject:  Re: SMV format description Back to top 

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 ?

Download Post  No rating  
yurac

Israel
PostPosted: Tue Jul 22, 2008 9:58 am   Post subject:   Back to top 

See version 0.55. Is it ok now?

Download Post  No rating  
Nekow42

USA
PostPosted: Tue Jul 22, 2008 11:40 pm   Post subject:   Back to top 

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.

Download Post  No rating  
yurac

Israel
PostPosted: Wed Jul 23, 2008 4:07 am   Post subject:   Back to top 

Thanks!!

I will fix the bug.

Download Post  No rating  
masmiguel

Spain
PostPosted: Wed Jul 23, 2008 6:45 am   Post subject:  Re: SMV format description Back to top 

hello , first of all thanks yurak i have tested smv convert 0.55 with a philips sa 3485 and work perfet with this parametres:

smv_encode -b -g 220x176 -f 24 -n 11 -r -1 -q 80

thanks for your work. hugs masmiguel

Download Post  No rating  
Sponsored Links
Display posts from previous:      
 


 Jump to:   

  View previous topic View printer-friendly version Search Display number of posts for each poster in this topic Export topic thread to a text file View next topic

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



Protected by phpBB Security © phpBB-Amod :: phpBB Security ©  Has Blocked 182,016 Exploit Attempts.
Site running IntegraMOD with phpBB :: FI Theme :: All times are GMT - 4 Hours ]
[Page generation time: 0.7709s (PHP: 58% | SQL: 42%) | SQL queries: 152 | GZIP enabled | Debug off]

MyMPxPlayer.org hosted by Webair.