[FFmpeg-user] IPCam Footage 4GB file showing as 30 minutes with 18M bitrate, unplayable

2017-09-01 Thread Justin Blanding
The file will not play or convert using over a dozen different tools.  File
is 4,097,356KB, and should be 720P footage from a webcam.  The bitrate
makes no sense, and the duration should be much higher, or the file should
be much smaller.  BlueIris created the file, but it wont play it.  What
command can I use to reencode the file with proper settings?

"streams": [
{
"index": 0,
"codec_name": "mpeg4",
"codec_long_name": "MPEG-4 part 2",
"profile": "Simple Profile",
"codec_type": "video",
"codec_time_base": "1/1000",
"codec_tag_string": "mp4v",
"codec_tag": "0x7634706d",
"width": 0,
"height": 0,
"coded_width": 0,
"coded_height": 0,
"has_b_frames": 0,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "0:0",
"level": 1,
"chroma_location": "left",
"refs": 1,
"quarter_sample": "false",
"divx_packed": "false",
"r_frame_rate": "1000/1",
"avg_frame_rate": "3446000/298673",
"time_base": "1/16000",
"start_pts": 0,
"start_time": "0.00",
"duration_ts": 28672608,
"duration": "1792.038000",
"bit_rate": "18729513",
"max_bit_rate": "18729513",
"nb_frames": "20676",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"language": "und",
"handler_name": "VideoHandler"
}
}
]
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] H.265/HEVC codec encapsulation in AVI - wrong BITMAPINFOHEADER.biCompression value

2017-09-01 Thread Grégoire GOLOUBINOW
Dear all,

 

When VideoLAN-VLC converts an H.265/HEVC-encoded file in AVI format, by
executing a command such as:

VLC -I dummy Tears_400_x265.mp4
--sout=#{access=file,mux=avi,dst='Tears_400_x265.avi'} vlc://quit

VLC and Media Player Classic – Home Cinema are able to read and play the
resulting AVI file.

 

When I try to do the same with ffmpeg, running a command such as:

ffmpeg -i Tears_400_x265.mp4 -vcodec copy -f avi Tears_400_x265.avi

VLC is not able to read the result, because ffmpeg writes “hvc1” at offset
188 (= BITMAPINFOHEADER.biCompression), instead of “hevc” as expected by VLC
and MPC-HC.

 

Incidentally, I notice that fmpeg also writes “hvc1” at offset 112 (=
fccHandler) instead of “cveh” as VLC does.

 

When I try to do the same with a raw H.265 file, ffmpeg writes 00:00:00:00
(null bytes) in fields fccHandler and BITMAPINFOHEADER.biCompression,
instead of “cveh” and “hevc” as expected by VLC, although the trace shows
that ffmpeg actually detects the HEVC codec:

Stream #0:0: Video: hevc, 1 reference frame, yuv420p(tv), 1280x720, 25 fps,
25 tbr, 1200k tbn, 25 tbc

 

Would it be possible for ffmpeg, when it converts an H.265/HEVC-encoded file
to AVI, to write “cveh” (0x63 0x76 0x65 0x68) at offset 112 (= fccHandler)
and “hevc” (0x68 0x65 0x76 0x63) at offset 188
(=BITMAPINFOHEADER.biCompression), so that VLC and MPC-HC can play the file?

 

Best regards,

Gregoire

 

P,S, H.265-encoded video clip
https://s3.amazonaws.com/x265.org/video/Tears_400_x265.mp4 can be downloaded
from https://x265.com/hevc-video-files/ web site.

 

 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread Carl Eugen Hoyos
Hi!

Am 01.09.2017 um 15:21 schrieb Cley Faye :

>> 
>> If you convert the WAV to an other format you will have an approximation
>> of the original data with the limitations of the codec of choice.


This is (generally) correct.


>> FLAC claims to be lossless and offering about 50% storage savings.

No.
To the best of our knowledge, flac is lossless.
(There may even be proof, I don't know.)

>> Storage is inexpensive why change the format and lose the original?
> 
> For the record, FLAC is lossless: going wav -> flac -> wav recreate the
> exact same file, byte by byte.

No.
Going wav -> flac -> wav, you can get the exact same audio information.
There are two traps though: The second wav file may not contain the same meta 
information as the first file (this depends on the used software and is 
something you can't necessarily control) and using FFmpeg you may have to 
choose the right encoder for the second conversion: .wav defaults to 16 bit pcm 
(here), if your original file was 24 bit or float, you have to specify the 
relevant encoder to get the exact audio information.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread PaulYurt


> On Sep 1, 2017, at 9:21 AM, Cley Faye  wrote:
> 

> 
> If you convert the WAV to an other format you will have an approximation
> of the original data with the limitations of the codec of choice. FLAC
> claims to be lossless and offering about 50% storage savings.
> 
> Storage is inexpensive why change the format and lose the original?


For the record, FLAC is lossless: going wav -> flac -> wav recreate the
exact same file, byte by byte.

I can see a few cases where smaller size for the same data is better: it
use less storage (obviously), transfer faster over internet/over other
networks, less memory bandwidth with hardware decoder (granted FLAC
hardware decoder are not that common). I see no advantage, when possible,
to not compress stuff, especially when the process is very fast in both
directions. Processing power is inexpensive too :)

There is something to say for playing an original file when it's almost 
universally playable by hardware at the binary level :) 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread Cley Faye
>
> If you convert the WAV to an other format you will have an approximation
> of the original data with the limitations of the codec of choice. FLAC
> claims to be lossless and offering about 50% storage savings.
>
> Storage is inexpensive why change the format and lose the original?


