[SOLVED] - Video Snaps not Playing
-
i've resolved with this command:
ffmpeg -i input.mp4 -vf format=yuv420p output.mp4
than i re-upload the video inside media/vidoes
-
-
-
@Clyde my video were yuv 4.4.4 and after the conversion they became yuv420p. To check if all was good use the command:
ffprobe -v verbose input.mp4
I've noticed that i still have 2 videos that doesn't work also after the encoding and i'm thinking it could be a VBR video codec issue but i'm not sure...
-
@hyuma Thanks for the information. Yuv444 is a known problem for OMX player. There are at least two scripts to fix that for multiple videos, one by myself and one from @hiulit.
But @wiggy808's videos are already in yuv420p (at least the Ace of Aces video is), so alas, it's not that issue. I'm curious if re-encoding his/her videos will change anything.
Let's stay tuned. :)
-
Wow, good job with the script, @Clyde! I still have 2 mp4 that doesn't work also in yuv420p and i can't understand why... Here you can find the media information of video:
https://paste.ofcode.org/JfKAGPpCB7EJg7vtYkC7Az
if you can tell me why this video doens't work you will be very helpful for me! thanks
-
@hyuma Thanks for the compliment. My script isn't nearly as sophisticated as @hiulit's, but it does its job in the spirit of the Unix Philosophy #1, "make each program do one thing well". 😊
Alas, I can't say much about your media information, as I know next to nothing about video internals. But maybe someone else here can.
That said, did you compare the media data of the non-working videos to that of the working videos? That may give away some clues.
-
yes I've compared and the only difference comes from VBR against CBR... but the videos working as screensaver... only in preview they doesn't work...
-
@hyuma Check if
- You're using
omxplayer
for video previews, should be an Emulationstation setting. - The theme you're using has video preview support and the Gamelist View Style is set to
video
in the Emulationstation UI Settings.
- You're using
-
Just got in gang, thanks for the replies, I'm going to test now and post in a few minutes the results.
-
@mitu yes i have both, but as I said video preview works but not all preview are working and i'm trying to understand why..
-
@hyuma What theme are you using ? If you play the video from the CLi with
omxplayer <video_file>
do you get any errors or the playback is ok ? -
@mitu I tested various theme also with basic theme i had the problem, now I'll try that command to see which error i get. ;)
-
@mitu running from terminal
omxplayer input.mp4
Video codec omx-h264 width 480 height 360 profile 100 fps 29.970030
Audio codec aac channels 2 samplerate 44100 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 480x360@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.12 display:0 layer:0 alpha:255 aspectMode:0I got no error
-
Here's the update.
First tried changing the OMX hardware acceleration ("Other Settings">"Use OMX Player (HW Accelerated)"), same result on or off, video snap preview doesn't play.
Second attempt was the re-encoding. File size doubled, so something changed, result was the same however, snap video didn't play.
Third attempt was based on @mitu suggestion to play on CLI using omxplayer command. Both the original (_orig.mp4) and the new (ffmpeg converted) files played. Here are the outputs:
pi@retropie:~/RetroPie/roms/mastersystem/snap $ omxplayer Ace\ of\ Aces\ \(Europe\).mp4 Video codec omx-mpeg4 width 320 height 240 profile -99 fps 30.000000 Audio codec aac channels 2 samplerate 48000 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: 320x240@30.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0 have a nice day ;) pi@retropie:~/RetroPie/roms/mastersystem/snap $ omxplayer Ace\ of\ Aces\ \(Europe\)_orig.mp4 Video codec omx-h264 width 320 height 240 profile 100 fps 30.000000 Audio codec aac channels 2 samplerate 48000 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: 320x240@30.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0 have a nice day ;) pi@retropie:~/RetroPie/roms/mastersystem/snap $
Side note, I did have to use @Hyuma command
ffmpeg
as theavconv
alias wasn't there. It seemed to work fine.So still kinda scratching my head, gamelist.xml file looks correct to me, file is there, encoding seems okay, plays from CLI with omxplayer...This is very odd and I hope we can figure this out.
let me know what else we can try.
-
@wiggy808 do you use chat like irc or discord? we can talk there if you want to
-
Yes, I'm on discord, how do I message you my name without posting it here, lol
-
@Hyuma I guess its not that big of a deal. My discord name is same as it is here, wiggy808
-
@wiggy808 i need also the numbers after the "#" in nickname
-
This post is deleted!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.