Page 1 of 1

Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 16 May 2019 11:07
by arnoldchan
First of all, I appreciated for your help.

I am having difficulties on playing video via command line, with video filters applied.
I need to make this work on Raspberry Pi Stretch.

The VLC version that I am using is 3.0.6.

The command that I'm using is:

Code: Select all

vlc my_video.mp4 --video-filter=croppadd --croppadd-cropleft=150
Here are the scenarios I have tried:

1. The command works perfectly on Windows command line, but not Mac and Raspberry Pi. If i execute the above on Mac and Raspberry Pi command line, the video plays, but no video filter were applied.
(There

2. It works if I apply the filter via GUI on all Raspberry Pi, Mac and Windows (Tools > Effects and Filters > Video Effects > Crop)

3. On Raspberry Pi, I have tried on devices with or without MPEG-2 license[url]http://www.raspberrypi.com/mpeg-2-license-key/[/url] (installed)

4. Tried to disable hardware acceleration on Raspberry Pi, no luck again

Code: Select all

vlc my_video.mp4 --video-filter=croppadd --croppadd-cropleft=150 --avcodec-hw=none
I believe it is a bug of version 3.0.6 on Raspberry Pi and Mac?
Do you have any idea? Again, I appreciate your input.

Thanks
Arnold

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 17 May 2019 11:57
by Jean-Baptiste Kempf
--codec avcodec,none

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 17 May 2019 12:34
by arnoldchan
--codec avcodec,none
Thank you Jean-Baptiste Kempf, you have saved me. I have been looking for solution for more than a week.

I am posting a full syntax here, in case any of you are facing the same problem.

Code: Select all

vlc my_video.mp4 --video-filter=croppadd --croppadd-cropleft=150 --codec avcodec,none

The above solution should also work for the 'adjust' video filter, for example:

Code: Select all

vlc my_video.mp4 --video-filter=adjust --hue=120 --codec avcodec,none

Arnold

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 24 May 2019 05:28
by arnoldchan
--codec avcodec,none
Hi Jean-Baptiste Kempf,

Although the solution able to crop the video via command line mode, I've found the output is quite lag compare to the original video.
Again, this lag problem doesn't happen when I use VLC GUI application, just happen when I am using command line mode.

Do you have any solution? Thanks

Arnold

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 03 Jun 2019 09:32
by Jean-Baptiste Kempf
Sure, software decoding is slow.

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 03 Jun 2019 09:35
by arnoldchan
But why the problem doesn't seem to be happen on GUI mode ?

Do you know if the problem can be solved by purchasing MPEG-2 hardware decode license of raspberry Pi?

Thanks

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 30 Jun 2019 18:40
by WinnieW
The patents for MPEG-2 video expired last year.
Decoding of video in MPEG-2 should be free of charge (in hardware) now.

Re: Fail to apply video filter from command line on Raspberry Pi and Mac (VLC 3.0.6)

Posted: 01 Jul 2019 19:14
by calanor
A raspberry pi 3+ with 4 cores to 1.5Ghz should be capable to decode mpeg2 by software.
Actually, omx without license or vlc play mpeg2 videos with many problems. The only one capable of plalying mpeg2 by software without problems is kodi with the modified version of omx player.