John Hobart replied to the topic 'Cannot play back SER videos?' in the forum. 3 years ago

I got caught by this and ended up with some big SER files that I patched with a little python script. Attaching here in case anyone else finds themselves in the same spot, stuck with big files and no easy way to edit short of a hex editor. 

goodfile = "/working/astro/videos/fullframe.ser" badfile = "/working/astro/videos/corrupt_cropped.ser" offset = 0x1A # Open known good SER # Read 8 bytes from 0x1A (resolution) with open(goodfile, 'r+b') as f:     f.seek(offset)     good_bytes = f.read(8) # Open corrupt SER and write those same bytes to 0x1A with open(badfile, 'r+b') as f:     f.seek(offset)     f.write(good_bytes)


Read More...