Skip to content

Instantly share code, notes, and snippets.

@andrey-utkin
Created January 31, 2016 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrey-utkin/d92df8e767dc853457b1 to your computer and use it in GitHub Desktop.
Save andrey-utkin/d92df8e767dc853457b1 to your computer and use it in GitHub Desktop.
$ LDFLAGS="-L`pwd` -lpostproc" make -C doc/examples transcoding
make: Entering directory '/usr/local/src/ffmpeg/doc/examples'
cc -L/src/ffmpeg -lpostproc transcoding.o -lavdevice -lavformat -lavfilter -lavcodec -lswresample -lswscale -lavutil -o transcoding
make: Leaving directory '/usr/local/src/ffmpeg/doc/examples'
[OK]
19:23:33j@zver /src/ffmpeg
$ export LD_LIBRARY_PATH=`pwd`; ./ffmpeg -f lavfi -i testsrc -t 1 -c:v libx264 -y test.mkv -loglevel error && ./doc/examples/transcoding test.mkv out.mkv
Input #0, matroska,webm, from 'test.mkv':
Metadata:
ENCODER : Lavf57.23.101
Duration: 00:00:01.00, start: 0.000000, bitrate: 68 kb/s
Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
ENCODER : Lavc57.24.101 libx264
DURATION : 00:00:01.000000000
[libx264 @ 0x15535c0] Specified pixel format -1 is invalid or not supported
Cannot open video encoder for stream #0
Error occurred: Invalid argument
[ERR]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment