Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#242 I/O Error appending existent mp4 file

closed
nobody
None
5
2011-11-25
2011-11-23
João Nicolau
No

When invoke MP4Box to concatenate several mp4 files to an existent file, a get an error:

Error: I/O Error

Using Ubuntu 10.04

MP4Box - GPAC version 0.4.6-DEV (internal rev. 8)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X

Discussion

  • João Nicolau
    João Nicolau
    2011-11-23

    Error occurs under apache2 http server invoking MP4Bos

     
  • This error makes me think you have some right issues on your server. Could you log in on the server and launch MP4Box on your files? What do you get?

     
  • João Nicolau
    João Nicolau
    2011-11-25

    I run some tests with 4 video files in folder /tmp

    Test #1
    jnicolau@ub10:/var/www$ MP4Box -cat /tmp/sample1.mp4 -cat /tmp/sample2.mp4 /tmp/out.mp4
    Appending file /tmp/sample1.mp4
    No suitable destination track found - creating new one (type vide)
    Appending file /tmp/sample2.mp4
    Saving to /tmp/out.mp4: 0.500 secs Interleaving
    jnicolau@ub10:/var/www$ MP4Box -cat /tmp/sample3.mp4 -cat /tmp/sample4.mp4 /tmp/out.mp4
    Appending file /tmp/sample3.mp4
    Appending file /tmp/sample4.mp4
    Saving /tmp/out.mp4: 0.500 secs Interleaving
    Error: I/O Error
    jnicolau@ub10:/var/www$

    The MP4Box create the file /tmp/out.mp4 in the 1st concatenation, but in the 2nd
    get an Error: I/O Error
    MP4Box can create, but can't append?

    The same teste under 'su':

    Test #2
    jnicolau@ub10:/var/www$ sudo MP4Box -cat /tmp/sample3.mp4 -cat /tmp/sample4.mp4 /tmp/out.mp4
    [sudo] password for jnicolau:
    Appending file /tmp/sample3.mp4
    Appending file /tmp/sample4.mp4
    Saving /tmp/out.mp4: 0.500 secs Interleaving

    Test #3
    If we ran the test under then video's location folder, we get no error:
    jnicolau@ub10:/tmp$ MP4Box -cat /tmp/sample3.mp4 -cat /tmp/sample4.mp4 /tmp/out.mp4

     
  • I think I got it: GPAC creates the file in /tmp (default temporary folder) and then renames it. However, if the filesystems between /tmp and the destination are different, renaming will fail.

    Can you change your mp4box temporary folder using the '-tmp /my_tmp_folder' option? Does it help?

     
  • João Nicolau
    João Nicolau
    2011-11-25

    Using the '-tmp /my_tmp_folder' solve my problem.

    Tank You Very Much

     
  • João Nicolau
    João Nicolau
    2011-11-25

    Use the '-tmp' to define the temp folder to avoid I/O Error

     
  • João Nicolau
    João Nicolau
    2011-11-25

    • status: open --> closed