Skip to content

Commit 0e8513a

Browse files
committed
Merge pull request #7 from cchampet/dev_update_avProfileIdentificator
Update avProfileIdentificator value
2 parents a3ebb88 + c8b1e6e commit 0e8513a

File tree

2 files changed

+53
-7
lines changed

2 files changed

+53
-7
lines changed

README.md

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,48 @@
11
# avTranscoder
22

3-
C++ API for LibAV / FFMpeg
3+
C++ API for Libav / FFmpeg
44

5-
Based on LibAV/FFMpeg libraries to support various video formats, avTranscoder provides the high level API to re-wrap or transcode media easily.
5+
Based on Libav/FFmpeg libraries to support various video and audio formats, avTranscoder provides the high level API to re-wrap or transcode media easily.
66

7-
You can also use its Java & Python bindings for simpler integration in your own projects.
7+
#### What you need to know
8+
* C++ library
9+
* Java and Python bindings generated with SWIG
10+
* multiplateform (Linux, MAC, Windows)
11+
* your call to be based on Libav, FFmpeg, or your custom fork of one of these librairies
12+
13+
#### How to use
14+
Check out applications contained in the project to see examples of how to use the library in C++, Java or Python.
15+
16+
To encode, avTranscoder manipulates profiles.
17+
A profile is a text file which discribes, with a set of key-value, what we want as output for the format, the video, or the audio.
18+
You can create your own profiles and export a variable called ```AVPROFILES``` to indicate the path to them.
19+
20+
The minimum format profile is:
21+
```
22+
avProfileName=profileName
23+
avProfileLongName=profileLongName
24+
avProfileType=avProfileTypeFormat
25+
format=formatName
26+
```
27+
28+
The minimum video profile is:
29+
```
30+
avProfileName=profileName
31+
avProfileLongName=profileLongName
32+
avProfileType=avProfileTypeVideo
33+
codec=codecName
34+
pix_fmt=pixelFormat
35+
r=frameRate
36+
```
37+
38+
The minimum audio profile is:
39+
```
40+
avProfileName=profileName
41+
avProfileLongName=profileLongName
42+
avProfileType=avProfileTypeAudio
43+
codec=codecName
44+
sample_fmt=sampleFormat
45+
```
846

947
#### Continuous Integration
1048

@@ -26,8 +64,16 @@ You can also use its Java & Python bindings for simpler integration in your own
2664
Python tests using nosetests.
2765

2866
Create environment variables to use your files in tests.
29-
* AVTRANSCODER_TEST_AUDIO_FILE
30-
* AVTRANSCODER_TEST_VIDEO_FILE
67+
* ```AVTRANSCODER_TEST_AUDIO_FILE```
68+
* ```AVTRANSCODER_TEST_VIDEO_FILE```
69+
70+
Note: for continuous integration, we launch tests with media files contained in ```avTranscoder-data``` repository.
71+
72+
Launch the tests:
73+
```
74+
cd test/pyTest
75+
nosetests
76+
```
3177

3278
#### Packaging
3379

src/AvTranscoder/ProfileLoader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ namespace avtranscoder
1313

1414
namespace constants
1515
{
16-
const std::string avProfileIdentificator = "avProfile";
17-
const std::string avProfileIdentificatorHuman = "avProfileLong";
16+
const std::string avProfileIdentificator = "avProfileName";
17+
const std::string avProfileIdentificatorHuman = "avProfileLongName";
1818
const std::string avProfileType = "avProfileType";
1919
const std::string avProfileTypeFormat = "avProfileTypeFormat";
2020
const std::string avProfileTypeVideo = "avProfileTypeVideo";

0 commit comments

Comments
 (0)