-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update video.c #475
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
Update video.c #475
Conversation
Remove the timout, to avoid the application quits before the ending of some videos. (Application used to hang before last commit, now it quits, either, the only way to watch some video files till the end is to remove timeout completely like I am suggesting now, or to incrase it, but I dont now what should be better pratice.
Can you provide a sample file that fails without this change? |
Hello PopcornmIX. Old video.c used to hang forever with this video. So I wonder if -1 may be better choice for very long videos... I have tested videos up to 5 minutes so far... https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=79868&p=819730#p819730 Ps. Many people suggest to just use omxplayer. But Hello_video seamless transitions between a list of files is essential for a video art presentation. Thank you! |
That timeout shouldn't be related to the duration of the video, only the amount of data queued by openmax. I think there is around 1M-2M buffered in codein (for cabac/cavlc), plus the openmax buffers (20 x 80K = 1.6M I think). So, with a bit of margin for error, try with 500000. If that works for all your files, then adjust the PR and I'll be okay to accept it. Even if something goes wrong and we don't get the EOS signal, then rather than hanging forever (which the -1 will do), it will just hang for half a second. |
EDIT: ignore previous comment. So leave it as -1 for now. We'll deal with the issue if and when it occurs if we get videos hanging because of this. |
kernel: add smsc95xx packetsize module param kernel: config: Enabled IPV6_SUBTREES See: raspberrypi/linux#1370 kernel: reboot: Use power off rather than busy spinning when halt is requested firmware: arm_loader: Strip comments after dtoverlay and dtparam See: http://forum.kodi.tv/showthread.php?tid=250817&pid=2298996#pid2298996 firmware: dtoverlay: Allow aliases to be used with target-path firmware: dtoverlay: Support disabled (__dormant__) fragments firmware: dtoverlay: Multiple overlay instances firmware: host_applications: Add dtmerge application See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732 firmware: clock: Make clock logging less spammy. Can be enabled by host firmware: config: Remove unsupported config options firmware: Fix typos in comments See: raspberrypi/userland#299 firmware: hello_video: Remove the timout, to avoid the application quits before the ending of some videos See: #475
kernel: add smsc95xx packetsize module param kernel: config: Enabled IPV6_SUBTREES See: raspberrypi/linux#1370 kernel: reboot: Use power off rather than busy spinning when halt is requested firmware: arm_loader: Strip comments after dtoverlay and dtparam See: http://forum.kodi.tv/showthread.php?tid=250817&pid=2298996#pid2298996 firmware: dtoverlay: Allow aliases to be used with target-path firmware: dtoverlay: Support disabled (__dormant__) fragments firmware: dtoverlay: Multiple overlay instances firmware: host_applications: Add dtmerge application See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732 firmware: clock: Make clock logging less spammy. Can be enabled by host firmware: config: Remove unsupported config options firmware: Fix typos in comments See: raspberrypi/userland#299 firmware: hello_video: Remove the timout, to avoid the application quits before the ending of some videos See: raspberrypi/firmware#475
… the ending of some videos See: raspberrypi/firmware#475
This has now been merged. |
kernel: add smsc95xx packetsize module param kernel: config: Enabled IPV6_SUBTREES See: raspberrypi/linux#1370 kernel: reboot: Use power off rather than busy spinning when halt is requested firmware: arm_loader: Strip comments after dtoverlay and dtparam See: http://forum.kodi.tv/showthread.php?tid=250817&pid=2298996#pid2298996 firmware: dtoverlay: Allow aliases to be used with target-path firmware: dtoverlay: Support disabled (__dormant__) fragments firmware: dtoverlay: Multiple overlay instances firmware: host_applications: Add dtmerge application See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732 firmware: clock: Make clock logging less spammy. Can be enabled by host firmware: config: Remove unsupported config options firmware: Fix typos in comments See: raspberrypi/userland#299 firmware: hello_video: Remove the timout, to avoid the application quits before the ending of some videos See: raspberrypi#475
kernel: add smsc95xx packetsize module param kernel: config: Enabled IPV6_SUBTREES See: raspberrypi/linux#1370 kernel: reboot: Use power off rather than busy spinning when halt is requested firmware: arm_loader: Strip comments after dtoverlay and dtparam See: http://forum.kodi.tv/showthread.php?tid=250817&pid=2298996#pid2298996 firmware: dtoverlay: Allow aliases to be used with target-path firmware: dtoverlay: Support disabled (__dormant__) fragments firmware: dtoverlay: Multiple overlay instances firmware: host_applications: Add dtmerge application See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732 firmware: clock: Make clock logging less spammy. Can be enabled by host firmware: config: Remove unsupported config options firmware: Fix typos in comments See: raspberrypi/userland#299 firmware: hello_video: Remove the timout, to avoid the application quits before the ending of some videos See: raspberrypi#475
Remove the timout, to avoid the application quits before the ending of some videos.
(Application used to hang before last commit, now it quits, either, the only way to watch some video files till the end is to remove timeout completely like I am suggesting now, or to incrase it, but I dont now what should be better pratice.