Question / Help Large mp4 file recorded by OBS does not play

Balcerzak

New Member
This evening I went to record a run of a game, and I was playing it for several hours. The final outputted file was 5.56 GB (5,972,689,641 bytes). I had changed no OBS settings since the previous session I recorded which resulted in a file 3.88 GB (4,171,808,804 bytes) in length, however while the 3.8 GB file opens, plays, and works, the 5.56 file does not. Instead of opening and playing, it just seems to stall out attempting to load in the video player.

Since my log file was too large for this post, it can be found at the following pastebin: http://pastebin.com/J0p0DSqH

The video that failed to record/play proper is the one that had
03:25:51: Total frames encoded: 393857, total frames duplicated: 3 (0.00%)
the immediately previous video that was recorded just fine is the one that had
04:45:18: Total frames encoded: 275255, total frames duplicated: 12 (0.00%)



Browsing around, I saw suggestions to try to use ffmpeg to transcode the video file and hopefully get things to work.

Code:
ffmpeg.exe -i stream.mp4 -acodec copy -vcodec copy PleaseWork.mp4

produced a file that would open in VLC and actually play the audio that should exist for the file, but the video is completely blank. MPC:HC continues to refuse to play the file just like before the transcoding. (Prior to the transcoding VLC would simply crash in the most ungraceful of manners, while MPC:HC just opened a window that showed the total duration yet never attempted to play it.)


A little bit more investigation seemed to reveal that there was a problem with the pixel format, perhaps?

Code:
ffmpeg.exe -i stream.mp4 -f mp4 -c:v h264 -c:a aac -analyzeduration 2147483647 -probesize 2147483647 -t 30 test.mp4

produced the following relevant messages

Code:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ab7940] decoding for stream 1 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002ab7940] Could not find codec parameters for stream 1 (Video: h264 (avc1 / 0x31637661), 800x600, 3499 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream.mp4':
  Metadata:
  major_brand  : isom
  minor_version  : 512
  compatible_brands: isomiso2avc1mp41
  creation_time  : 2014-10-13 08:25:51
  encoder  : Open Broadcaster Software v0.637b
  Duration: 03:38:47.73, start: 0.000000, bitrate: 3639 kb/s
  Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
  Metadata:
  creation_time  : 2014-10-13 08:25:51
  handler_name  : Sound Media Handler
  Stream #0:1(und): Video: h264 (avc1 / 0x31637661), 800x600, 3499 kb/s, 30 fps, 30 tbr, 1k tbn, 2k tbc (default)
  Metadata:
  creation_time  : 2014-10-13 08:25:51
  handler_name  : Video Media Handler
  encoder  : AVC Coding
File 'test.mp4' already exists. Overwrite ? [y/N] 
[buffer @ 0000000004e50f20] Unable to parse option value "-1" as pixel format
  Last message repeated 1 times
[buffer @ 0000000004e50f20] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:1 @ 0000000002abf300] Error applying options to the filter.
Error opening filters!

At this point I have no clue on where to proceed, but it looks like OBS failed to properly set the pixel format? Or am I misinterpreting these results completely. If there are any more tests or logs that I should provide to help diagnose or troubleshoot the issue, I would be glad to try to get this figured out.
While it's obviously not really vital, I would really enjoy recovering that video so I could share it with my friends like previously intended, as I doubt I could recreate a similar run due to the effects of RNG, and I don't want to have to load a save from over 3 hours previous and undo all the progress I had made. Is this a known issue, can it be resolved? I spent a little bit of time searching the OBS forums here, but the various topics I found didn't seem to 100% relate, although they were useful in attempting to narrow things down (I looked at a VLC crash topic and a Quicktime topic, I believe, as they had turned up when I initially searched my suspicion that it was a filesize of over 4GB that was the culprit).
I feel kind of embarrassed posting this thread, but I don't know where else to turn.
 
Neither VLC nor Media Player Classic: Home Cinema will open the file. I don't have Windows Media Player installed so I can't check that.

Edit: It also doesn't provide me with any working video when I open it in VirtualDub to edit out sections of video that are boring, etc.
 
I used a MediaInfo program I saw recommended in another similar thread?

Here's what it showed


Code:
General
Complete name  : [path]stream (02).mp4
Format  : MPEG-4
Format profile  : Base Media
Codec ID  : isom
File size  : 5.56 GiB
Duration  : 3h 38mn
Overall bit rate  : 3 640 Kbps
Encoded date  : UTC 2014-10-13 08:25:51
Tagged date  : UTC 2014-10-13 08:25:51
Writing application  : Open Broadcaster Software v0.637b

Video
ID  : 2
Format  : AVC
Format/Info  : Advanced Video Codec
Codec ID  : avc1
Codec ID/Info  : Advanced Video Coding
Duration  : 3h 38mn
Source duration  : 3h 38mn
Bit rate  : 3 500 Kbps
Width  : 800 pixels
Height  : 600 pixels
Display aspect ratio  : 4:3
Frame rate mode  : Variable
Frame rate  : 30.000 fps
Minimum frame rate  : 29.412 fps
Maximum frame rate  : 30.303 fps
Bits/(Pixel*Frame)  : 0.243
Stream size  : 5.35 GiB (96%)
Source stream size  : 5.35 GiB (96%)
Encoded date  : UTC 2014-10-13 08:25:51
Tagged date  : UTC 2014-10-13 08:25:51
mdhd_Duration  : 13127732

Audio
ID  : 1
Format  : AAC
Format/Info  : Advanced Audio Codec
Format profile  : LC
Codec ID  : 40
Duration  : 3h 38mn
Source duration  : 3h 38mn
Bit rate mode  : Constant
Bit rate  : 128 Kbps
Channel(s)  :  channel0
Channel(s)_Original  : 2 channels
Channel positions  : Front: L R
Sampling rate  : 44.1 KHz
Compression mode  : Lossy
Stream size  : 200 MiB (4%)
Source stream size  : 200 MiB (4%)
Language  : English
Encoded date  : UTC 2014-10-13 08:25:51
Tagged date  : UTC 2014-10-13 08:25:51
mdhd_Duration  : 13127674
 
Hello. I'm having the same problem. Any solutions so far?
PS: It seems to occur when duration is longer than 2 hours.
 
This is a solution for future recordings but not for the current 3 hours that'll get lost. I really need it.
 
There is no solution, if even VLC can't play it, it is most certainly corrupt. And corrupt mp4 files are unfixable, i believe
 
I wouldn't say that. Due the only problem seems to be..
Code:
[h264 @ 0000000002d2a560] non-existing PPS 0 referenced
[h264 @ 0000000002d2a560] decode_slice_header error
[h264 @ 0000000002d2a560] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002cff440] decoding for stream 1 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002cff440] Could not find codec parameters for
 stream 1 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 19999 kb/s): unspec
ified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-11-01 20:26:42
    encoder         : Open Broadcaster Software v0.637b
  Duration: 02:57:54.27, start: 0.000000, bitrate: 20172 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 16
0 kb/s (default)
    Metadata:
      creation_time   : 2014-11-01 20:26:42
      handler_name    : Sound Media Handler
    Stream #0:1(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 19999 kb
/s, 30 fps, 30 tbr, 1k tbn, 2k tbc (default)
    Metadata:
      creation_time   : 2014-11-01 20:26:42
      handler_name    : Video Media Handler
      encoder         : AVC Coding
[buffer @ 000000000702d720] Unable to parse option value "-1" as pixel format
    Last message repeated 1 times
[buffer @ 000000000702d720] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:1 @ 00000000070d5e60] Error applying options to the
 filter.
Error opening filters!
 
I tried it a few moments ago.
Unfortunately, after scanning up to 100% he won't recognize a title.
So if i press start he'll just telling me that i need to scan a file at first.
Anymore ideas, dude? Spend the whole day trying to fix that stupid file.

Code:
[h264 @ 0000000001C44740] non-existing PPS 0 referenced
[h264 @ 0000000001C44740] decode_slice_header error
[h264 @ 0000000001C44740] no frame!
[h264 @ 0000000001C44740] non-existing PPS 0 referenced
[h264 @ 0000000001C44740] decode_slice_header error
[h264 @ 0000000001C44740] no frame!
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-11-01 20:26:42
    encoder         : Open Broadcaster Software v0.637b
  Duration: 02:57:54.30, start: 0.000000, bitrate: 20172 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      creation_time   : 2014-11-01 20:26:42
    Stream #0.1(und): Video: h264, 1920x1080, 19999 kb/s, 30 fps, 30 tbr, 1k tbn
    Metadata:
      creation_time   : 2014-11-01 20:26:42
[19:56:21] ffmpeg_title_scan: Unsupported color space
[19:56:28] scan: decoding previews for title 1
[19:56:28] scan: audio 0x0: aac, rate=48000Hz, bitrate=160970 English (aac) (2.0 ch)
[19:56:54] libhb: scan thread found 0 valid title(s)
No title found.
HandBrake has exited.
 
Last edited:
sounds like the header info is indeed corrupt.

i have a custom batch file i used to use on broken mp4s that might work. You need to download ffmpeg from here (http://ffmpeg.zeranoe.com/builds/), extract it, put the .exe in a new folder with the mp4 you need to fix.

This is the batch file I've used to try and fix an mp4, it might work, it might not.
Code:
for %%a in ("*.avi" "*.mp4" "*.flv" "*.ts") do ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i "%%a" -copyts -c:v copy -c:a copy ".s\%%~na.mp4"
pause

Save that to a txt file, then change the extention to .bat
put it in the same folder with the mp4 and ffmpeg.exe
then run it.

if it worked, you'll be able to transcode with handbrake into a workable file....
goodluck

you could try avidemux if it fails (if it will read the file).
at least then you can copy the streams into a workable file.
 
Unfortunately i get this error message:
Code:
[h264 @ 000000000035a620] non-existing PPS 0 referenced
[h264 @ 000000000035a620] decode_slice_header error
[h264 @ 000000000035a620] no frame!
[h264 @ 000000000035a620] non-existing PPS 0 referenced
[h264 @ 000000000035a620] decode_slice_header error
[h264 @ 000000000035a620] no frame!
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000032f480] decoding for stream 1 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000032f480] Could not find codec parameters for
stream 1 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 19999 kb/s): unspec
ified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-11-01 20:26:42
    encoder         : Open Broadcaster Software v0.637b
  Duration: 02:57:54.27, start: 0.000000, bitrate: 20172 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 16
0 kb/s (default)
    Metadata:
      creation_time   : 2014-11-01 20:26:42
      handler_name    : Sound Media Handler
    Stream #0:1(und): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 19999 kb
/s, 30 fps, 30 tbr, 1k tbn, 2k tbc (default)
    Metadata:
      creation_time   : 2014-11-01 20:26:42
      handler_name    : Video Media Handler
      encoder         : AVC Coding
.s\input.mp4: No such file or directory

E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin>pause
 
Okay i should've read the whole text.
I'm now trying to use avidemux and save the file into a avi.
(If this is correct)
Seems to work so far:
2t4tuva8.png

Will give response when it's finished.

EDIT:
Still can't play the file.

Running it through your .BAT achmetha ends up with:
Code:
    Last message repeated 1 times
[h264 @ 0000000002b59780] decode_slice_header error
[h264 @ 0000000002b59780] no frame!
[h264 @ 0000000002b59780] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0000000002b59780] decode_slice_header error
[h264 @ 0000000002b59780] no frame!
[avi @ 0000000002b2f460] decoding for stream 0 failed
[avi @ 0000000002b2f460] Could not find codec parameters for stream 0 (Video: h2
64 (H264 / 0x34363248), none, 1920x1080, 19999 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avi, from 'what.avi':
  Duration: 1070:14:08.43, start: 0.000000, bitrate: 55 kb/s
    Stream #0:0: Video: h264 (H264 / 0x34363248), none, 1920x1080, 19999 kb/s, 3
0.30 fps, 30.30 tbr, 30.30 tbn, 60.61 tbc
    Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 1
28 kb/s
.s\what.mp4: No such file or directory

E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2>pause

So nothing special about it.

Running it through handbrake:
Code:
 -i "E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi" -t0  --min-duration=10 -v
[12:17:53] hb_init: starting libhb thread
HandBrake 0.9.9 (2013052900) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi...
[12:17:53] hb_scan: path=E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(E:\O_O\ffmpeg-20141101-git-d2d97b3-win64-static\bin\Test2\what.avi) failed (0000000001C2D870)
[12:17:53] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:17:54] dvd: not a dvd - trying as a stream/file instead
[h264 @ 0000000001C36C00] missing picture in access unit
[h264 @ 0000000001C36C00] non-existing PPS 0 referenced
[h264 @ 0000000001C36C00] decode_slice_header error
[h264 @ 0000000001C36C00] no frame!
[h264 @ 0000000001C36C00] missing picture in access unit
[h264 @ 0000000001C36C00] non-existing PPS 0 referenced
[h264 @ 0000000001C36C00] decode_slice_header error
[h264 @ 0000000001C36C00] no frame!
[h264 @ 0000000001C36C00] missing picture in access unit
[h264 @ 0000000001C36C00] non-existing PPS 0 referenced
[h264 @ 0000000001C36C00] decode_slice_header error

and then just

[NULL @ 0000000001C36C00] missing picture in access unit
[NULL @ 0000000001C36C00] missing picture in access unit
[NULL @ 0000000001C36C00] missing picture in access unit
[NULL @ 0000000001C36C00] missing picture in access unit
[NULL @ 0000000001C36C00] missing picture in access unit ...
a few hundred times.
 
Last edited:
i'm out of ideas i'm afraid. those are the only tricks i've used to fix my own corrupt files. there is probably a way, i just don't know of it.
 
Unfortunately i only got left one of two corrupted files.
One of them were 2 Hours Duration (800mb) because i was streaming at 800kbit/s
And the one left is 25 GB. A little bit to big for uploading. I only got 1mbit up internet connection.

So'll try to recover the deleted file with recuva. Do you have any idea, where i could upload the file so you can download it without needing premium account stuff oder something like that?
 
Damned...anyway.. he can't find the file. So what i need is someone with the similar problem posting his video.
I think it would be too much effort to upload and download a 25GB file. Is there anything i can do to help?
I still hope there's still a solution to fix that files.
 
Last edited:
Back
Top