Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: Schwing on February 03, 2017, 04:07:17 PM
-
Rpi 3 - audio but no video on some videos
I used the FAQ to update my Retropie + AttractMode, including compiling fmpeg with hardware acceleration support (I had a floob 0.5 image).
Everything went well and I can now play the intro video at 720p (the original at 1080p stil stutters a lot), which is nice.
However, on all the videos from Progetto VideoSnaps (mp4), I get only sound & no video. I tried some vids from emumovies, and those work ok.
After exiting Attract Mode, I tried to play the Progetto videos with ffplay, and they played correctly. Can this be considered as a bug?
If it's any help, Here's the result from ffmpeg -i on one of the videos:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pi/RetroPie/roms/mame-libretro/snap/bublbobl.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Bubble Bobble (Japan, Ver 0.1) [MAME]
artist : Progetto VideoSnaps by motoschifo & AntoPISA [gameplay by motoschifo]
encoder : Lavf54.20.4
comment : Created with: Mame version 0.161,
: Played by: motoschifo,
: Game name: bublbobl - Bubble Bobble (Japan, Ver 0.1),
: Date game played: 23 maggio 2015,
: Date video creation: 3 novembre 2015,
: Type: shortplay single-screen,
: Manufacturer: Taito Corporation,
: Display resolution: 256x224px,
: Link for info: http://adb.arcadeitalia.net/?mame=bublbobl,
: Copyright (C) - All rights reserved - Tutti i marchi e loghi appartengono ai rispettivi proprietari
genre : MAME video preview (shortplay)
Duration: 00:01:20.22, start: 0.000000, bitrate: 242 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 256x224 [SAR 7:6 DAR 4:3], 80 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 155 kb/s (default)
Metadata:
handler_name : SoundHandler
-
add this to your /boot/config.txt
gpu=256 and reboot
see if that helps
you can also change it using the raspi-config script
1. Quit Attract mode and enter the terminal.
2. Type sudo raspi-config press enter
3. Go to Advanced options (9)
4. Go to Memory Split (A9)
5. Delete any settings there and type 256
6. Restart your pi
-
thanks for your help, tried that but unfortunately this does not solve the problem (it was already at 256; raspiconfig told me that it cleared some device specific settings, but no luck).
-
you said the proteggo snaps worked but the emumovies snaps did not?
-
No it's the other way around: emumovies are ok, but the Progetto VideoSnaps are not (only sound, no video)
-
Did you upgrade SFML before FFMPEG and Attract-Mode? Some fixes/changes in AM need the newer SFML.
-
Yes, I followed the instructions in the FAQ ( http://forum.attractmode.org/index.php?topic=1249.0 (http://forum.attractmode.org/index.php?topic=1249.0)).
Here's the output of attract -v:
Attract-Mode v2.2.1 (Linux, SFML 2.3 +FontConfig +RPi +SWF)
Using FFmpeg for Audio and Video.
avcodec 57.75.100 / avformat 57.66.101 / swscale 4.3.101 / swresample 2.4.100
Shaders are not available.
Just to be sure, has anyone tried one of the Progetto videos in Attract Mode? If it's not against forum rules I can upload one somewhere to make it easy for testing.
-
I can confirm this is an issue for me as well. It seems to be an issue with the video stream in the Progetto encodes. Most of them play fine using the software decoder, but after enabling mmal playback in AM, they either show a blank image or just flat out crash ffmpeg decoder (sf2.mp4 for example).
My Pi3 is a clean install of RetroPie - Jessie updated, RetroPie updated - SFML-Pi, FFMPEG with MMAL, and AttractMode compiled as per the FAQ here.
As has been mentioned, the Emumovie encodes play fine with both software and mmal codecs. My uneducated guess would be that FFMPEG is having trouble handling the YUV color space in the Progetto clips.
Here's the output of ffprobe comparing the video for 005 in both collections:
pi@attractpi:~ $ ffprobe 005_emumovies.mp4
ffprobe version git-2017-02-05-326b1ed Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --enable-mmal --disable-debug --enable-memalign-hack --enable-shared
libavutil 55. 46.100 / 55. 46.100
libavcodec 57. 75.100 / 57. 75.100
libavformat 57. 66.101 / 57. 66.101
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 73.100 / 6. 73.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e26a80] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '005_emumovies.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2013-03-07T03:44:14.000000Z
genre : Video Snaps
album : MAME Video Snaps
album_artist : Circo
artist : EmuMovies
comment : http://emumovies.com
title : 005
date : 2015
Duration: 00:00:27.03, start: 0.000000, bitrate: 250 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x640 [SAR 1:1 DAR 3:4], 161 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 68 kb/s (default)
Metadata:
creation_time : 2013-03-07T03:44:14.000000Z
handler_name : GPAC ISO Audio Handler
Stream #0:2: Video: png, rgba(pc), 400x400 [SAR 2834:2834 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
pi@attractpi:~ $ ffprobe 005_progetto.mp4
ffprobe version git-2017-02-05-326b1ed Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --enable-mmal --disable-debug --enable-memalign-hack --enable-shared
libavutil 55. 46.100 / 55. 46.100
libavcodec 57. 75.100 / 57. 75.100
libavformat 57. 66.101 / 57. 66.101
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 73.100 / 6. 73.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '005_progetto.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : 005 [MAME]
artist : Progetto VideoSnaps by motoschifo & AntoPISA [gameplay by adolfo69]
encoder : Lavf54.20.4
comment : Created with: Mame version 0.162,
: Played by: adolfo69,
: Game name: 005 - 005,
: Date game played: 21 giugno 2015,
: Date video creation: 2 novembre 2015,
: Type: shortplay single-screen,
: Manufacturer: Sega,
: Display resolution: 224x256px (rotated by 270°),
: Link for info: http://adb.arcadeitalia.net/?mame=005,
: Copyright (C) - All rights reserved - Tutti i marchi e loghi appartengono ai rispettivi proprietari
genre : MAME video preview (shortplay)
Duration: 00:00:37.71, start: 0.000000, bitrate: 173 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 224x256 [SAR 6:7 DAR 3:4], 38 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
-
Emumovies is the de facto standard for videos. 90% of people use them and anything else is questionable. I have nothing against Progetto but they aren't the best quality and you get what you pay for. If you get all your stuff together and spend $20 for a month Emumovies subscription you can get everything you need. You can spend $50 and get a lifetime subscription. If you're too cheap for either of those then you can use a Emumovies free account which has a daily down cap and take your time getting the videos.
Bottom line is mmal decoding works best on Attract-Mode with a Pi and if your videos can't use it, get better videos (BTW- software video decoding will run your Pi 20 degrees fahrenheit hotter than mmal (hardware) decoding). If you're using Windows and have issues you need to install a better codec pack.
P.S. Use a 3rd party app to re-encode your existing videos if you're dying to get them to work.
-
@chrisvg: thanks for testing & confirming the behavior!
@progets: no problem, I'll use Emumovies, it was just that up until now I had used Progetto and they worked nicely in software mode. Seeing that the video played correctly using ffplay, I thought that was worth investigating :)
Thanks all for your help
-
I now this is an old post but this has happened to me as well
I have tried several things and I think that the problem is either the framerate, all the videos which doesn´t play on AM is because they have a framerate of 29.97.
or the video tags. Also all the videos which doesn´t play is also because they have tags under media. and all the tags are from progretto, so, that is why progretto videos don´t work on AM. You can check tags in options/details on windows.
I have tried to convert all the videos to 30fps but i got the same result, so I think it must be the tags, that for some reason AM o MMAL video decoder doesn´t like tags in the videos.
So, is there an easy way to remove tags from videos?
Edit.
I have found another possible reason why videos don´t play in AM.
Videos which don´t play properly in AM is also because the video resolution and buffer dimensions don´t match, they are different by a couple of pixels either on the width or height.
My solution for that. I have encoded the videos again with handbrake app and so far all the videos which didn´t play now they are working
-
My solution for that. I have encoded the videos again with handbrake app and so far all the videos which didn´t play now they are working
I too encoded some problematic videos through handbrake app and most videos started working. The issue is not only with progetto videos, emu-movies have this problem in some sets too. I am on Windows so its not an RPI 3 specific problem.