Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] libcamera-vid(rpicam-vid) ignore "--segment" flag #638

Closed
arsenicks opened this issue Feb 4, 2024 · 2 comments
Closed

[BUG] libcamera-vid(rpicam-vid) ignore "--segment" flag #638

arsenicks opened this issue Feb 4, 2024 · 2 comments

Comments

@arsenicks
Copy link

arsenicks commented Feb 4, 2024

Describe the bug
Trying to record a X minutes video(using -t X) and want the recording to be split in different segment so I use the "--segment X" flag. The video get recorded but in only one file and it stop after the first segment. The program seems to get the parameter as you will see in the verbose mode but recording doesn't get split and stop at the first part.

No error printed just that the timeout has been reached but it's not the timeout that has been reach but the "segment timeout" it should write the file and start another one according to the documentation: "This option causes the video recording to be split across multiple files where the parameter gives the approximate duration of each file in milliseconds."

Bug report
REMOVED

Additional context
For some reason the bug report tool doesn't report the correct command(the tool show the date fullfilled) so here it is just in case that part could cause any problem:
rpicam-vid -t 100000 --segment 10000 -o "/nfs/riv/riv-pres-$(date +\%Y-\%m-\%d-\%H.\%M)-%04d.mp4" -n --width 1536 --height 864 --tuning-file /usr/share/libcamera/ipa/rpi/vc4/imx708_wide_noir.json --hdr --libav-audio --audio-source alsa --audio-device pseye_cap --codec libav --libav-format mp4 --audio-codec alac -v 2

Thanks

@naushir
Copy link
Collaborator

naushir commented Feb 5, 2024

This is a known issue. There was some bugs in the implementation that had to be reverted (see #580). I've not had time to have a look again at this, but will do soon.

@naushir
Copy link
Collaborator

naushir commented Feb 5, 2024

Closing as a duplicate of #580.

@naushir naushir closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants