Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with input audio and video files #7

Open
mpisat opened this issue Jan 27, 2023 · 3 comments
Open

problems with input audio and video files #7

mpisat opened this issue Jan 27, 2023 · 3 comments

Comments

@mpisat
Copy link

mpisat commented Jan 27, 2023

When I try .h264 video file and .opus audio, it crashes.
test video works, but not always, somehow Wowza don't like it. On the other hand Pion seems to like it as it worked well with https://github.com/Glimesh/broadcast-box

Is there any other way to use it? I'm on Debian 10 and would like to use it to stress test Wowza server with WebRTC (via WHIP)

@mpisat
Copy link
Author

mpisat commented Jan 31, 2023

I tried v4l option, where I published rawvideo from ffmpeg to v4l dummy adapter, but I can't do so for audio and with bad opus audio (Wowza don't like it), video publish is still unplayable in Wowza.

@mpisat
Copy link
Author

mpisat commented Feb 1, 2023

mkfifo video
mkfifo audio

ffmpeg4 -y -re -stream_loop -1 -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:v copy -an -f rawvideo video
ffmpeg4 -y -re -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:a copy -f s16le audio

and then

whip-go -a audio -t "murathai" -v video -vc h264 -b 2500000 https://sg.karsiyaka.com/api/whip (Glimesh/Broadcast-box)

It can't play video.

if I use test for audio and test for video, it works somehow, but it is not accepted by Wowza (but accepted by glimesh/broadcast-box)

@mpisat
Copy link
Author

mpisat commented Feb 1, 2023

On the other hand, the following works just fine on glimesh/broadcast-box

ffmpeg4 -y -re -f lavfi -i testsrc2=s=1280x720:r=30 -f rawvideo video
ffmpeg4 -y -re -f lavfi -i sine=r=44100 -f s16le audio

but not this one:
ffmpeg4 -y -re -stream_loop -1 -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:v libx264 -b:v 1200k -x264-params "nal-hrd=cbr" -bufsize 1500k -preset veryfast -r 30 -tune zerolatency -g 30 -keyint_min 30 -an -f flv video
ffmpeg4 -y -re -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:a libopus -strict experimental -f opus audio

or this one:

ffmpeg4 -y -re -stream_loop -1 -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:v copy -an -f rawvideo video
ffmpeg4 -y -re -i /root/bbb/bbb_720p_2.5mbps_aac.mp4 -c:a copy -f s16le audio

ffmpeg version 4.4-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant