Click here to Skip to main content
15,919,774 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Background Worker losing variable value in Progress Pin
DaveyM6911-Sep-09 4:14
professionalDaveyM6911-Sep-09 4:14 
AnswerRe: C# Background Worker losing variable value in Progress Pin
Alan N11-Sep-09 2:56
Alan N11-Sep-09 2:56 
AnswerRe: C# Background Worker losing variable value in Progress Pin
DaveyM6911-Sep-09 3:10
professionalDaveyM6911-Sep-09 3:10 
QuestionDBNull error Pin
kanchoette11-Sep-09 1:38
kanchoette11-Sep-09 1:38 
AnswerRe: DBNull error Pin
monstale11-Sep-09 2:22
monstale11-Sep-09 2:22 
AnswerRe: DBNull error Pin
J4amieC11-Sep-09 2:22
J4amieC11-Sep-09 2:22 
AnswerRe: DBNull error Pin
PIEBALDconsult11-Sep-09 4:28
mvePIEBALDconsult11-Sep-09 4:28 
QuestionHow do I read in a h246 .mp4 file and change some hex in the file and then save the file back out? Pin
thestonefox11-Sep-09 1:05
thestonefox11-Sep-09 1:05 
Hi all,

I have a bunch of H264 files with corrupt video profiles (showing a level of 20!) which means they dont work in Windows 7 or on my Xbox 360

I've fixed a few files by opening them up in a hex editor and searching for

61 76 63 43 01 4D 00 C8 FF E1 00 13 67 4D 00 C8

(note the 4D 00 C8 is the profile and level [C8 being the corrupt level])

and I replace this string with

61 76 63 43 01 4D 00 20 FF E1 00 13 67 4D 00 20

[changing the occurrence of C8 to 20 to make the level 3.2]

I have about 300 more mp4 files to do and I dont want to do them by hand, so is there an easy way I can read this in to c# and make the find and replace, then output the file again?

I know I can use things like streamreaders/writers and binary readers/writers, but if someone could offer some simple code on how to do it then it saves me asking bit by bit questions on how to do it Smile | :)

Thanks Smile | :)
AnswerRe: How do I read in a h246 .mp4 file and change some hex in the file and then save the file back out? Pin
stancrm11-Sep-09 1:22
stancrm11-Sep-09 1:22 
QuestionC# Excel. Find a specific cell and write in string data into the cell to the right of the found cell. [modified] Pin
gjx_junxian198911-Sep-09 0:16
gjx_junxian198911-Sep-09 0:16 
QuestionWMI Pin
moein.serpico10-Sep-09 23:57
moein.serpico10-Sep-09 23:57 
AnswerRe: WMI Pin
dan!sh 11-Sep-09 0:19
professional dan!sh 11-Sep-09 0:19 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:29
moein.serpico11-Sep-09 0:29 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:34
Henry Minute11-Sep-09 0:34 
AnswerRe: WMI Pin
moein.serpico11-Sep-09 0:38
moein.serpico11-Sep-09 0:38 
GeneralRe: WMI Pin
Henry Minute11-Sep-09 0:47
Henry Minute11-Sep-09 0:47 
GeneralRe: WMI Pin
moein.serpico11-Sep-09 1:52
moein.serpico11-Sep-09 1:52 
GeneralRe: WMI Pin
stancrm11-Sep-09 0:36
stancrm11-Sep-09 0:36 
GeneralRe: WMI Pin
Dave Kreskowiak11-Sep-09 4:19
mveDave Kreskowiak11-Sep-09 4:19 
Questionproblems about how to cancel auto play from an application Pin
smilefishcc10-Sep-09 23:45
smilefishcc10-Sep-09 23:45 
AnswerRe: problems about how to cancel auto play from an application Pin
stancrm10-Sep-09 23:48
stancrm10-Sep-09 23:48 
QuestionRe: problems about how to cancel auto play from an application [modified] Pin
smilefishcc11-Sep-09 0:17
smilefishcc11-Sep-09 0:17 
QuestionNetwork speed limitation Pin
DeOiD10-Sep-09 23:43
DeOiD10-Sep-09 23:43 
QuestionCasting byte arrays to structures in C# [modified] Pin
User 571134810-Sep-09 23:29
User 571134810-Sep-09 23:29 
AnswerRe: Casting byte arrays to structures in C# Pin
Luc Pattyn10-Sep-09 23:38
sitebuilderLuc Pattyn10-Sep-09 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.