For the record, FLAC is lossless: going wav -> flac -> wav recreate the
exact same file, byte by byte.

I can see a few cases where smaller size for the same data is better: it
use less storage (obviously), transfer faster over internet/over other
networks, less memory bandwidth with hardware decoder (granted FLAC
hardware decoder are not that common). I see no advantage, when possible,
to not compress stuff, especially when the process is very fast in both
directions. Processing power is inexpensive too :)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread drwho

On 2017-09-01 08:54 AM, PaulYurt wrote:

Rodolfo,
CD audio is encoded 16 bit WAV. If you do a clean read of the CD data to 
computer files, you will have very close to a copy of the original audio WAV 
file (plus error corrections).
I recommend CD paranoia  for the highest 
quality CD ripping. Our $2000 CD Player 
 
uses CD paranoia.


If you convert the WAV to an other format you will have an approximation of the 
original data with the limitations of the codec of choice. FLAC claims to be 
lossless and offering about 50% storage savings.

FLAC is lossless.

Jon
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread Cley Faye
>
> Thanks.  Also the viceversa is as much simpler?


​For audio conversion with no change to layouts etc. it is usually that
simple (but don't trust this blindly; I'm sure one can find subtle issues
if one look hard enough)​



>   And, please, what about wma
> ​ ​
> format?  Is it also lossless?

I saw that the conversion wav > wma and wma >
> ​ ​
> wav is simple as well...
>

​WMA, aside from being proprietary, have multiple variations. There is a
lossless WMA format, but there's no guarantee it will work with anything.
For example, my local installation of ffmpeg can decode WMA Lossless, but
not encode it:

 D.A..S wmalossless  Windows Media Audio Lossless

 D.A.L. wmapro   Windows Media Audio 9 Professional

 DEA.L. wmav1Windows Media Audio 1

 DEA.L. wmav2Windows Media Audio 2

 D.A.L. wmavoice Windows Media Audio Voice

​​
​If your local installation happens to be able to use it, you'll have to
specify on the command line that you want to use 'wmalossless'​ in addition
to the file name. Otherwise it might use another (lossy) version.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread Rodolfo Medina
Cley Faye  writes:

> 2017-09-01 10:55 GMT+02:00 Rodolfo Medina :
>
>> Hi to all ffmpeg users.
>>
>> In order to backup store my audio CDs, I collect them into wav files using
>> icedax, because I read that wav format is lossless.  Now, I've just read
>> that
>> also flac format would be, with the advantage of occupying much less memory
>> space than wav.  As far as you listers know, is that true?  If so, what
>> should
>> the magic formula be to losslessly convert wav to flac and viceversa...?
>
>
> ​Yes, FLAC is lossless. Using ffmpeg to convert from wav to flac is pretty
> straightforward:
>
> $ ffmpeg -i input.wav output.flac
>
> can't be much simpler than that :)
> Of course you can specify a lot of flags for encoding, but by default it
> will try to match the input, which is probably what you want.


Thanks.  Also the viceversa is as much simpler?  And, please, what about wma
format?  Is it also lossless?  I saw that the conversion wav > wma and wma >
wav is simple as well...

Thanks,

Rodolfo

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] flac format

2017-09-01 Thread Cley Faye
2017-09-01 10:55 GMT+02:00 Rodolfo Medina :

> Hi to all ffmpeg users.
>
> In order to backup store my audio CDs, I collect them into wav files using
> icedax, because I read that wav format is lossless.  Now, I've just read
> that
> also flac format would be, with the advantage of occupying much less memory
> space than wav.  As far as you listers know, is that true?  If so, what
> should
> the magic formula be to losslessly convert wav to flac and viceversa...?


​Yes, FLAC is lossless. Using ffmpeg to convert from wav to flac is pretty
straightforward:

$ ffmpeg -i input.wav output.flac

can't be much simpler than that :)
Of course you can specify a lot of flags for encoding, but by default it
will try to match the input, which is probably what you want.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] flac format

2017-09-01 Thread Rodolfo Medina
Hi to all ffmpeg users.

In order to backup store my audio CDs, I collect them into wav files using
icedax, because I read that wav format is lossless.  Now, I've just read that
also flac format would be, with the advantage of occupying much less memory
space than wav.  As far as you listers know, is that true?  If so, what should
the magic formula be to losslessly convert wav to flac and viceversa...?
Thanks in advance for any help...

Regards,

Rodolfo

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".