sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 67 forks source link

vnc fb record not working #1449

Closed wmstout closed 1 year ago

wmstout commented 3 years ago

Using minimega master, pulled 15 March 2021, on Ubuntu 18.04.05; error may be related to #1258

Commands: vnc record fb vnc stop fb

Noticed .fb file does not grow any larger than 1KB, running file shows:

$ file test.fb test.fb: gzip compressed data

Using rfbplay to convert the image yields (debug output):

./rfbplay -level debug ../../images/test.fb ../../images/test.mp4 2021/03/15 20:18:18 INFO main.go:176: serving recordings from ../../images/test.fb on :9004 2021/03/15 20:18:18 DEBUG main.go:191: transcoding ../../images/test.fb to ../../images/test.mp4 2021/03/15 20:18:18 DEBUG transcode.go:25: args:[-f mjpeg -r 10 -i http://localhost:9004/test.fb ../../images/test.mp4] 2021/03/15 20:18:18 INFO ffmpeg: ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers 2021/03/15 20:18:18 INFO ffmpeg: built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) 2021/03/15 20:18:18 INFO ffmpeg: configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared 2021/03/15 20:18:18 INFO ffmpeg: libavutil 55. 78.100 / 55. 78.100 2021/03/15 20:18:18 INFO ffmpeg: libavcodec 57.107.100 / 57.107.100 2021/03/15 20:18:18 INFO ffmpeg: libavformat 57. 83.100 / 57. 83.100 2021/03/15 20:18:18 INFO ffmpeg: libavdevice 57. 10.100 / 57. 10.100 2021/03/15 20:18:18 INFO ffmpeg: libavfilter 6.107.100 / 6.107.100 2021/03/15 20:18:18 INFO ffmpeg: libavresample 3. 7. 0 / 3. 7. 0 2021/03/15 20:18:18 INFO ffmpeg: libswscale 4. 8.100 / 4. 8.100 2021/03/15 20:18:18 INFO ffmpeg: libswresample 2. 9.100 / 2. 9.100 2021/03/15 20:18:18 INFO ffmpeg: libpostproc 54. 7.100 / 54. 7.100 2021/03/15 20:18:18 ERROR server.go:63: parse offset: time: invalid duration : 2021/03/15 20:18:18 ERROR main.go:93: error decoding recording:unable to decode message type 2021/03/15 20:18:18 INFO ffmpeg: [mjpeg @ 0x561a3ec32d20] No JPEG data found in image 2021/03/15 20:18:18 INFO ffmpeg: [mjpeg @ 0x561a3ec2e900] decoding for stream 0 failed 2021/03/15 20:18:18 INFO ffmpeg: [mjpeg @ 0x561a3ec2e900] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size 2021/03/15 20:18:18 INFO ffmpeg: Consider increasing the value for the 'analyzeduration' and 'probesize' options 2021/03/15 20:18:18 INFO ffmpeg: Input #0, mjpeg, from 'http://localhost:9004/test.fb': 2021/03/15 20:18:18 INFO ffmpeg: Duration: N/A, bitrate: N/A 2021/03/15 20:18:18 INFO ffmpeg: Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 10 tbr, 1200k tbn, 10 tbc 2021/03/15 20:18:18 INFO ffmpeg: Stream mapping: 2021/03/15 20:18:18 INFO ffmpeg: Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) 2021/03/15 20:18:18 INFO ffmpeg: Press [q] to stop, [?] for help 2021/03/15 20:18:18 INFO ffmpeg: [mjpeg @ 0x561a3ec34000] No JPEG data found in image 2021/03/15 20:18:18 INFO ffmpeg: Error while decoding stream #0:0: Invalid data found when processing input 2021/03/15 20:18:18 INFO ffmpeg: Finishing stream 0:0 without any data written to it. 2021/03/15 20:18:18 INFO ffmpeg: Nothing was written into output file 0 (../../images/test.mp4), because at least one of its streams received no packets. 2021/03/15 20:18:18 INFO ffmpeg: frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A 2021/03/15 20:18:18 INFO ffmpeg: video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 2021/03/15 20:18:18 INFO ffmpeg: Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) 2021/03/15 20:18:18 INFO ffmpeg: Conversion failed! 2021/03/15 20:18:18 FATAL main.go:200: exit status 69

mkunz7 commented 3 years ago

Hmm... so the 2.6 release worked for me yesterday on a box, after updating mini it doesn't create valid framebuffer (it does create files > 1kB though), I went back to the old version and it's still not working, I'm not sure what's going on.

jacdavi commented 1 year ago

@aherna want to go ahead and close this now?