Giter Club home page Giter Club logo

Comments (11)

TheOpponent avatar TheOpponent commented on July 29, 2024

This is an error with the encoding process. Ensure that your gpu_mem is set to 128 or greater.

from mr-otcs.

Silvernox avatar Silvernox commented on July 29, 2024

Thanks. I have set this in /boot/config.txt to 256, and rebooted. Same error message is appearing.

I’ve just noticed there’s nothing inside the opt directory. So somethings gone wrong somewhere.

from mr-otcs.

TheOpponent avatar TheOpponent commented on July 29, 2024

The ffmpeg-hls-pts-discontinuity-reclock compiling process likely failed. What compile flags were set when it was compiled?

from mr-otcs.

Silvernox avatar Silvernox commented on July 29, 2024

cd ~ && git clone --depth 1 https://github.com/jjustman/ffmpeg-hls-pts-discontinuity-reclock.git
&& cd ~/ffmpeg-hls-pts-discontinuity-reclock
&& ./configure
--extra-cflags="-I/usr/local/include"
--extra-ldflags="-L/usr/local/lib"
--extra-libs="-lpthread -lm -latomic"
--arch=armel
--enable-gmp
--enable-gpl
--enable-libaom
--enable-libass
--enable-libdrm
--enable-libfdk-aac
--enable-libfreetype
--enable-libkvazaar
--enable-libmp3lame
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libopus
--enable-librtmp
--enable-libsnappy
--enable-libsoxr
--enable-libssh
--enable-libvorbis
--enable-libvpx
--enable-libzimg
--enable-libwebp
--enable-libx264
--enable-libx265
--enable-libxml2
--enable-mmal
--enable-nonfree
--enable-omx
--enable-omx-rpi
--enable-version3
--target-os=linux
--enable-pthreads
--enable-openssl
--enable-hardcoded-tables
&& make -j$(nproc)
&& sudo make install

from mr-otcs.

TheOpponent avatar TheOpponent commented on July 29, 2024

If the entirety of /opt/vc is missing, it may be possible to restore the needed files by installing libraspberrypi-bin with apt.

Additionally, --enable-librtmp will need to be changed to --disable-librtmp as librtmp itself will not work with this project.

from mr-otcs.

Silvernox avatar Silvernox commented on July 29, 2024

Still nothing there after an reinstalling libraspberrypi-bin, so I don’t know if it’s putting it somewhere else.

I think I’m going to scrap this and start from scratch again. I have Raspbian Bullseye on this now, the 64 bit version, would it be better to just get a copy of the lite version? Thanks!

from mr-otcs.

TheOpponent avatar TheOpponent commented on July 29, 2024

The instance running OTCS is based on Raspbian OS Lite Buster 32-bit. The only adjustment made prior to installation was to set gpu_mem to 256. Searching for similar errors to this issue returned reports of other users needing to reinstall the Raspberry Pi firmware package, so I believed it would have corrected it here. I have not tested other versions of Raspbian OS, but I believe there should be no issues with a clean installation of any recent version. Good luck.

from mr-otcs.

Silvernox avatar Silvernox commented on July 29, 2024

The /opt/vc directory has been restored after running rpi-update.

This broadcom.video_encode, if im getting an error with this, does it point towards there being a problem during compile time for ffmpeg? Thanks.

Press [q] to stop, [?] for help
[NULL @ 0x39afaa0] Failed to parse extradata
[h264_omx @ 0x39c41c0] Using OMX.broadcom.video_encode
[h264_omx @ 0x39c41c0] OMX_GetHandle(OMX.broadcom.video_encode) failed: 800010
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heig
Conversion failed!

from mr-otcs.

TheOpponent avatar TheOpponent commented on July 29, 2024

If you're still getting errors about extradata, it could be an issue with the video you're trying to transcode. What is the nature of the source video?

from mr-otcs.

Silvernox avatar Silvernox commented on July 29, 2024

The video I'm testing with is a mkv file. I'll find some other formats and see if they're the same.
Edit - for mp4 it says this

Press [q] to stop, [?] for help
[h264_omx @ 0x24d9310] Using OMX.broadcom.video_encode
[h264_omx @ 0x24d9310] OMX_GetHandle(OMX.broadcom.video_encode) failed: 80001005
Error initializing output stream 0:0 -- Error while opening encoder for output s tream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

different code

from mr-otcs.

TheOpponent avatar TheOpponent commented on July 29, 2024

This is due to the use of the h264_omx codec in Raspberry Pi OS Bullseye. To resolve this, the codec must be changed to h264_v4l2m2m. However, in version 1.x, this requires the script to be edited to use a newer version of ffmpeg alongside the RTMP encoder, which is the default configuration in version 2.0.

from mr-otcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.