473,498 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PROBLEM when editing DAT file!

hello friends,

I was trying to edit DAT file. it's a video song and i wanted to cut
and play only
a part of the song, programatically.

When i was splitting the song starting from byte 0 to some byte 'n'
(n>>0), wmplayer
is able to play succesfully.

But when i am splitiing the file stating from some byte 'n'( where
n>0),
wmp is not able to play the file ( i saved it with .dat extn.)

I also tried to achieve this with the actual .dat format by prefixing
the
44 bytes ( RIFF + length + channels +...etc.) to the edited file.
But again the same problem.

What should i fo?
PLEASE HELP ME SOLVE THIS ISSUE!

Jan 23 '06 #1
2 3165

Sree wrote:
hello friends,

I was trying to edit DAT file. it's a video song and i wanted to cut
and play only
a part of the song, programatically.

When i was splitting the song starting from byte 0 to some byte 'n'
(n>>0), wmplayer
is able to play succesfully.

But when i am splitiing the file stating from some byte 'n'( where
n>0),
wmp is not able to play the file ( i saved it with .dat extn.)

I also tried to achieve this with the actual .dat format by prefixing
the
44 bytes ( RIFF + length + channels +...etc.) to the edited file.
But again the same problem.

What should i fo?
PLEASE HELP ME SOLVE THIS ISSUE!


And how, exactly, is this topical in comp.lang.c???
You don't even mention the language you're using!

Try one of the Windows programming groups...

Cheers

Vladimir

Jan 23 '06 #2
"Sree" <sr***************@gmail.com> writes:
I was trying to edit DAT file. it's a video song and i wanted to
cut and play only a part of the song, programatically.

When i was splitting the song starting from byte 0 to some byte 'n'
(n>>0), wmplayer is able to play succesfully.

But when i am splitiing the file stating from some byte 'n'( where
n>0), wmp is not able to play the file ( i saved it with .dat extn.)

I also tried to achieve this with the actual .dat format by
prefixing the 44 bytes ( RIFF + length + channels +...etc.) to the
edited file. But again the same problem.


This really isn't a C question.

Find out what format the file is in and look up the details of that
format (wotsit.org might be a good source of information). Given that
information, you *might* be able to figure out how to generate a valid
file containing some subset of the original file's data.

Once you've figured that out, feel free to re-post here if you're
having problems implementing it in C. (Don't expect us to know the
file format.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Jan 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
8284
by: ZoombyWoof | last post by:
Hi. Im very new to php, and I have a problem here that I cant find the solution for. I have problems with session variables, I want some variables to maintain their value between different php...
7
12643
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
6
16657
by: David Nedrow | last post by:
I'm trying to set up the cyrus imap server using PostgreSQL as the authentication backend. Currently, the issue I'm having is that I'm unable to connect via psql on the loopback address...
2
4241
by: NewBob | last post by:
Since Access automatically highlights all of the text in a text control (I use it to hold data from a memo field) when the control is activated, I've added the following code to put the cursor at...
8
1678
by: Ondine | last post by:
Hi I have a client running an Access 2000 database on a small network with 3 pc's. Two of the laptop pcs have a data replica, which they use when not connected to the network, the 'server'...
1
1568
by: E. Tom Jorgenson | last post by:
I've run into a problem on a couple of projects that I think I've identified - but would like confirmation of what I think is going on. Also interested in any fast solutions to fix the user...
4
3365
by: helenwheelss | last post by:
Access 2003, using a bound form. I'm seeing rather annoying behaviour when editing data in a control with a default value. It only happens when the form is on a new record. A specific...
4
2164
by: Jeigh | last post by:
My host has been 'upgrading' lately and its caused me a whole mess of problems. The last of which being that my CAPTCHA form no longer works. I remember to get the CAPTCHA working it took me weeks to...
1
2122
by: Sinan Alkan | last post by:
Hi All, I have a method to resize any image file to the specific dimensions and save this new image to a path. I found it on a web page(By Joel Neubeck) and i changed it for my project. The...
0
5633
by: priyamtheone | last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have: 1) Initially all the cells of the dtp column should be...
0
7124
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.