Command line video player (S805)

Moderators: mdrjr, odroid

Re: Command line video player (S805)

Unread postby crashoverride » Fri Mar 24, 2017 3:23 am

alabama wrote:I've seen that in README you say the supported containers: MKV, AVI, MP4 have been tested.
Do you support TS ? I've tested 1 .ts clips and worked OK. Shoudn't be supported all the formats supported by libavformat ?

TS (MPEG Transport Stream) is a streaming container format (there is no "start" or "end" to a TS). I have tested various TS files and all worked. Any container format supported by libavformat should also work. However, sometimes, adjustments are required:
Special handling for AVI: https://github.com/OtherCrashOverride/c2play/blob/master/src/Media/MediaSourceElement.cpp#L134
Special consideration for TS: https://github.com/OtherCrashOverride/c2play/blob/master/src/Media/MediaSourceElement.cpp#L429

"Unsupported" does not imply that a particular format will not work; rather, the user may require special options for correct operation:
https://github.com/OtherCrashOverride/c2play/blob/066f196bb8f8c0959e9f41ffbf575b7ad7ffed63/src/main.cpp#L203

Streaming containers (like TS) have too many external factors to adequately test such as dropped/damaged payload. Therefore, these containers will not be on the "supported" list: a damaged TS stream is considered "normal", but a damaged MKV/AVI/MP4 is not.
crashoverride
 
Posts: 4023
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Command line video player (S805)

Unread postby alabama » Fri Mar 24, 2017 6:51 pm

OK understood.
Thanks for your explanations and for this nice player.
alabama
 
Posts: 15
Joined: Wed Mar 22, 2017 12:27 am
languages_spoken: english
ODROIDs: 2x Odroid C1+
2x Odroid C2

Re: Command line video player (S805)

Unread postby gseaman » Sun Mar 26, 2017 11:18 am

I've got a newly built meveric debian install in my c1+, with a mate desktop. I went through all of the steps that got c2play to work last time. But, I cannot make it work a second time. ;)

Code: Select all
odroid@odroid-jessie:~$ c2play-x11 *.mp4
added device: /dev/input/event2
added device: /dev/input/event1
added device: /dev/input/mouse0
added device: /dev/input/event0
added device: /dev/input/mice
Device: /dev/input/event2
   bustype=3, vendor=1133, product=50475, version=273
   name=Logitech Unifying Device. Wireless PID:4016
InputDevice entering running state.
Device: /dev/input/event1
   bustype=3, vendor=1133, product=50475, version=273
   name=Logitech Unifying Device. Wireless PID:401b
InputDevice entering running state.
Logitech Unifying Device. Wireless PID:4016: KeyReleased 28 (0x1c)
Device: /dev/input/mouse0
EVIOCGBIT failed.
Device: /dev/input/event0
   bustype=16, vendor=7054, product=3308, version=1
   name=cec_input
InputDevice entering running state.
Device: /dev/input/mice
EVIOCGBIT failed.

Using input device: Logitech Unifying Device. Wireless PID:4016
Using input device: Logitech Unifying Device. Wireless PID:401b
Using input device: cec_input
X11Window: width=1600, height=900


EGL: major=1, minor=4
EGL: Vendor=ARM
EGL: Version=1.4 Linux-r6p2-01rel0
EGL: ClientAPIs=OpenGL_ES
EGL: Extensions=EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_swap_buffers_with_damage EGL_EXT_swap_buffers_with_damage EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness EGL_ANDROID_blob_cache EGL_KHR_create_context EGL_KHR_partial_update EGL_KHR_create_context_no_error
EGL: ClientExtensions=EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_platform_x11

X11Window: xwin = 12582914
Source Metadata:
   key=major_brand, value=isom
   key=minor_version, value=512
   key=compatible_brands, value=isomiso2avc1mp41
   key=encoder, value=Lavf57.44.100
Duration: 2497.813000
Streams (count=2):
stream #0 - VIDEO/H264
   w=720 h=404 fps=23.976025(191632000/7992651) SAR=(0/1)
stream #1 - AUDIO/AAC
AmlCodec open failed.
Element Element destructed.
terminate called after throwing an instance of 'Exception'











Aborted
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$
odroid@odroid-jessie:~$ ^C


I left the last few lines just to point out that the program sends out carriage returns until I interrupt them with ctrl-C.
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Re: Command line video player (S805)

Unread postby crashoverride » Sun Mar 26, 2017 12:26 pm

Code: Select all
AmlCodec open failed.

Ensure your user has permissions to use the video codec device "/dev/amstream_vbuf" (or try sudo).
crashoverride
 
Posts: 4023
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Command line video player (S805)

Unread postby gseaman » Sun Mar 26, 2017 12:38 pm

I don't have "/dev/amstream_vbuf". Looking back through these posts, this was fixed by a kernel upgrade, but I've done all the upgrades. Not sure what happened.

I'll go back to meveric's thread and see if another kernel update is needed.
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Re: Command line video player (S805)

Unread postby gseaman » Mon Mar 27, 2017 2:53 am

Ok, new kernel is available with amstream_vbuf. It works!
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Re: Command line video player (S805)

Unread postby gseaman » Mon Mar 27, 2017 3:02 am

Just curious, where is the correct place to set /dev/input/event*, /dev/input/mouse0, /dev/input/mice, /dev/fb0, and /dev/am* to rw? It seems that some of the devices are not present to be set in rc.local.
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Re: Command line video player (S805)

Unread postby gseaman » Mon Mar 27, 2017 12:22 pm

Meveric answered this in another thread, saying that adding my user to the input and video groups will correct most of these. The /dev/am* has to be in /etc/rc.local just as you instructed.

I have one last question, then everything works for me. I've set caja to open *.mp4 files with 'c2play-x11 %f' and I can just click to watch a video. However, the mouse cursor remains frozen on top of the video.

Thanks for this awesome application.
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Re: Command line video player (S805)

Unread postby crashoverride » Thu Mar 30, 2017 9:04 am

gseaman wrote:However, the mouse cursor remains frozen on top of the video.

As a work-around, you can probably use something like "unclutter".
http://manpages.ubuntu.com/manpages/yakkety/man1/unclutter.1.html
unclutter removes the cursor image from the screen so that it does not
obstruct the area you are looking at after it has not moved for a given
time.
crashoverride
 
Posts: 4023
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Command line video player (S805)

Unread postby gseaman » Thu Mar 30, 2017 9:25 am

crashoverride wrote:
gseaman wrote:However, the mouse cursor remains frozen on top of the video.

As a work-around, you can probably use something like "unclutter".
http://manpages.ubuntu.com/manpages/yakkety/man1/unclutter.1.html
unclutter removes the cursor image from the screen so that it does not
obstruct the area you are looking at after it has not moved for a given
time.


Excellent! That's what I need.
gseaman
 
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
Location: WA, USA
languages_spoken: english
ODROIDs: c1+

Previous

Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest