myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > Video related

SMV format description
Reply
Post New Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old 25th Oct 2007, 10:05 pm
GregorR
Guest
 
Posts: n/a
Default SMV format description


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/
Reply With Quote
  #2 (permalink)  
Old 25th Nov 2007, 5:32 am
Senior Member
MPx Junkie
 
Join Date: Jun 2007
Posts: 465
Default

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.
__________________
For my dreams i hold my life...

I miss my Meizu M6SL... Currently rocking a Sony Ericsson w595 on Samsung in-ear phones. Does fine, but it's not a chipod...
Reply With Quote
  #3 (permalink)  
Old 2nd Jun 2008, 7:10 am
New Member
 
Join Date: Jun 2008
Posts: 7
Default smv encoder

Hi Gregor,

I tested your encoder with my player and it does not work.
I am trying to find what is the problem.
Reply With Quote
  #4 (permalink)  
Old 8th Jun 2008, 12:51 pm
New Member
 
Join Date: Jun 2008
Posts: 7
Default Re: SMV format description

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/
Reply With Quote
  #5 (permalink)  
Old 13th Jun 2008, 9:56 pm
New Member
 
Join Date: Jun 2008
Posts: 2
Default Re: SMV format description

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.
Reply With Quote
  #6 (permalink)  
Old 19th Jun 2008, 11:30 pm
New Member
 
Join Date: Jun 2008
Posts: 7
Default

Thanks !
Thanks to GregorR who cracked the format.

I will add the rotate parameter you request.
I am also writing a gui now.
Reply With Quote
  #7 (permalink)  
Old 20th Jun 2008, 2:46 am
New Member
 
Join Date: Jun 2008
Posts: 7
Default

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.
Reply With Quote
Sponsored Links
  #8 (permalink)  
Old 1st Jul 2008, 5:42 am
New Member
 
Join Date: Jun 2008
Posts: 7
Default

I added a gui and autotools support (smv_encode0.4)
It works for me on Ubuntu Hardy
Reply With Quote
  #9 (permalink)  
Old 14th Jul 2008, 3:54 pm
New Member
 
Join Date: Jun 2008
Posts: 2
Default Re: SMV format description

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.
Reply With Quote
  #10 (permalink)  
Old 21st Jul 2008, 2:39 am
New Member
 
Join Date: Jul 2008
Posts: 2
Default Re: SMV format description

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 ?
Reply With Quote
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert videos to MPEG4 (avi) format? Invalid format? makenna29 Video related 2 19th Feb 2009 1:25 am
[solved] format error/wrong video format... isaac556 Support and How To 2 6th Sep 2008 7:14 pm
"Press menu key to format press other key to not format genre_rock Support and How To 0 29th Mar 2008 2:05 am
Detailed description and pics of my dead player,help please! kustomer Dead Players 4 30th Sep 2007 1:51 pm
difference between a full format and a quick format? jade7 General Discussion 2 7th Aug 2006 9:36 am


All times are GMT -7. The time now is 11:32 am.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2
Back to Top

Designed by indiqo.media