-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When trying to run bag_to_file on a topic containing hvec encoded data I see the following:
root@marks:/# ros2 run ffmpeg_image_transport_tools bag_to_file -t /camera/image_raw/ffmpeg -b /rosbag2_2025_08_14-10_56_05 -r 20
opening bag: /rosbag2_2025_08_14-10_56_05
topic: /camera/image_raw/ffmpeg
writing to raw file: video.mp4.h264
messages processed: 156
total time for processing: 0.004947
ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
[h264 @ 0x64e61ff15c80] Format h264 detected only with low score of 1, misdetection possible!
[h264 @ 0x64e61ff16ac0] SEI type 1 size 48 truncated at 1
[h264 @ 0x64e61ff16ac0] missing picture in access unit with size 4803
[h264 @ 0x64e61ff16ac0] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0x64e61ff16ac0] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. ([email protected])
[h264 @ 0x64e61ff16ac0] no frame!
[h264 @ 0x64e61ff16ac0] SEI type 1 size 48 truncated at 1
[h264 @ 0x64e61ff16ac0] missing picture in access unit with size 4800
[h264 @ 0x64e61ff16ac0] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0x64e61ff16ac0] If you want to help, upload a sample of this file to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. ([email protected])
[h264 @ 0x64e61ff16ac0] no frame!
[h264 @ 0x64e61ff16ac0] SEI type 1 size 48 truncated at 1
[h264 @ 0x64e61ff16ac0] missing picture in access unit with size 4791
I think that this is purely down to the fixed .h264 file ending, which gets applied to any encoded data. If I manually save the topic's data into a .hvec file ending ffmpeg is able to decode as expected.
Metadata
Metadata
Assignees
Labels
No labels