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

*nix specific usage questions
arnoldchan
New Cone
New Cone
Posts: 5
Joined: 16 May 2019 10:09

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

Postby arnoldchan » 16 May 2019 11:07

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 17 May 2019 11:57

--codec avcodec,none
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

arnoldchan
New Cone
New Cone
Posts: 5
Joined: 16 May 2019 10:09

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

Postby arnoldchan » 17 May 2019 12:34

--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

arnoldchan
New Cone
New Cone
Posts: 5
Joined: 16 May 2019 10:09

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

Postby arnoldchan » 24 May 2019 05:28

--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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 03 Jun 2019 09:32

Sure, software decoding is slow.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

arnoldchan
New Cone
New Cone
Posts: 5
Joined: 16 May 2019 10:09

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

Postby arnoldchan » 03 Jun 2019 09:35

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

WinnieW
Blank Cone
Blank Cone
Posts: 12
Joined: 16 Jul 2011 01:06

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

Postby WinnieW » 30 Jun 2019 18:40

The patents for MPEG-2 video expired last year.
Decoding of video in MPEG-2 should be free of charge (in hardware) now.

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

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

Postby calanor » 01 Jul 2019 19:14

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.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests