+ Reply
Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 61 to 80 of 152

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Editing .mov files for corrupt cycorder videos...

is a discussion within the

Windows Specific Modding Discussion

forums, a part of the

Computer Modding Software

section;
I get a syntax error when i type c: \ (minus the space between : \)
...
  1. #61
    jmx
    jmx is offline
    What's Jailbreak?
    Join Date
    May 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    I get a syntax error when i type c: \ (minus the space between : \)
    Last edited by jmx; 04-22-2010 at 01:22 PM.

  2. #62
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Ok I don't get this, the corrupt .mov file needs to be in the repair_cycorder_mov folder right? and that folder on the desktop right? So why do I keep getting a syntax error, is the file just too big (325MB) or did I download the wrong python file from the website (I downloaded the 64-bit one under the regular Windows-binary)?

    Quote Originally Posted by jmx View Post
    I get a syntax error when i type c: (minus the space between : )
    I know and the arrow keeps pointing to the ( : )

    Quote Originally Posted by dice1976 View Post
    Thanks XYLOR... and Mikeebee! That worked wonderfully. Can't believe how simple that was for me to run to fix/repair. I really appreciate it.
    Can you tell me exactly what you did?

    Bump
    Last edited by xHITMANx; 04-22-2010 at 08:58 PM. Reason: Automerged Doublepost

  3. #63
    Super Moderator Cer0's Avatar
    Join Date
    Apr 2008
    Location
    MN/WI
    Posts
    13,984
    Thanks
    388
    Thanked 1,138 Times in 888 Posts

    Do you mind posting a screenshot of the cmd terminal after you type it?

    Should look like this but with your info in and where your folder is.
    Attached Thumbnails Attached Thumbnails Editing .mov files for corrupt cycorder videos...-untitled.jpg  
    Last edited by Cer0; 04-22-2010 at 09:19 PM.

  4. The Following User Says Thank You to Cer0 For This Useful Post:

    xHITMANx (04-22-2010)

  5. #64
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    ok so if my folder is on my desktop, I type C: \Users\my name\Desktop\repair_cycorder_mov.py filename.mov outputfilename.mov -v ?

  6. #65
    Super Moderator Cer0's Avatar
    Join Date
    Apr 2008
    Location
    MN/WI
    Posts
    13,984
    Thanks
    388
    Thanked 1,138 Times in 888 Posts

    Do "cd" then type the folder path. "cd" changes the path the terminal is looking in. On mine it would be cd c: \documents and settings\username\desktop\folder with video\

    Then run the script.

    See in my screen shot it started out with c: \ then I changed it to start with c: \test
    Last edited by Cer0; 04-22-2010 at 10:09 PM.

  7. The Following User Says Thank You to Cer0 For This Useful Post:

    xHITMANx (04-22-2010)

  8. #66
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    hahaha..ok I'll admit, my dumbass was doing this on the python command window..lol. No wonder it wasn't working.

    THANKS cerote! You're my hero!

  9. #67
    Super Moderator Cer0's Avatar
    Join Date
    Apr 2008
    Location
    MN/WI
    Posts
    13,984
    Thanks
    388
    Thanked 1,138 Times in 888 Posts

    NP, I have learned a small amount of python programming. But sometimes terminal can be confusing when trying to explain in forums with the smilies and everything getting in the way lol.

  10. The Following User Says Thank You to Cer0 For This Useful Post:

    jmx (04-23-2010)

  11. #68
    jmx
    jmx is offline
    What's Jailbreak?
    Join Date
    May 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thanks cerote! but I have another problem now, I get this error



    any ideas?

    btw, the size of the corrupted video is 572 MB
    Last edited by jmx; 04-23-2010 at 02:40 PM.

  12. #69
    What's Jailbreak? mikeebee's Avatar
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    1
    Thanked 2 Times in 1 Post
    Quote Originally Posted by cerote View Post
    NP, I have learned a small amount of python programming. But sometimes terminal can be confusing when trying to explain in forums with the smilies and everything getting in the way lol.
    Apple needs to stop trying to bleed us into buying a new iphone and just give us a native app already! I had video on my POS Motorola Razor, why can't they give us vidoe on this vastly more sophisticated computing device??!?!

    Damn!

  13. #70
    Super Moderator Cer0's Avatar
    Join Date
    Apr 2008
    Location
    MN/WI
    Posts
    13,984
    Thanks
    388
    Thanked 1,138 Times in 888 Posts

    It's one of those things. The caculators we have today have more power than what got us into space for the first time. Also it is a money thing, how can they get you to upgrade if they don't block new features on old devices. 2Gs are really gonna hurt on next firmware with the stuff being dropped from it.

  14. #71
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    I had a mov that completed the record but quit while it was doing the encode at the end. Is this the same scenario?

    Im getting the following error when running the script

    CDownloads\repair_cycorder_mov>repair_cycorder_mov. py 1259381535.mov output.mo
    v -v
    File "CDownloads\repair_cycorder_mov\repair_cycorder_mov. py", line 87
    print "A%d: %d, %f, %d, %d, %d" % (audio_chunks, time_delta, float(audio_sam
    ples) / 44100, chunk_audio_samples, audio_samples, offset)
    ^
    SyntaxError: invalid syntax


    Thanks

  15. #72
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by gazmeist View Post
    I had a mov that completed the record but quit while it was doing the encode at the end. Is this the same scenario?

    Im getting the following error when running the script

    Cownloadsrepair_cycorder_mov>repair_cycorder_mov.py 1259381535.mov output.mo
    v -v
    File "Cownloadsrepair_cycorder_movrepair_cycorder_mov.py" , line 87
    print "A%d: %d, %f, %d, %d, %d" % (audio_chunks, time_delta, float(audio_sam
    ples) / 44100, chunk_audio_samples, audio_samples, offset)
    ^
    SyntaxError: invalid syntax


    Thanks
    Open up the DOS command script (not the Python one like my dumbass was doing), you can just type "cmd" in search and it should pop up.

    first you type the location like you did there, but type "cd" first, so:

    cd c: \Downloads\repair_cycorder_mov\

    type that first, hit enter, then you run the script:

    c: \repair_cycorder_mov.py corruptedfilename.mov fixedfilename.mov -v

    you can use w/e name for the new fixed file.

    If this works thank xylor and cerote.

  16. #73
    What's Jailbreak?
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default iTimeLapse corrupted video repair?
    Hello!

    I have tried your script and it finished the repair but I still can't play the mov file.

    Story:
    I took some snapshots with iTimeLapse on my iPhone3G. Then the battery depleted and the software couldn't finish to save the mov file (this is what I think).

    I was able to copy the mov file from my iPhone onto my Mac.

    Could you take a look on the file if upload it somewhere?

    Thanks,
    Andras

  17. #74
    jmx
    jmx is offline
    What's Jailbreak?
    Join Date
    May 2008
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Does this work with big files?

  18. #75
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by jmx View Post
    Does this work with big files?
    Ya mine was 325MB and it worked.

  19. #76
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by xHITMANx View Post
    Open up the DOS command script (not the Python one like my dumbass was doing), you can just type "cmd" in search and it should pop up.

    first you type the location like you did there, but type "cd" first, so:

    cd c: Downloadsrepair_cycorder_mov

    type that first, hit enter, then you run the script:

    c: repair_cycorder_mov.py corruptedfilename.mov fixedfilename.mov -v

    you can use w/e name for the new fixed file.

    If this works thank xylor and cerote.
    Hi Hitman

    The paste above was done exactly as you said (sorry for the confusion I also copied the original command line entry)

    Still getting the same error

    Code:
      File "C:Downloadsrepair_cycorder_movrepair_cycorder_mov.py", line 87
        print "A%d: %d, %f, %d, %d, %d" % (audio_chunks, time_delta, float(audio_sam
    ples) / 44100, chunk_audio_samples, audio_samples, offset)
                                      ^
    SyntaxError: invalid syntax

  20. #77
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Right click the repair_cycorder_mov folder, go to properties and make sure you type the location exactly how it says on there. You have to first type in the location of the file, hit enter, then run the script. Don't type ".py" for the location, thats only when you run the script

    cd: c: \your location\repair_cycorder_mov\ <---- thats for the location, hit enter after this then:

    c: \repair_cycorder_mov.py corruptedfile.mov fixedfile.mov -v <--- hit enter and it should run it.

  21. #78
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by xHITMANx View Post
    Right click the repair_cycorder_mov folder, go to properties and make sure you type the location exactly how it says on there. You have to first type in the location of the file, hit enter, then run the script. Don't type ".py" for the location, thats only when you run the script

    cd: c: your locationrepair_cycorder_mov <---- thats for the location, hit enter after this then:

    c: repair_cycorder_mov.py corruptedfile.mov fixedfile.mov -v <--- hit enter and it should run it.
    Hitman Im in the correct folder im not a complete newb

    As you can see from the error output it is running into a problem at a particular line in the script - line 87

    In this section

    Code:
            # Look for an 'mjpg' marker.  Don't include the last 4 bytes,
            # to ensure we include the 'size' field in the data we search.
            marker_pos = chunk[:-4].find(MJPG_MARKER)
    
            # If we didn't find one, get out.
            if 0 != marker_pos:
                # Did we reach the end of the file?
                if -1 == marker_pos:
                    # Assume the rest of the file is audio.
                    chunk_audio_samples = (len(chunk) / 2)
                    # Don't bother if we only read 1 byte, for some reason.
                    if 0 == chunk_audio_samples:
                        break
                else:
                    chunk_audio_samples = (marker_pos / 2)
                audio_samples += chunk_audio_samples
                time_delta = int(float(chunk_audio_samples) / 44100 * 10000)
                audio_chunks += 1
                if verbose:
                    print "A%d: %d, %f, %d, %d, %d" % (audio_chunks, time_delta, float(audio_samples) / 44100, chunk_audio_samples, audio_samples, offset)
                sys.stdout.write(".")
                sys.stdout.flush()
                audio_data.append( (audio_samples, offset) )
                audio_samples_since_sync += chunk_audio_samples
                offset += marker_pos
    Its having a problem at this line

    Code:
                if verbose:
                    print "A%d: %d, %f, %d, %d, %d" % (audio_chunks, time_delta, float(audio_samples) / 44100, chunk_audio_samples, audio_samples, offset)
    I don't know what it means, if its a corruption in my original file or a slight bug in the script somehow, but hoping I can get some help

  22. #79
    Super Moderator Cer0's Avatar
    Join Date
    Apr 2008
    Location
    MN/WI
    Posts
    13,984
    Thanks
    388
    Thanked 1,138 Times in 888 Posts

    Are you doing the commands in a command prompt, DOS?

  23. #80
    What's Jailbreak?
    Join Date
    Apr 2010
    Posts
    7
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Like cerote said, make sure you're using DOS and not the Python command prompt that you get when you download Python. If you are, then I don't know what it is, your file could be another issue not related to the script xylor wrote.

+ Reply
Page 4 of 8 FirstFirst ... 23456 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts