.264 Elementary Streams

WarTiger

New member
I have a home surveillance system and the DVR gives the options to backup files from the DVR. But, the resulting backup file is in .264 format. I have yet to find a program that I can even view these files in much less edit them. I'm wondering if there is a plan in the works to allow VideoReDo to support these elementary streams.

If not, does anybody know of a program that will allow me to at least view the files? I would rather not have to use the software that came with the DVR. Thanks in advance.
 

Dan203

Senior Developer
Staff member
No VRD can not handle them. At least not directly. You could find an audio stream of equal length and then combine that with the video stream using our ES muxer, then edit the resulting file. However we can not edit ES streams directly because they do not actually contain any time stamps.

As for playing them... Have you tried VLC?

Dan
 

Dan203

Senior Developer
Staff member
VideoReDo will not open a file without an audio stream.

If all you want to do is play the file then you can probably do that by simply muxing the stream to an MP4 using something like YAMB. You don't need an audio stream and after it's done VLC should be able to play it. Although without an audio stream VRD will not be able to open it. You'd have to mux it with an audio stream, even some arbitrary audio stream, to get it to open in VideoReDo.

Dan
 

Danr

Administrator
Staff member
WarTiger, Other users have expressed interest in viewing their H.264 security footage in VideoReDo. I'd be interested if in seeing a sample of your file, any chance you could upload a short clip for us? Please see the FTP instructions at the top of this forum and don't forget to send the email.
 

WarTiger

New member
WarTiger, Other users have expressed interest in viewing their H.264 security footage in VideoReDo. I'd be interested if in seeing a sample of your file, any chance you could upload a short clip for us? Please see the FTP instructions at the top of this forum and don't forget to send the email.
Are you serious? I don't mind sharing a file clip at all. There isn't a lot of activity in many of them, but the only issue I have is that the DVR saves them in 30 minute files, and there is no way to save out just a short clip. That's why I am looking for a video suite that can view these and possibly edit them. When I do have something that happens that may last 2-3 minutes, I would like to be able to edit the other 27-28 minutes off the video file and save only what I need. If a 30 minute clip is ok with you, I'll try to get one uploaded to you sometime over the weekend.

Also, so far the only thing that I can view the video files in is the software that came with the dvr. It's readily downloadable, but I haven't found anything else that will even play the files.
 
Last edited:

phd

Super Moderator
You can use Trim and copy to cut a 50-100MB segment of the file. Click on the menu: Tools>Trim and Copy Source File
 

WarTiger

New member
phd, Are you saying that videoredo can trim the file even though it can't actually load it for viewing or editing?? If so, I'll certainly give it a shot.
 

WarTiger

New member
Ok..Apparently VRD can in fact save a sample of the file even though it can't load it for editing. I have saved a sample and uploaded it per request to your ftp server. Directory is WarTiger and email has been sent as well. Looking forward to hearing more concerning this situation. Thanks for being willing to take a look at it.
 

Danr

Administrator
Staff member
The trim and copy function is strictly a byte for byte copy and knows nothing about the source file format. I guess you could use it to trim some data from any type of file, even non-video files.
 

Danr

Administrator
Staff member
It's not a little project :(

The file you sent is encoded in a strange way although there's an API available that claims to be able to parse it. However it returns decoded frames, not encoded frames which we expect.

When I get time I'll look at the API further, but for now, it doesn't appear to return what we need. We are working on some other things that might allow us to work with your decoded frames but that is still months off, if at all.
 

WarTiger

New member
Ha. Of course its not a little project. On a related note, their AVI Conversion software did actually work and converted the file to AVI pretty quickly (about 2 minutes). Perhaps there is something in the build for their AVI converter that could be used to handle the file that could be integrated into videoredo? I have no idea how to actually do that, but I'm sure its possible at some level. Regardless I appreciate your time and your help with this, and hopefully something will come to mind to allow videoredo to handle these files.
 

Dan203

Senior Developer
Staff member
Check the AVI file in MediaInfo. Is the video H.264? Is there an audio stream?

I can actually add AVI support to the FFmpeg reader pretty easily. I haven't done it yet because most AVIs don't actually have H.264 video, and I didn't want to confuse people by saying we support AVI when very few AVI files in the wild would actually work. However if there is an actual case where a user has AVI files with H.264 video it would be something I could add in a future release.

Dan
 

WarTiger

New member
Check the AVI file in MediaInfo. Is the video H.264? Is there an audio stream?

I can actually add AVI support to the FFmpeg reader pretty easily. I haven't done it yet because most AVIs don't actually have H.264 video, and I didn't want to confuse people by saying we support AVI when very few AVI files in the wild would actually work. However if there is an actual case where a user has AVI files with H.264 video it would be something I could add in a future release.

Dan
Dan,

Here's the info sheet from Media Info on the AVI file. There is NO audio that I am aware of.
General
Complete name : D:\Video Surveillance Backup\Front Door 11-1130.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 182 MiB
Duration : 30mn 43s
Overall bit rate : 830 Kbps
Writing application : Lavf52.13.0

Video
ID : 0
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : H264
Duration : 29mn 57s
Bit rate : 812 Kbps
Width : 720 pixels
Original width : 704 pixels
Height : 576 pixels
Original height : 480 pixels
Display aspect ratio : 3:2
Frame rate : 7.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.280
Stream size : 174 MiB (95%)

Audio
ID : 1
Format : ADPCM
Codec ID : 11
Codec ID/Hint : Intel
Duration : 30mn 43s
Bit rate mode : Constant
Bit rate : 32.0 Kbps
Channel(s) : 1 channel
Sampling rate : 8 000 Hz
Bit depth : 4 bits
Stream size : 7.03 MiB (4%)
Interleave, duration : 40 ms (0.28 video frame)
Interleave, preload duration : 123 ms
 

Dan203

Senior Developer
Staff member
Wow there are several things there that would cause a problem. First of 7fps would likely cause our syncing routines to freak out. Second while the audio is PCM it's only 8KHz, we only support 32, 44.1 and 48KHz audio.

I really don't think these files would open properly even if I added AVI support to VRD.

Dan
 

WarTiger

New member
Well, judging from that response, is it safe to say those of us with these surveillance systems are going to have to look for other editing possibilities? I would really like the ability to edit these files as often the part of the file I want to keep is only a few minutes long in most cases and it saves the files in 30 minute segments.
 

WarTiger

New member
Dan,

Just a little update. I used the converter provided on the DVR's website and converted my file to AVI. I then loaded the file in handbrake and encoded it to an MP4 file. My purpose behind doing this is to load it in videoredo and edit out the parts I don't need. Anyway, the handbrake conversion worked fine, and the video loaded up in videoredo just fine and I was able to select the segment I want to keep. However, I click SAVE AS and give it a file name and after it tries for a few minutes, it gives me the yellow exclamation mark over the VRD icon in the save box and the only option I have then is to abort. It never saved the file for me. Any idea why?
 

Dan203

Senior Developer
Staff member
Check the file Handbrake created in MediaInfo. What's the frame rate? Is it fixed or variable? Also look at the audio. If it's only 8KHz like the source then that too will be an issue.

Dan
 
Top Bottom