sean-mahon / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

segfault when trying to make mov from an image (when some command option is not provided) #183

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
./ffmbc -v 3 -f image2 -i V1-0001_P1160144.00102984.j2c -vcodec dnxhd -vb 175M 
-vf scale=-1:1080 test.mov

pid 27860 (ffmbc), uid 1001: exited on signal 8 (core dumped)

FFmbc version 0.7.1
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
[image2 @ 0x802428a00] Could not find codec parameters (Video: unknown 
(0x0000), yuv420p)
Input #0, image2, from 'V1-0001_P1160144.00102984.j2c':
  Duration: 00:00:00.04, bitrate: N/A
    Stream #0.0(und): Video: unknown (0x0000), yuv420p, 25.00 fps
File 'test.mov' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuv420p' for codec 'dnxhd', auto-selecting format 
'yuv422p'
Floating point exception: 8 (core dumped)

What is the expected output? What do you see instead?
Program produce warning instead of segfault.

What version of the product are you using? On what operating system?
0.7.1 on FreeBSD 9.2 x64

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.
- Upload your sample somewhere and supply url

Attached:
1: gdb result
2: intended command that do not crash
3: the source file

Original issue reported on code.google.com by mpatd...@gmail.com on 4 Jun 2014 at 4:43

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the report, Ill fix the sigfpe although the file is not readable 
nonetheless

Original comment by baptiste...@gmail.com on 5 Jun 2014 at 6:31

GoogleCodeExporter commented 8 years ago
FYI the attached image is in JPEG2000 format, it will open in Photoshop.

Original comment by andrew.e...@gmail.com on 11 Jun 2014 at 4:47

GoogleCodeExporter commented 8 years ago
ffmbc does not support j2c

Original comment by baptiste...@gmail.com on 11 Jun 2014 at 4:56

GoogleCodeExporter commented 8 years ago
To my understanding

ffmbc without libopenjpeg does not JPEG2000.
But ffmbc can support JPEG2000 when it is compiled with --enable-libopenjpeg
In my case, I have compiled with the above option.

In the attachment '2-intended command', it actually works. It take j2c and it 
become a MOV file:
ffmbc -v 3 -r 24000/1001 -f image2 -vcodec libopenjpeg -i 
V1-0001_P1160144.00102984.j2c -vcodec dnxhd -vb 175M -vf scale="1920:1080" 
-pix_fmt yuv422p10le -r 24000/1001 ffmbc-dnxhd.mov

For the problem segfault command:
ffmbc -v 3 -f image2 -i V1-0001_P1160144.00102984.j2c -vcodec dnxhd -vb 175M 
-vf scale=-1:1080 test.mov

-vcodec libopenjpeg is not provided, so I think ffmbc do not know the source 
image is in jpeg2000 format.

Original comment by mpatd...@gmail.com on 11 Jun 2014 at 5:16

GoogleCodeExporter commented 8 years ago
ffmbc -v 3 -f image2 -vcodec libopenjpeg -i V1-0001_P1160144.00102984.j2c
Should work with 0.7.2

Original comment by baptiste...@gmail.com on 22 Dec 2014 at 3:53

GoogleCodeExporter commented 8 years ago

Original comment by baptiste...@gmail.com on 22 Dec 2014 at 3:53