Quantcast

Extracting avc from sec file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Extracting avc from sec file

Jim Monaco
Hi List,
I've got a pile of these samsung dvr (.sec) files which appear to be avc in
mediaInfo, but I'm having trouble pulling the stream out successfully.

I've found multiple (old) mentions online suggesting "ffmpeg -i inputfile
-c:v copy output.avi" but this outputs two errors:
"H.264 bitstream malformed, no startcode found, use the video bitstream
filter h264_mp4toannexb to fix it"
"av_interleaved_write_frame(): Invalid data found when processing input"

I've tried adding the bsf, but then I get this:
"Packet header is not contained in global extradata, corrupted stream or
invalid MP4/AVCC bitstream"
"Error initializing bitsream filter: h264_mp4toannexb"

For kicks, I also tried this:
ffmpeg -i inputfile -c:v libx264 output.mp4

It actually kind of did something--every few frames it threw an error about
an Invalid NAL unit, an a whole slew of other errors less frequently, BUT
it actually created an mp4 containing the video, albeit sped up and in
black and white. It got me thinking that the data is somehow accessible,
but it's beyond my ability to diagnose.

It seems that the .sec file I'm trying must have some kind of proprietary
junk tossed in all around it; it plays fine in the special player
application but I'm looking to be able to do more with the video.

Would anyone mind taking a look? I'd appreciate any suggestions on how I
might wrangle this!
https://dl.dropboxusercontent.com/u/14325048/19000500.sec
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extracting avc from sec file

Moritz Barsnick
On Wed, Apr 19, 2017 at 13:41:02 +0000, Jim Monaco wrote:
> I've tried adding the bsf, but then I get this:
> "Packet header is not contained in global extradata, corrupted stream or
> invalid MP4/AVCC bitstream"
> "Error initializing bitsream filter: h264_mp4toannexb"

By providing the complete, uncut console output along with the ffmpeg
command line, you could provide us with more valuable information. (Not
everyone cares for manually reproducing, and certainly not for
downloading 400+ MB.)

The most important information in that output would have shown us that
you - probably - use an old version of ffmpeg. That said, I actually
downloaded a bit of your sample, and it plays and converts just fine
(and in color!).

"Works for me! (TM)"

(That's why we also usually ask you to check your issue with the latest
"development" version from git master.)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Extracting avc from sec file

Jim Monaco
On Thu, Apr 20, 2017 at 3:49 PM Moritz Barsnick <[hidden email]> wrote:

> On Wed, Apr 19, 2017 at 13:41:02 +0000, Jim Monaco wrote:
> > I've tried adding the bsf, but then I get this:
> > "Packet header is not contained in global extradata, corrupted stream or
> > invalid MP4/AVCC bitstream"
> > "Error initializing bitsream filter: h264_mp4toannexb"
>
> By providing the complete, uncut console output along with the ffmpeg
> command line, you could provide us with more valuable information. (Not
> everyone cares for manually reproducing, and certainly not for
> downloading 400+ MB.)
>
> The most important information in that output would have shown us that
> you - probably - use an old version of ffmpeg. That said, I actually
> downloaded a bit of your sample, and it plays and converts just fine
> (and in color!).
>
> "Works for me! (TM)"
>
> (That's why we also usually ask you to check your issue with the latest
> "development" version from git master.)
>
> Moritz
> _______________________________________________
>

Hi  and thanks for your reply,
Apologies about the console output--I'll take another pass at this. I've
just downloaded the 4/18/2017 64-bit static version from the website (I was
using Jan 2017 before) and I'm having a similar result. The first 0:7:30
are in color, but the color gets lost after that. The console log is
length, but I'll put it into a pastebin.

I'm using the following command:
ffmpeg -i 19000500.sec -bsf:v h264_mp4toannexb -c:v copy output.avi

And here's the console: https://pastebin.com/34b40g6R

The result is a file that loses color about 0:7:30 into playback.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Loading...