Skip to content

Commit 23de849

Browse files
authored
Merge pull request #30 from quic/OpenMAX-Video-dev
Modify location of OpenMAX-Video output file.
2 parents b4869c3 + f89a154 commit 23de849

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

OpenMAX-Video/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ $ apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugi
2424
## Compile
2525
After executing make command, the executable program gst-omx_codec_h264 will be created.
2626
```
27-
$ cd /data/OpenMAX-Video/
27+
$ cd OpenMAX-Video/
2828
$ make
2929
```
3030
![Image text](image/01_make.png)
3131

3232
## Test
3333
After compile the sample app, you are free to use the app to test the encode and decode.
3434
###Encode
35-
The program will encode the yuv file in h264 codec to output_encode.mp4 and the output file will be put under ./test_video.
35+
The program will encode the yuv file in h264 codec to output_encode.mp4 and the output file will be put under current directory.
3636

3737
Notes: "/test_video" does not exist. You may need to find ".yuv" and ".mp4" files to test encode and decode. The following test results are for reference only.
3838

@@ -89,9 +89,8 @@ $ 352 288 23 25
8989

9090
For more format information, you can refer to [Gstreamer Videoparse Format Reference](https://gstreamer.freedesktop.org/documentation/video/video-format.html?gi-language=c#GstVideoFormat).
9191

92-
Sample.yuv (flower_cif.yuv) can be put under ./test_video to test encode
9392
###Decode
94-
The program will decode a sample mp4 file in h264 codec to output_decode.yuv and the output file will be put under ./test_video
93+
The program will decode a sample mp4 file in h264 codec to output_decode.yuv and the output file will be put under current directory.
9594
```
9695
$ ./app/src/gst-omx_codec_h264 decode <FILE>
9796
```

OpenMAX-Video/app/src/gst-omx_codec_h264.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111

1212
/* patterns */
1313
char inputfile[512] = "\0";
14-
const char *encode_outputfile = "/data/OpenMAX-Video/test_video/output_encode.mp4";
15-
const char *decode_outputfile = "/data/OpenMAX-Video/test_video/output_decode.yuv";
14+
15+
const char *encode_outputfile = "./output_encode.mp4";
16+
const char *decode_outputfile = "./output_decode.yuv";
1617

1718
int error_handle(GstElement *pipeline);
1819
int gst_encode_yuv();

OpenMAX-Video/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ gst-omx_codec_h264: app/src/gst-omx_codec_h264.c
1313

1414
# clean executable file
1515
clean:
16-
$(RM) app/src/gst-omx_codec_h264
16+
$(RM) app/src/gst-omx_codec_h264 output_decode.yuv output_encode.mp4

0 commit comments

Comments
 (0)