Geektoolkit / Dynaframe3

Dynamic Photo and Video Slideshow system for SBC (such as Raspberry pi)
204 stars 38 forks source link

VLC Player Discussion #56

Closed qwksilver closed 3 years ago

qwksilver commented 3 years ago

ok on pc so far this command will run the first 14 seconds of a video, and then quit vlc --run-time 14 --stop-time=14 vlc://quit

i know there are commands for orientation of player, video, fullscreen no borders, and zoom modes i'll tinker more in a bit

qwksilver commented 3 years ago

reference locations: https://wiki.videolan.org/VLC_command-line_help/

vlc --start-time=14 --stop-time=28 --fullscreen --video-filter "rotate{angle=0}" vlc://quit

this has 2/3 of the desired functions and 1 bonus of starting outside frame 1, however the video will stutter at the beginning if it's not exactly on an i frame.

Geektoolkit commented 3 years ago

If you get a chance can you let me know how performance is of VLC on a pi3/4. I may try to switch over to it. I also am thinking of having an advanced tab with "additional command line options" and then that'd unleash all of the command line power for someone to use. VLC could also enable stuff like being able to view security cameras (RTSP) and widen the file formats greatly.

My main setup will be down for a few days while my office is rebuilt. Hoping to get back online as soon as I can

qwksilver commented 3 years ago

the command on pi is clvc to run without interface, i'm going though a tutorial below to fully update pi and vlc. https://pimylifeup.com/raspberry-pi-vlc/

cvlc hcd.mp4 --stop-time=14 --fullscreen --video-filter "rotate{angle=90}" vlc://quit results in this output(about 14 seconds worth of frames worth) mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(BGRA): ENOMEM mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(BGRA)(0xa52c3410) (ENOMEM) [a52d7070] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(BGRA) (status=1 ENOMEM)

this command plays on 4, and not on 3a pi@raspberrypi:~/Pictures/Video $ cvlc hcd.mp4 --stop-time=14 --fullscreen vlc://quit

3a errors VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72) [000cb428] dummy interface: using the dummy interface module... [73579a48] mmal_codec decoder: VCSM init succeeded: Legacy [73579a48] mmal_codec decoder error: MMAL error 9 "ECORRUPT" [73579a48] mmal_codec decoder error: MMAL error reported by ctrl [73579a48] main decoder error: buffer deadlock prevented

so it can play and stop/exit without issue without rotation it won't use system rotation settings. and enabling the rotation starts that mmal error

and not gonna fiddle anymore tonight

Geektoolkit commented 3 years ago

I see this discussion on it: https://github.com/raspberrypi/linux/issues/3095. When using the UI, right when I click 'transform" I get a blank screen. Using "cvlc Terminator.mov --stop-time=14 --fullscreen :vout-filter=transform --transform-type=270 --video-filter "transform{true}" I get the MMAL errors (This is on a pi4)

_[b26c6f18] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL) mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL mmal: mmal_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xb26a7430) (EINVAL) [b26c6f18] mmal_codec filter error: Failed to enable output port vc.ril.hvs:out:0(OPQV) (status=3 EINVAL) mmal: mmal_vc_port_enable: failed to enable port vc.ril.hvs:out:0(OPQV): EINVAL mmal: mmal_portenable: failed to enable port vc.ril.hvs:out:0(OPQV)(0xb26a7430) (EINVAL)

EINVAL looks idfferent than ECORRUPT and ENOMEM so I think we're hitting differnet issues. But...we know it's not a simple command line swap now, which while dissapointing, is at least info we can use. This and my experience with VP8 makes me question if we should keep fighting this path, or just say 'convert your webm over to mp4 for this". I even thought about just including a converter and trying to do it in the background...so if it saw a webm it would create a proxy. but once Dynaframe starts writing files, things can get hairy (Say someone has a NAS full of WebM and all of the sudden DF is trying to keep up and is writing files..somewhere...(back ot the NAS? to an internal storate on the SD card? what if it fills it? etc)

Just stuff to think about. I've played full screen gifs with a different app that we can look at to support those...I'm not sure how popular 1080p gifs are though.

qwksilver commented 3 years ago

Nothing either of us can find indicates that VLC is currently viable, I think you mentioned an open ticket to expand support in omxplayer.

Tabling this issue to work on more important things, I'll reopen if I find any better information.