[FFmpeg-user] FFMPEG | Error converting video to a thumbnail

2016-05-30 Thread C0nw0nk
Input :

ffmpeg.exe -y -analyzeduration 2147483647 -probesize 2147483647 -itsoffset
-768 -i file.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 178x100
fileimage.jpg

Output :

C:\Users\C0n\Desktop\ffmpeg>ffmpeg.exe -y -analyzeduration 2147483647
-probesize 2147483647 -itsoffset -768 -i file.mp4 -vcodec mjpeg -vframes 1
-an -f rawvideo -s 178x100  fileimage.jpg
ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 13 2015 16:36:01 with gcc 4.9.1 (GCC)
  configuration: --arch=x86_64 --target-os=mingw32
--cross-prefix=/home/jan/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-libx265
--enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3
--enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
--enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
--enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libilbc --disable-doc
--prefix=/home/jan/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32
--enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo
--enable-libbluray --enable-iconv --enable-libtwolame
--extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca
--enable-libmodplug --enable-libbs2b --enable-libgme --extra-libs=-lstdc++
--extra-libs=-lpng --enable-libvidstab --enable-nonfree --enable-libfdk-aac
--enable-libfaac --enable-runtime-cpudetect
  libavutil  54. 15.100 / 54. 15.100
  libavcodec 56. 13.100 / 56. 13.100
  libavformat56. 15.102 / 56. 15.102
  libavdevice56.  3.100 / 56.  3.100
  libavfilter 5.  2.103 /  5.  2.103
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4':
  Metadata:
major_brand : mp42
minor_version   : 1
compatible_brands: isommp423gp5
creation_time   : 2016-05-14 11:22:40
  Duration: 00:25:37.53, start: 0.00, bitrate: 166 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360 [SAR 1:1 DAR 16:9], 1000 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94
tbc (default)
Metadata:
  handler_name: VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 58 kb/s (default)
Metadata:
  creation_time   : 2016-05-14 11:22:54
  handler_name: GPAC ISO Audio Handler
[swscaler @ 04e47560] deprecated pixel format used, make sure you
did set range correctly
Output #0, rawvideo, to 'fileimage.jpg':
  Metadata:
major_brand : mp42
minor_version   : 1
compatible_brands: isommp423gp5
encoder : Lavf56.15.102
Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 178x100 [SAR 800:801 DAR
16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
Metadata:
  handler_name: VideoHandler
  encoder : Lavc56.13.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[h264 @ 0554b9e0] AVC: nal size 6792me=00:00:00.00 bitrate=N/A
dup=0 drop=7011
Last message repeated 1 times
[h264 @ 0554b9e0] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e79f03:
partial file
file.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e7a651:
partial file
file.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e7a741:
partial file
file.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e7c726:
partial file
file.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e7cde9:
partial file
file.mp4: Invalid data found when processing input
[mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e7ed77:
partial file
file.mp4: Invalid data found when processing input
frame=0 fps=0.0 q=0.0 Lsize=   0kB time=00:00:00.00 bitrate=N/A
dup=0 drop=7131
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)

C:\Users\C0n\Desktop\ffmpeg>pause
Press any key to continue . . .



Does anyone know how i can fix this error ?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] FFMPEG | Error converting video to a thumbnail

2016-05-30 Thread Cley Faye
2016-05-28 18:34 GMT+02:00 C0nw0nk :

> ffmpeg.exe -y -analyzeduration 2147483647 -probesize 2147483647 -itsoffset
> -768 -i file.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 178x100
> fileimage.jpg
>

​I'm still learning how to use ffmpeg efficiently, but I think you provide
way too much stuff in that command line if your intent is to only create a
single-frame jpeg from a video input.​
As far as I can tell, your input command works with "ffmpeg version
N-78990-g689211d".
Also, from your log, it seems that ffmpeg is struggling with your input
file:

> [h264 @ 0554b9e0] no frame!
> [mov,mp4,m4a,3gp,3g2,mj2 @ 04e3d300] stream 0, offset 0x1e79f03:
> partial file
> file.mp4: Invalid data found when processing input


My guess here is that the file is incomplete/corrupt.

I have some question about your command line though, to help me understand
ffmpeg a bit more:
- the analyzeduration and probesize seems superfluous (for the video stream
in an mp4 file anyway). Are they really needed?
- itsoffset might not be as good as -ss performance wise. At least in the
version I use, -ss immediately seek the asked time, while itsoffset crawls
the file until it reach the timestamp requested (ignore this question if
the input doesn't start at 0...)
- "-f rawvideo" and "-vcodec mjpeg" seems also superfluous, as ffmpeg will
happily output to jpeg if given a jpeg filename
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] FFMPEG | Error converting video to a thumbnail

2016-05-30 Thread Carl Eugen Hoyos
C0nw0nk  googlemail.com> writes:

> ffmpeg.exe -y -analyzeduration 2147483647 -probesize 2147483647 
> -itsoffset -768 -i file.mp4 -vcodec mjpeg -vframes 1 -an 
> -f rawvideo -s 178x100 fileimage.jpg

First the general questions:
Why are you using -analyzeduration and -probesize?
They are often needed for program streams, transport streams 
or flv files, they should not be needed for mp4.
Why are you using "-an -f rawvideo -vcodec mjpeg"? The file 
extension ".jpg" is supposed to set all three for you.

More specifically for your issue:
Whatever you are trying to achieve with -itsoffset, I don't 
believe that it is supposed to work in your command line.
Try either the input option -ss or the output option -ss
(you generally want the input option).

> ffmpeg version 2.5.3 Copyright (c) 2000-2015 the FFmpeg developers

Note that only current FFmpeg git head is supported on this 
mailing list.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".