Transcoding files for Playback on Playstation 4
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Re: Transcoding files for Playback on Playstation 4
You need to start UMS with the "trace" command line argument, and then post the log file (debug.log) from when you try to play one of the files that don't work. This will show the decision process.
Regarding transcoding, I'm pretty sure that the RPi isn't anywhere close to have enough oomph to do that. If you want to be able to do transcoding, you'll probably have to use a "real computer" with a reasonable CPU as your server.
Regarding transcoding, I'm pretty sure that the RPi isn't anywhere close to have enough oomph to do that. If you want to be able to do transcoding, you'll probably have to use a "real computer" with a reasonable CPU as your server.
Re: Transcoding files for Playback on Playstation 4
I think the PS4 only supports up to level 4.2 H.264, which means that at 1080p (see reference https://planetcalc.com/3321/), files are only allowed 4 reference frames. The "bad" file is using 6 reference frames, and the person who encoded it seems to have manually set the profile flag to "High L4.1".
In other words it really is a bad file
If it is a scene release it will have been nuked and a fixed version released. There are lots of other more standard files out there to choose from, I would recommend looking for the mkv filetype instead of mp4
In other words it really is a bad file

If it is a scene release it will have been nuked and a fixed version released. There are lots of other more standard files out there to choose from, I would recommend looking for the mkv filetype instead of mp4
Re: Transcoding files for Playback on Playstation 4
You can reencode the file with FFmpeg, but you have to figure out the correct parameters. You can find tons of examples of FFmpeg parameters online. It will probably take a while though, depending on the power of your computer of course.
Re: Transcoding files for Playback on Playstation 4
Personally I recommend using x264 https://www.videolan.org/developers/x264.html since it has good defaults - you can simply set a CRF (Constant Rate Factor) and leave everything at its default settings, and you'll get a high quality file. For 1080p I'd go with CRF 18-22, with 18 being highest quality and 22 being lowest, but still barely noticeable.
You can then use MKVToolnix to mux (muxing is when you swap streams across files without re-encoding them) the new video stream with the old audio stream, and end up with a .mkv file that will work https://mkvtoolnix.download/
I use a tool that automates those steps called MeGUI but it is Windows-only
You can then use MKVToolnix to mux (muxing is when you swap streams across files without re-encoding them) the new video stream with the old audio stream, and end up with a .mkv file that will work https://mkvtoolnix.download/
I use a tool that automates those steps called MeGUI but it is Windows-only
Re: Transcoding files for Playback on Playstation 4
@SubJunk I thought FFmpeg used the very same x264 encoder? Is it something I've missed, or are the defaults different when it's used standalone?
- Chuck_Arch_Ums
- Posts: 13
- Joined: Sun Sep 01, 2019 1:46 am
Re: Transcoding files for Playback on Playstation 4
Just to clarify things, I'm using level 4.2 with 5 frames without problems, here is what can be played natively on PS4 (from Sony website)
Videos
When using a USB storage device, your video files need to be in a folder for your PS4™ system to recognize them.
You can view video recorded by a 360-degree omnidirectional camera (in equirectangular video format) on your PS VR. Press the OPTIONS button, and then select [VR Mode].
MKV
Video: H.264/MPEG-4 AVC High Profile Level 4.2
Audio: MP3, AAC LC, AC-3 (Dolby Digital)
AVI
Video: MPEG4 ASP, H.264/MPEG-4 AVC High Profile Level 4.2
Audio: MP3, AAC LC, AC-3 (Dolby Digital)
MP4
Video: H.264/MPEG-4 AVC High Profile Level 4.2, H.264/MPEG-4 AVC High Profile Level 5.2 (PlayStation®4 Pro only)
Audio: AAC LC, AC-3 (Dolby Digital), LPCM
MPEG-2 PS
Video: MPEG2 Visual
Audio: MP2 (MPEG2 Audio Layer 2), MP3, AAC LC, AC-3 (Dolby Digital), LPCM
MPEG-2 TS
Video: H.264/MPEG-4 AVC High Profile Level 4.2, MPEG2 Visual
Audio: MP2 (MPEG2 Audio Layer 2), AAC LC, AC-3 (Dolby Digital)
AVCHD (.m2ts, .mts)
XAVC S™ (.mp4)
Videos
When using a USB storage device, your video files need to be in a folder for your PS4™ system to recognize them.
You can view video recorded by a 360-degree omnidirectional camera (in equirectangular video format) on your PS VR. Press the OPTIONS button, and then select [VR Mode].
MKV
Video: H.264/MPEG-4 AVC High Profile Level 4.2
Audio: MP3, AAC LC, AC-3 (Dolby Digital)
AVI
Video: MPEG4 ASP, H.264/MPEG-4 AVC High Profile Level 4.2
Audio: MP3, AAC LC, AC-3 (Dolby Digital)
MP4
Video: H.264/MPEG-4 AVC High Profile Level 4.2, H.264/MPEG-4 AVC High Profile Level 5.2 (PlayStation®4 Pro only)
Audio: AAC LC, AC-3 (Dolby Digital), LPCM
MPEG-2 PS
Video: MPEG2 Visual
Audio: MP2 (MPEG2 Audio Layer 2), MP3, AAC LC, AC-3 (Dolby Digital), LPCM
MPEG-2 TS
Video: H.264/MPEG-4 AVC High Profile Level 4.2, MPEG2 Visual
Audio: MP2 (MPEG2 Audio Layer 2), AAC LC, AC-3 (Dolby Digital)
AVCHD (.m2ts, .mts)
XAVC S™ (.mp4)