Hi, I am new to ffmpeg. So please bear with me if I am doing something stupid.
My environment is Ubuntu 14.04. Installed by following this instruction. https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media I tried to get scene changes with the following command, but failed to extract any scenes. $ ffmpeg -i Downloads/100_2016-01-04_124010.3gp -vf select='gt(scene\,0.5)' -vsync vfr /tmp/thumbnails-%02d.jpg ffmpeg version N-77455-g4707497 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x378d3c0] overread end of atom 'stsd' by 2304 bytes Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/100_2016-01-04_124010.3gp': Metadata: major_brand : 3gp5 minor_version : 256 compatible_brands: 3gp53gp4isom creation_time : 2016-01-04 12:42:29 Duration: 00:02:27.28, start: 0.000000, bitrate: 2851 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 2828 kb/s, 14.09 fps, 14.08 tbr, 300 tbn, 600 tbc (default) Metadata: creation_time : 2016-01-04 03:40:10 handler_name : Vivotek Stream #0:1(und): Data: none (stts / 0x73747473), 20 kb/s (default) Metadata: creation_time : 2016-01-04 03:40:10 handler_name : Vivotek [swscaler @ 0x388b440] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to '/tmp/thumbnails-%02d.jpg': Metadata: major_brand : 3gp5 minor_version : 256 compatible_brands: 3gp53gp4isom encoder : Lavf57.20.100 Stream #0:0(und): Video: mjpeg, yuvj444p(pc), 1920x1080, q=2-31, 200 kb/s, 14.08 fps, 14.08 tbn, 14.08 tbc (default) Metadata: creation_time : 2016-01-04 03:40:10 handler_name : Vivotek encoder : Lavc57.20.100 mjpeg Side data: unknown side data type 10 (24 bytes) Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x 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) The input file was generated by Vivotek FE8180 IP Camera, which can be viewed with Videos on Ubuntu. I made it available here for a week. http://video.s3.cloudian.jp:10080/2016%2F1%2F4%2F100_2016-01-04_124010.3gp?AWSAccessKeyId=00ade4de84d2a4e612b2&Expires=1452743100&Signature=GRpwurv1pNhpkituZfGpDDbCY%2Fc%3D&x-amz-pt=MDAyMjY1ODIxNDUyMTM0Nzk2MTAw When I ran with "-v debug", I see massive "cur_dts is invalid" messages as below. [Parsed_select_0 @ 0x3b71540] n:2041.000000 pts:1567488.000000 t:144.923077 key:0 interlace_type:P pict_type:P scene:0.004516 -> select:0.000000 select_out:-1 cur_dts is invalid (this is harmless if it occurs once at the start per stream) I also checked the file with ffprobe. It seems like an unsupported codec. $ ffprobe -i Downloads/100_2016-01-04_124010.3gp ffprobe version N-77455-g4707497 Copyright (c) 2007-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3aa6c00] overread end of atom 'stsd' by 2304 bytes Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/100_2016-01-04_124010.3gp': Metadata: major_brand : 3gp5 minor_version : 256 compatible_brands: 3gp53gp4isom creation_time : 2016-01-04 12:42:29 Duration: 00:02:27.28, start: 0.000000, bitrate: 2851 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 2828 kb/s, 14.09 fps, 14.08 tbr, 300 tbn, 600 tbc (default) Metadata: creation_time : 2016-01-04 03:40:10 handler_name : Vivotek Stream #0:1(und): Data: none (stts / 0x73747473), 20 kb/s (default) Metadata: creation_time : 2016-01-04 03:40:10 handler_name : Vivotek Unsupported codec with id 0 for input stream 1 I was able to convert the 3GP file to MP4. So tried scene extractions with this file, but still I get the same error. $ ffmpeg -i Downloads/100_2016-01-04_124010.3gp Downloads/100_2016-01-04_124010.mp4 $ ffprobe -i Downloads/100_2016-01-04_124010.mp4 ffprobe version N-77455-g4707497 Copyright (c) 2007-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/100_2016-01-04_124010.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.20.100 Duration: 00:02:27.41, start: 0.000000, bitrate: 2227 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 2226 kb/s, 14.08 fps, 14.08 tbr, 10816 tbn, 28.17 tbc (default) Metadata: handler_name : VideoHandler $ ffmpeg -i Downloads/100_2016-01-04_124010.mp4 -vf select='gt(scene\,0.5)' -vsync vfr /tmp/thumbnails-%02d.jpg ffmpeg version N-77455-g4707497 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Downloads/100_2016-01-04_124010.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.20.100 Duration: 00:02:27.41, start: 0.000000, bitrate: 2227 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 2226 kb/s, 14.08 fps, 14.08 tbr, 10816 tbn, 28.17 tbc (default) Metadata: handler_name : VideoHandler [swscaler @ 0x2423180] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to '/tmp/thumbnails-%02d.jpg': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.20.100 Stream #0:0(und): Video: mjpeg, yuvj444p(pc), 1920x1080, q=2-31, 200 kb/s, 14.08 fps, 14.08 tbn, 14.08 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.20.100 mjpeg Side data: unknown side data type 10 (24 bytes) Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed= 0x 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) Is this file by Vivotek not supported in ffmpeg, or anyway to resolve this? Thanks, Takenori _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
