It is easy to convert a WebP image to JPEG with ffmpeg:
Code: Select all
ffmpeg -i input.webp output.jpg
[Edit]: Cleared Fatdog's name.
.
Code: Select all
ffmpeg -i input.webp output.jpg
Code: Select all
x264 -o zz.mkv 1.webp ; mplayer -frames 1 -vo jpeg:outdir=/root 1 zz.mkv
Code: Select all
# /usr/bin/x264 --help
/usr/bin/x264: error while loading shared libraries: libavformat.so.54: cannot open shared object file: No such file or directory
Of course there is ffmpeg in Fatdog OOTB.MochiMoppel wrote:I've learned that ffmpeg is not installed in Tahrpup and Fatdog, so how could this be done in these distributions? I've already tried avconv, but not dice
Code: Select all
dwebp 2.webp -ppm -o 2.ppm
pnmtojpeg -quality=99 2.ppm > 2.jpg
Interesting. I looked at mine in Slacko 5.7 and x264 --help gave the same message as you. It looks like three of the libraries (pulled from ffmpeg-2.0-i686-s14.0.pet) are .01 version too new for x264-snapshot-20120804-2245-i686.pet, and you either have to download x264-20120712-i486-1gv.txz from Salix to match ffmpeg2 or use ffmpeg-0.11.1-i686.pet to match the x264.MochiMoppel wrote:01micko: Though x264 is installed in Slacko5.6 it doesn't seem to work. I can't even call up the usage infoCode: Select all
# /usr/bin/x264 --help /usr/bin/x264: error while loading shared libraries: libavformat.so.54: cannot open shared object file: No such file or directory
Yeah, the --help option works now, that's a startSailor Enceladus wrote:Another option that worked for me was the x264-20131101-2245-i686_slk600.pet from Slacko 14.1.
Code: Select all
lavf [info]: 187x310p 0:1 @ 0/0 fps (cfr)
resize [error]: resolution 187x310 is not compliant with colorspace i420
I gave this a go on my Slacko 5.6 derivative and had to progressively symlink existing (newer) versions of libavformat, libavcodec and libavutil but still no apparent result:MochiMoppel wrote:Though x264 is installed in Slacko5.6 it doesn't seem to work. I can't even call up the usage infoCode: Select all
# /usr/bin/x264 --help /usr/bin/x264: error while loading shared libraries: libavformat.so.54: cannot open shared object file: No such file or directory
Code: Select all
# /usr/bin/x264 --help
/usr/bin/x264: error while loading shared libraries: libavformat.so.54: cannot open shared object file: No such file or directory
# /usr/bin/x264 --help
/usr/bin/x264: error while loading shared libraries: libavcodec.so.54: cannot open shared object file: No such file or directory
# /usr/bin/x264 --help
/usr/bin/x264: error while loading shared libraries: libavutil.so.51: cannot open shared object file: No such file or directory
# /usr/bin/x264 --help
Code: Select all
# /usr/bin/x264 --help
x264 core:138 r111M d37a857
Syntax: x264 [options] -o outfile infile
Infile can be raw (in which case resolution is required),
or YUV4MPEG (*.y4m),
or Avisynth if compiled with support (yes).
or libav* formats if compiled with lavf support (yes) or ffms support (no).
Outfile type is selected by filename:
.264 -> Raw bytestream
.mkv -> Matroska
.flv -> Flash Video
.mp4 -> MP4 if compiled with GPAC support (no)
Output bit depth: 8 (configured at compile time)
Options:
-h, --help List basic options
--longhelp List more options
--fullhelp List all options
Example usage:
Constant quality mode:
x264 --crf 24 -o <output> <input>
Two-pass with a bitrate of 1000kbps:
x264 --pass 1 --bitrate 1000 -o <output> <input>
x264 --pass 2 --bitrate 1000 -o <output> <input>
Lossless:
x264 --qp 0 -o <output> <input>
Maximum PSNR at the cost of speed and visual quality:
x264 --preset placebo --tune psnr -o <output> <input>
Constant bitrate at 1000kbps with a 2 second-buffer:
x264 --vbv-bufsize 2000 --bitrate 1000 -o <output> <input>
Presets:
--profile <string> Force the limits of an H.264 profile
Overrides all settings.
- baseline,main,high,high10,high422,high444
--preset <string> Use a preset to select encoding settings [medium]
Overridden by user settings.
- ultrafast,superfast,veryfast,faster,fast
- medium,slow,slower,veryslow,placebo
--tune <string> Tune the settings for a particular type of source
or situation
Overridden by user settings.
Multiple tunings are separated by commas.
Only one psy tuning can be used at a time.
- psy tunings: film,animation,grain,
stillimage,psnr,ssim
- other tunings: fastdecode,zerolatency
Frame-type options:
-I, --keyint <integer or "infinite"> Maximum GOP size [250]
--tff Enable interlaced mode (top field first)
--bff Enable interlaced mode (bottom field first)
--pulldown <string> Use soft pulldown to change frame rate
- none, 22, 32, 64, double, triple, euro (requires cfr input)
Ratecontrol:
-B, --bitrate <integer> Set bitrate (kbit/s)
--crf <float> Quality-based VBR (0-51) [23.0]
--vbv-maxrate <integer> Max local bitrate (kbit/s) [0]
--vbv-bufsize <integer> Set size of the VBV buffer (kbit) [0]
-p, --pass <integer> Enable multipass ratecontrol
- 1: First pass, creates stats file
- 2: Last pass, does not overwrite stats file
Input/Output:
-o, --output <string> Specify output file
--sar width:height Specify Sample Aspect Ratio
--fps <float|rational> Specify framerate
--seek <integer> First frame to encode
--frames <integer> Maximum number of frames to encode
--level <string> Specify level (as defined by Annex A)
--quiet Quiet Mode
Filtering:
--vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file
Filter options may be specified in <filter>:<option>=<value> format.
Available filters:
crop:left,top,right,bottom
resize:[width,height][,sar][,fittobox][,csp][,method]
select_every:step,offset1[,...]
#
Code: Select all
# x264 -o zz.mkv 1.webp ; mplayer -frames 1 -vo jpeg:outdir=/root 1 zz.mkv
lavf [info]: 550x368p 0:1 @ 0/0 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
x264 [info]: profile High, level 2.2
x264 [info]: frame I:1 Avg QP:28.36 size: 22591
x264 [info]: mb I I16..4: 31.2% 18.3% 50.6%
x264 [info]: 8x8 transform intra:18.3%
x264 [info]: coded y,uvDC,uvAC intra: 83.8% 85.8% 47.7%
x264 [info]: i16 v,h,dc,p: 6% 33% 43% 18%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 7% 29% 27% 7% 7% 3% 9% 3% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 23% 28% 7% 6% 4% 7% 4% 11%
x264 [info]: i8c dc,h,v,p: 48% 39% 10% 2%
x264 [info]: kb/s:4518.20
encoded 1 frames, 28.11 fps, 4662.40 kb/s
Creating config file: /root/.mplayer/config
MPlayer SVN-r36362-snapshot-4.7.1 (C) 2000-2013 MPlayer Team
Playing 1.
File not found: '1'
Failed to open 1.
Playing zz.mkv.
libavformat version 55.12.100 (external)
Mismatching header version 55.13.102
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 550x368 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
jpeg: Progressive JPEG disabled.
jpeg: Baseline JPEG enabled.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.18.102 (external)
Mismatching header version 55.23.100
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xb6d663f4]using unscaled yuv420p -> rgb24 special converter
VO: [jpeg] 550x368 => 550x368 RGB 24-bit
jpeg: /root - Output directory already exists and is writable.
V: 0.0 0/ 0 ??% ??% ??,?% 0 0
Exiting... (End of file)
#