<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<blockquote type="cite">
<pre wrap="">$ ffmpeg -i out.ppm -pix_fmt yuv420p -strict experimental out.ljpg
$ ffmpeg -i out.ljpg ref2.ppm
</pre>
</blockquote>
<blockquote cite="mid:loom.20120606T124819-388@post.gmane.org"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">I'm also seeing the black edge with above commands.
</pre>
</blockquote>
<br>
<blockquote type="cite">
<pre wrap="">(Except, I had to precede the second command with
-pix_fmt yuv420p to avoid seg faulting ffmpeg).
</pre>
</blockquote>
<pre wrap="">
This sounds like an important issue that I cannot reproduce here,
please provide more information.
Carl Eugen
</pre>
</blockquote>
Hi Carl,<br>
This is the output I get if I issue that second command without
-pix_fmt yuv420p<br>
$ ffmpeg -i out.ljpg ref2.ppm<br>
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers<br>
built on Apr 27 2012 07:58:14 with gcc 4.4.5<br>
configuration: --enable-shared --enable-gpl --enable-nonfree
--enable-x11grab --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
WARNING: library configuration mismatch<br>
avutil configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
avfilter configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
swresample configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
libavutil 51. 35.100 / 51. 47.100<br>
libavcodec 53. 61.100 / 53. 61.100<br>
libavformat 53. 32.100 / 53. 32.100<br>
libavdevice 53. 4.100 / 53. 4.100<br>
libavfilter 2. 61.100 / 2. 72.100<br>
libswscale 2. 1.100 / 2. 1.100<br>
libswresample 0. 6.100 / 0. 11.100<br>
libpostproc 52. 0.100 / 52. 0.100<br>
Input #0, image2, from 'out.ljpg':<br>
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A<br>
Stream #0:0: Video: mjpeg, yuv420p, 45x32, 25 tbr, 25 tbn, 25
tbc<br>
Incompatible pixel format 'yuv420p' for codec 'ppm', auto-selecting
format 'rgb24'<br>
[buffer @ 0x1160b20] w:45 h:32 pixfmt:yuv420p tb:1/1000000 sar:0/1
sws_param:<br>
[buffersink @ 0x1154ca0] auto-inserting filter 'auto-inserted scale
0' between the filter 'src' and the filter 'out'<br>
[scale @ 0x11555a0] w:45 h:32 fmt:yuv420p sar:0/1 -> w:45 h:32
fmt:rgb24 sar:0/1 flags:0x4<br>
Output #0, image2, to 'ref2.ppm':<br>
Metadata:<br>
encoder : Lavf53.32.100<br>
Stream #0:0: Video: ppm, rgb24, 45x32, q=2-31, 200 kb/s, 90k
tbn, 25 tbc<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (mjpeg -> ppm)<br>
Press [q] to stop, [?] for help<br>
Segmentation fault<br>
-------------------------------<br>
<br>
Note the "Incompatible pixel format....". Please let me know if you
want any other details.<br>
<br>
Also I tried, Alex's two commands, again ffmpeg crashes.<br>
<b>$ ffmpeg -i ref.ppm -pix_fmt yuv420p t.yuv</b><br>
<br>
Truncated output:<br>
ffmpeg -i ref.ppm -pix_fmt yuv420p t.yuv<br>
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers<br>
built on Apr 27 2012 07:58:14 with gcc 4.4.5<br>
configuration: --enable-shared --enable-gpl --enable-nonfree
--enable-x11grab --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
WARNING: library configuration mismatch<br>
avutil configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
avfilter configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
swresample configuration: --enable-gpl --enable-nonfree
--enable-shared --disable-ffserver --enable-x11grab
--enable-libaacplus --enable-libfaac --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-pic<br>
libavutil 51. 35.100 / 51. 47.100<br>
libavcodec 53. 61.100 / 53. 61.100<br>
libavformat 53. 32.100 / 53. 32.100<br>
libavdevice 53. 4.100 / 53. 4.100<br>
libavfilter 2. 61.100 / 2. 72.100<br>
libswscale 2. 1.100 / 2. 1.100<br>
libswresample 0. 6.100 / 0. 11.100<br>
libpostproc 52. 0.100 / 52. 0.100<br>
Input #0, image2, from 'ref.ppm':<br>
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A<br>
Stream #0:0: Video: ppm, rgb24, 45x32, 25 tbr, 25 tbn, 25 tbc<br>
[buffer @ 0x253a0a0] w:45 h:32 pixfmt:rgb24 tb:1/1000000 sar:0/1
sws_param:<br>
[buffersink @ 0x25418a0] auto-inserting filter 'auto-inserted scale
0' between the filter 'src' and the filter 'out'<br>
[scale @ 0x25421a0] w:45 h:32 fmt:rgb24 sar:0/1 -> w:45 h:32
fmt:yuv420p sar:0/1 flags:0x4<br>
Output #0, rawvideo, to 't.yuv':<br>
Metadata:<br>
encoder : Lavf53.32.100<br>
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
45x32, q=2-31, 200 kb/s, 90k tbn, 25 tbc<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (ppm -> rawvideo)<br>
Press [q] to stop, [?] for help<br>
*** glibc detected *** ffmpeg: corrupted double-linked list:
0x000000000256b760 ***<br>
======= Backtrace: =========<br>
<br>
... <br>
<br>
thanks<br>
-Sampath<br>
<br>
</body>
</html>