@@ -20,8 +20,8 @@ For Windows users : Please find the binaries at http://ffmpeg.zeranoe.com/builds
20
20
21
21
### Known issues:
22
22
23
- - Using rotate and resize will produce a corrupted output when using
24
- [ libav] ( http://libav.org/ ) 0.8. The bug is fixed in version 9. This bug does not
23
+ - Using rotate and resize will produce a corrupted output when using
24
+ [ libav] ( http://libav.org/ ) 0.8. The bug is fixed in version 9. This bug does not
25
25
appear in latest ffmpeg version.
26
26
27
27
## Installation
@@ -433,17 +433,7 @@ With the second function, you will be able to choose which codec you want for th
433
433
You also need to pay attention to the fact that, when using the saveFromDifferentCodecs method,
434
434
your files MUST have video and audio streams.
435
435
436
- In both cases, you will have to provide a list of files in a TXT file.
437
- The TXT file will one path per line. Here is an example:
438
-
439
- ``` txt
440
- file './concat-1.mp4'
441
- file 'concat-2.mp4'
442
- #file 'concat-3.mp4'
443
- ```
444
-
445
- In this example, the third file will be ignored.
446
- Please refer to the [ documentation] ( https://trac.ffmpeg.org/wiki/Concatenate ) for more details.
436
+ In both cases, you will have to provide an array of files.
447
437
448
438
To concatenate videos encoded with the same codec, do as follow:
449
439
@@ -452,7 +442,7 @@ To concatenate videos encoded with the same codec, do as follow:
452
442
// We recommand that you put there the path of any of the video you want to use in this concatenation.
453
443
$video = $ffmpeg->open( '/path/to/video' );
454
444
$video
455
- ->concat('/path/to/list.txt' )
445
+ ->concat(array( '/path/to/video1', '/path/to/video2') )
456
446
->saveFromSameCodecs('/path/to/new_file', TRUE);
457
447
```
458
448
@@ -469,7 +459,7 @@ $format = new FFMpeg\Format\Video\X264();
469
459
$format->setAudioCodec("libmp3lame");
470
460
471
461
$video
472
- ->concat('/path/to/list.txt' )
462
+ ->concat(array( '/path/to/video1', '/path/to/video2') )
473
463
->saveFromDifferentCodecs($format, '/path/to/new_file');
474
464
```
475
465
@@ -606,7 +596,3 @@ Browse the [API](https://ffmpeg-php.readthedocs.io/en/latest/_static/API/)
606
596
## License
607
597
608
598
This project is licensed under the [ MIT license] ( http://opensource.org/licenses/MIT ) .
609
-
610
-
611
-
612
-
0 commit comments