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

Broadcast failure. It is impossible to play a video file on live. #556

Open
C0la149 opened this issue Mar 3, 2024 · 28 comments
Open

Broadcast failure. It is impossible to play a video file on live. #556

C0la149 opened this issue Mar 3, 2024 · 28 comments

Comments

@C0la149
Copy link

C0la149 commented Mar 3, 2024

ffplayout cannot play the video file properly. Writes this.
изображение
изображение
изображение
изображение
изображение

@C0la149 C0la149 changed the title Broadcast failure. It is impossible to play a video file on air. Broadcast failure. It is impossible to play a video file on live. Mar 3, 2024
@jb-alvarado
Copy link
Member

Maybe the file has some issues? Can you play it normal with ffplay?

@C0la149
Copy link
Author

C0la149 commented Mar 4, 2024

Everything is fine with the file, it also cannot play other files. And what does it mean to lose using ffplay?
@jb-alvarado
I would continue this topic, but I’m wondering how we can raise ffplayout. It's broken for me.
#557

@jb-alvarado
Copy link
Member

And what does it mean to lose using ffplay?

ffplay is a command line player which comes with ffmpeg. When the file can be played there (completely) the chance is high, that ffmpeg and so also ffplayout can handle it.

Beside that it would be helpful, when you provide more logging informations. But please as text in a code block, not as a screenshot. Code blocks starts and end with: ```

@C0la149
Copy link
Author

C0la149 commented Mar 4, 2024

How can I play this file using ffplay?
@jb-alvarado

@C0la149
Copy link
Author

C0la149 commented Mar 4, 2024

@jb-alvarado
I tried something. It seems like it

root@ColaServer:/Video/Torrent# ffplay Artur.I.Miniputy.2007.RUS.BDRip.XviD.AC3.-HQ-ViDEO.avi
ffplay version 5.1.4-0+deb12u1 Copyright (c) 2003-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
pci id for fd 15: 1234:1111, driver (null)
MESA-LOADER: failed to open bochs-drm: /usr/lib/dri/bochs-drm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: bochs-drm
pci id for fd 16: 1234:1111, driver (null)
kmsro: driver missing
Failed to create window or renderer: EGL not initialized
root@ColaServer:/Video/Torrent#

@jb-alvarado
Copy link
Member

jb-alvarado commented Mar 4, 2024

Just run: ffplay /path/to/file.avi, but must be local, not on your server. There is also some shortcuts you can use.

If you have to test the file remote, you could run something like: ffmpeg -i file.avi -c:v libx264 -preset veryfast -f null -

@C0la149
Copy link
Author

C0la149 commented Mar 4, 2024

@C0la149
Copy link
Author

C0la149 commented Mar 4, 2024

What can you say?
@jb-alvarado

@C0la149
Copy link
Author

C0la149 commented Mar 5, 2024

@jb-alvarado
filevideo.txt
I also noticed another file that ffplayout could not play. Here I present it to you.

@C0la149
Copy link
Author

C0la149 commented Mar 6, 2024

@jb-alvarado What can you say about this? What should I do in my case?

@jb-alvarado
Copy link
Member

When is only some files that are not playing, then the best is to try to recompress in a new format, when they are not to corrupt.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

@jb-alvarado So these files are normal. Not damaged. But not every file can be converted to a different format...

@jb-alvarado
Copy link
Member

ffplayout just needs files that ffmpeg can handle. ffmpeg with all its libraries can handle a lot of formats and codec.

You can try this files: https://github.com/ffplayout/ffplayout/tree/master/tests/assets/media_sorted

When playout works with this ones, the chance is high that something is wrong with your files, or you ffmpeg version.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

I'll actually check your files. But how can my files be broken? If I downloaded them from the server to my main laptop and everything opens fine from the laptop.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

@jb-alvarado I can give you these files for testing.

@jb-alvarado
Copy link
Member

Maybe they have an old codec, or little errors that a not come up on playing. I really don't know.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

@jb-alvarado I can give you the files to test. So you can make sure that they don't work.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

Should I give you these files? @jb-alvarado

@jb-alvarado
Copy link
Member

Sorry, I don't have the capacity for that kind of support. When other files are working, then is not an ffplayout issue. You can compress that file in a h264/mp4 and test again. Then you will see, it that was the case.

@C0la149
Copy link
Author

C0la149 commented Mar 7, 2024

Yes, even if I do compression. What will this change? Not all files are compressed this way every time. Come up with something, or fix it in an update. I have no more options. Think about it somehow. Yes, even I will check the files a little later that were not played in ffplayout By ffmpeg. And I’ll try to run the file on air for a test. And I'll record it on video. @jb-alvarado

@jb-alvarado
Copy link
Member

jb-alvarado commented Mar 7, 2024

I have tried to explain this to you, there is not much I can do, there are no updates from ffplayout. I develop ffplayout and not ffmpeg. ffplayout uses ffmpeg to decode and encode and if ffmpeg can't read a file properly, it looks bad. I also have files from 2013 that have defects, sometimes I'm lucky and they still play, with artifacts and others it crashes.

I also don't think you need to recompress all the files, but maybe some of them do.

There are various tools on the internet to check the videos, e.g.: https://github.com/nhershy/CorruptVideoFileInspector
Just give it a try.

I have ask also 3 days ago for the log file from ffplayout, maybe we miss something there.

@C0la149
Copy link
Author

C0la149 commented Mar 8, 2024

@jb-alvarado
Where can I find the ffplayout log file? I also provide you with a record that everything is working correctly with ffmpeg. Of course, ChatGPT helped me, but still.

bandicam.2024-03-08.21-43-32-082.mp4

ffmpeg -re -i Bleyd.1998.BDRip.DVO-TV1000.avi -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -strict experimental -f flv

Perhaps he started using other codes. But why don’t you add this too?

изображение
изображение

@C0la149
Copy link
Author

C0la149 commented Mar 8, 2024

I just checked another file. There's no sound there. Right now I’m downloading the file from the server to make sure that everything is okay with it.
@jb-alvarado

bandicam.2024-03-08.22-07-47-650.mp4

@C0la149
Copy link
Author

C0la149 commented Mar 8, 2024

@jb-alvarado

bandicam.2024-03-08.22-14-17-075.mp4

I just downloaded a file from the server. And I checked it on my laptop, there is sound. The file is not broken.

@jb-alvarado
Copy link
Member

@jb-alvarado Where can I find the ffplayout log file?

Is under /var/log/ffplayout need to be that file where the error exists.

You can also post you config again.

@C0la149
Copy link
Author

C0la149 commented Mar 10, 2024

ffplayout.log

@C0la149
Copy link
Author

C0la149 commented Mar 10, 2024

@jb-alvarado

@jb-alvarado
Copy link
Member

You don't need to add my name to every post.

The content of the log says not much, only the end is interesting, but then there is more logging missing.

The message: Failed to spawn ffmpeg/ffprobe. stream did not contain valid UTF-8 can be understand in that way, the the first part Failed to spawn ffmpeg/ffprobe comes from ffplayout, which says that it can not start the ffmpeg process, because of the second part stream did not contain valid UTF-8 which says that something is not right with the file. Maybe the metadata has issues, or filename, or there is a bad subtitle.

For the future please also pay attention to the contribution guideline.

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

2 participants