VLC in Raspberry Pi won't play h264 video file - raspberry-pi

I installed the latest version of vlc on my Raspberry Pi 2 today with sudo apt-get install vlc, which worked just fine. However, when I try to play my video.h264 file using it, it only plays the first frame of the video and then it stops. I started vlc from terminal by using vlc video.h264 and this is the error message I got:
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x1868f0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[h264 # 0x1cbcd60] max_analyze_duration reached
[h264 # 0x1cbcd60] Estimating duration from bitrate, this may be innacurate
[0x1df8378] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_) PCR !
[0x1dd4f40] xcb_xv vout display error: no available XVideo adaptor
I have looked up the two error messages on several places but none of them seem to have any useful solutions (they all happen with very different context than mine, usually much more complicated). It seems like a pretty basic fix since all I did was install VLC and try to play my video file. I also tried the same video file on VLC in my Macbook Pro and it works and plays just fine. It just doesn't work on my Raspberry Pi's VLC player. Please help! :)
Thank you!

Related

Raspberry pi pico w unable to import dht module

I was using a dht22 sensor in my raspberry pi pico w board but suddenly I can't anymore
I get the following error when trying to import dht module:
ValueError: incompatible .mpy file
I tried updating the micropython firmware to the latest version but the problem persists.
My DHT22 module is a bit faulty since I connected it backwards the first time, but it was working ok, sometimes it emits a high pitched noise, but after reconnecting it it worked normally, now It emits the sound constantly.
However the error appears regardless of the sensor being connected or not, just by calling "import dht" without any extra code.
The rest of the functions of the board are still working, I can blink the led, drive a relay module, run a web server, all the other functions of my application work normally.
After looking at the files loaded in my board an extra file was present:
dht.mpy
The file had contents from my log function (a function I use to write exceptions to a file)
I have no clue how this happened, but deleting it solved the problem

Issue running BLE sniffer on ESP32 complied with platform IO

here is the problem I'm searching for help for: I've created an example program for testing BLE advertisement using exactly the source found in:
https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLETests/SampleServer.cpp
with a tiny addition of prints to make program progress visual.
When running the single file in Arduino it works perfectly as expected.
However, building it with vscode & platformio with the right setup, the program waits forever.
The right setup means correct board & Arduino platform selections which work perfectly for me for lots of other functionalities (BLE, WiFi, etc).
Following is the line where the program is waiting forever:
Thank you.
The code to run when compiled with VScode PlatfromIO

Flashing image to STM3220g-EVAL board using Trace 32

I have an STM3220g-EVAL board. It doesn't seem to have a preloaded image in it now, as it was used for other purposes.
When I power it on, the display is shown blank.
I dont have a STLINK/V2 hardware. I am using Trace32 and Lauterbach for flashing and debugging the code.
I created a simple C program, created an elf file by using arm-none-eabi-gcc toolchain, and was able to flash it into the STM3220g-EVAL board using a cmm script for stm32 provided in demo folder of Trace32.
What I require is to flash default image for STM3220g-eval using Trace32.
Can someone provide me the link to get the boot image and cmm script to flash the same.
I tried the demonstration builder platform and demonstration firmware provided in the following link
http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250374
As they are providing hex file, I used Trace 32 command data.load.asciihex to load the hex file. When I press go, am getting error( emulation poer fail).
Can somesome provide me the correct cmm script to flash the .hex file to the board.
If I understand you correctly you are trying to flash the "STM3220G-EVAL demonstration firmware" on your STM3220G-EVAL board.
So the hex-file you are talking about is "STM322xG_EVAL_FW_V1.2.0.hex", right?
This hex-file is in Intel HEX file format. (See https://en.wikipedia.org/wiki/Intel_HEX)
To load a file in Intel HEX format, you should use Data.LOAD.IntelHex
So this is how to flash the file in your CPU:
Select your CPU with SYStem.CPU STM32F207IG
Connect to your CPU with SYStem.Up
Prepare flash-programming with DO ~~/demo/arm/flash/stm32f2xx.cmm PREPAREONLY
Arm flash programming with FLASH.ReProgram ALL
Load your Intel Hex file with Data.LOAD.IntelHex STM322xG_EVAL_FW_V1.2.0.hex
Finalize flash programming with FLASH.ReProgram OFF (This will start the actual programming.)
The STM3220 comes with the STLink hardware built in via the USB port. See section 2.20 from here
Version 2 of the ST-LINK, called ST-LINK/V2, is embedded on the board.
This tool allows onboard program loading and debugging of the STM32F
using the JTAG or SWD interface. Third-party debug tools are also
supported by the JTAG (CN14) or Trace (CN13) connectors. To
communicate with the embedded ST-LINK/V2, a specific driver needs to
be installed on your PC. To download and install this driver, refer
to the software and development tools page for the STM32F family
available on www.st.com (the install shield is called
ST-LINK_V2_USBdriver.exe).

Troubles in running STIP (Space-Time Interest Points) in windows

I'v downloaded the windows version of STIP (space-time interest points) named stip-1.1.-winlinux.zip
I'm trying to run it from Matlab using the command:
system('bin\stipdet.exe -f data\walk-simple.avi -o data\walk-simple-stip2.txt');
But I'm getting the following error: "Could not initialize capturing from data\walk-simple.avi... "
It seems that it somehow trying to capture a video from the camera instead of using the input file.
I'm working on windows8 with Matlab 2013a. I already added all the dll's needed in order to run the package. The input file exist, so that certainly not the problem.
Has anyone managed to run in on windows? Any help will be greatly values as I'm quite stuck and really have no idea how to solve it.
Thanks,
Gil.
Install the Xvid codec, not the DivX codec
Installing XVid codecs worked for me.
https://www.xvid.com/download/
Also needs OpenCV 1.0 for correct .dlls
http://opencv.org/downloads.html
try installing DivX video codec .

Flash media live encoder: Command line error on Windows server 2008, GUI works

I'm running Windows Server 2008 with a Blackmagic Decklink card. Everything works fine with the GUI but when I try to start from command line it exits with an unknown error.
Any ideas?
Note: I have the desktop experience enabled.
Looks like a frequent problem that effects many FMLE users. Common suggestions include:
use the absolute latest version of FMLE
update DirectX
update all video and audio-related drivers
remove/rename startup.xml from "[volume]/Users/[user name]/AppData/Roaming/Adobe/Flash Media Live Encoder [version]/" so the program can get clean settings
There is also a small chance that tweaks to common security measures may help, such as disabling Data Execution Protection for all but essential OS files or exclude program directories in your anti-virus software (only if essential, of course!)
I found out what the problem was, apparently if the fmesessions.dat (C:\ProgramData\Adobe\Flash Media Live Encoder 3.2) gets large enough FMLEcmd.exe fails.