Skip to content

Commit 7cff2ec

Browse files
authored
Update of the README (PHP-FFMpeg#315)
1 parent 4082f46 commit 7cff2ec

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ For Windows users : Please find the binaries at http://ffmpeg.zeranoe.com/builds
2020

2121
### Known issues:
2222

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
2525
appear in latest ffmpeg version.
2626

2727
## Installation
@@ -433,17 +433,7 @@ With the second function, you will be able to choose which codec you want for th
433433
You also need to pay attention to the fact that, when using the saveFromDifferentCodecs method,
434434
your files MUST have video and audio streams.
435435

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.
447437

448438
To concatenate videos encoded with the same codec, do as follow:
449439

@@ -452,7 +442,7 @@ To concatenate videos encoded with the same codec, do as follow:
452442
// We recommand that you put there the path of any of the video you want to use in this concatenation.
453443
$video = $ffmpeg->open( '/path/to/video' );
454444
$video
455-
->concat('/path/to/list.txt')
445+
->concat(array('/path/to/video1', '/path/to/video2'))
456446
->saveFromSameCodecs('/path/to/new_file', TRUE);
457447
```
458448

@@ -469,7 +459,7 @@ $format = new FFMpeg\Format\Video\X264();
469459
$format->setAudioCodec("libmp3lame");
470460

471461
$video
472-
->concat('/path/to/list.txt')
462+
->concat(array('/path/to/video1', '/path/to/video2'))
473463
->saveFromDifferentCodecs($format, '/path/to/new_file');
474464
```
475465

@@ -606,7 +596,3 @@ Browse the [API](https://ffmpeg-php.readthedocs.io/en/latest/_static/API/)
606596
## License
607597

608598
This project is licensed under the [MIT license](http://opensource.org/licenses/MIT).
609-
610-
611-
612-

0 commit comments

Comments
 (0)