Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#10007 closed defect (fixed)

FFmpeg fails to convert a SER file

Reported by: Michael Koch Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: ser
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

FFmpeg fails to convert a SER file to MP4.
The sample file is size 400x300, 16-bit grayscale, 50 frames and can be downloaded here (about 12MB):
http://www.astro-electronic.de/Moon_Test.ser

The SER file plays fine with SER Player, but the MP4 file contains only noise.
FFplay does play the SER file, but only noise is visible.

This is the console output:

C:\Users\astro\Desktop\ser>ffmpeg -i Moon_Test.ser -pix_fmt yuv420p -y out.mp4
ffmpeg version 2022-10-30-git-ed5a438f05-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers

built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 57. 40.100 / 57. 40.100
libavcodec 59. 51.100 / 59. 51.100
libavformat 59. 34.101 / 59. 34.101
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 49.101 / 8. 49.101
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100

Input #0, ser, from 'Moon_Test.ser':

Duration: 00:00:02.00, start: 0.000000, bitrate: 48002 kb/s
Stream #0:0: Video: rawvideo ([16][0]1Y / 0x59310010), gray16be, 400x300, 48000 kb/s, 25 tbr, 25 tbn

Stream mapping:

Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))

Press [q] to stop, ? for help
[libx264 @ 0000018a4fa5ab40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000018a4fa5ab40] profile High, level 2.1, 4:2:0, 8-bit
[libx264 @ 0000018a4fa5ab40] 264 - core 164 r3101 b093bbe - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':

Metadata:

encoder : Lavf59.34.101

Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 400x300, q=2-31, 25 fps, 12800 tbn

Metadata:

encoder : Lavc59.51.100 libx264

Side data:

cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A

frame= 50 fps=0.0 q=-1.0 Lsize= 2331kB time=00:00:01.88 bitrate=10159.3kbits/s speed=4.51x
video:2330kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.045593%
[libx264 @ 0000018a4fa5ab40] frame I:1 Avg QP:34.00 size: 49889
[libx264 @ 0000018a4fa5ab40] frame P:49 Avg QP:34.00 size: 47669
[libx264 @ 0000018a4fa5ab40] mb I I16..4: 0.0% 0.0% 100.0%
[libx264 @ 0000018a4fa5ab40] mb P I16..4: 93.9% 4.0% 2.1% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip: 0.0%
[libx264 @ 0000018a4fa5ab40] 8x8 transform intra:3.9% inter:100.0%
[libx264 @ 0000018a4fa5ab40] coded y,uvDC,uvAC intra: 100.0% 0.0% 0.0% inter: 100.0% 0.0% 0.0%
[libx264 @ 0000018a4fa5ab40] i16 v,h,dc,p: 0% 0% 95% 5%
[libx264 @ 0000018a4fa5ab40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 4% 3% 62% 6% 5% 5% 5% 5% 5%
[libx264 @ 0000018a4fa5ab40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 3% 33% 11% 10% 10% 10% 9% 8%
[libx264 @ 0000018a4fa5ab40] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0000018a4fa5ab40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000018a4fa5ab40] ref P L0: 50.0% 0.0% 50.0%
[libx264 @ 0000018a4fa5ab40] kb/s:9542.61

Change History (3)

comment:1 by Michael Koch, 18 months ago

Summary: FFmpef fails to convert a SER fileFFmpeg fails to convert a SER file

comment:2 by Elon Musk, 18 months ago

Resolution: fixed
Status: newclosed

comment:3 by Carl Eugen Hoyos, 18 months ago

Component: undeterminedavformat
Keywords: ser added
Note: See TracTickets for help on using tickets.