hongbinz / ffmbc

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

0.7-rc9, After cutting a h.264 movie, but ffmbc can't playback #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using FFmbc 0.7-rc9 to trim a h.264 movie by copying the vcodec/acodec.
But after doing that, I can't playback the file.
2.
3.

What is the expected output? What do you see instead?
The h.264 movie can be played back.

What version of the product are you using? On what operating system?
FFmbc-0.7-rc9. Fedora 20 Linux 64bit.

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.

1. This is the media info of the original file.
$ mediainfo P1180037.MOV
General
Complete name                            : P1180037.MOV
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt
File size                                : 830 MiB
Duration                                 : 2mn 28s
Overall bit rate mode                    : Variable
Overall bit rate                         : 46.9 Mbps
Encoded date                             : UTC 2014-04-19 16:55:24
Tagged date                              : UTC 1982-05-04 22:50:55
PANA                                     : DMC-GH3

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 28s
Bit rate mode                            : Variable
Bit rate                                 : 45.3 Mbps
Maximum bit rate                         : 49.2 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.911
Stream size                              : 803 MiB (97%)
Encoded date                             : UTC 2014-04-19 16:55:24
Tagged date                              : UTC 1982-05-04 22:50:55
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 2mn 28s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 27.2 MiB (3%)
Encoded date                             : UTC 2014-04-19 16:55:24
Tagged date                              : UTC 1982-05-04 22:50:55

Other
ID                                       : 3
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 2mn 28s
Time code of first frame                 : 14:03:14:00
Time code settings                       : Striped
Encoded date                             : UTC 2014-04-19 16:55:24
Tagged date                              : UTC 1982-05-04 22:50:55
Bit rate mode                            : CBR

-------------------------------------------------------------------------

2. The command to cut the file:
$ ffmbc -i P1180037.MOV -acodec copy -vcodec copy -ss 00:01:29 -v 3 -loglevel 
debug P1180037-cut.mov
FFmbc version 0.7-rc9
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1180037.MOV':
  Metadata:
    major_brand: qt
    minor_version: 537986816
    compatible_brands: qt  pana
    timecode: 14:03:14:00
  Duration: 00:02:28.64, bitrate: 46864 kb/s
    Stream #0.0(und): Video: h264 (High), yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], 45302 kb/s, 23.98 fps
    Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.2(und): Data: unknown (tmcd)
File 'P1180037-cut.mov' already exists. Overwrite ? [y/N] y
Output #0, mov, to 'P1180037-cut.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und), 0, 1/24000: Video: h264, yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], tbc 1001/24000, stream copy, 23.98 fps
    Stream #0.1(und), 0, 1/48000: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, stream copy
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
Stream #0.0 dropping frames before first keyframe pts 32026995 dts 32026995 
duration 15015 size 149782 flags 0
Stream #0.0 dropping frames before first keyframe pts 32042010 dts 32042010 
duration 15015 size 148707 flags 0
[mov @ 0x157fee0] replacing header in front, copying 337.69MB
frame= 1428 fps=696 Lsize=  345817kB time=00:00:00.00 bitrate=   0.0kbits/s
video:334616kB audio:11179kB global headers:0kB muxing overhead 0.006364%

-------------------------------------------------------------------------

3. This is the mediainfo of the output file
$ mediainfo P1180037-cut.mov
General
Complete name                            : P1180037-cut.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt
File size                                : 338 MiB
Duration                                 : 59s 649ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 47.5 Mbps
Encoded date                             : UTC 2014-04-20 15:22:00
Tagged date                              : UTC 2014-04-20 15:22:00
Writing application                      : FFmbc 0.7

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 59s 649ms
Source duration                          : 59s 560ms
Bit rate mode                            : Variable
Bit rate                                 : 44.1 Mbps
Maximum bit rate                         : 49.2 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.886
Stream size                              : 313 MiB (93%)
Source stream size                       : 327 MiB (97%)
Language                                 : English
Encoded date                             : UTC 2014-04-20 15:22:00
Tagged date                              : UTC 2014-04-20 15:22:00
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 59s 649ms
Source duration                          : 59s 620ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 10.9 MiB (3%)
Source stream size                       : 10.9 MiB (3%)
Language                                 : English
Encoded date                             : UTC 2014-04-20 15:22:00
Tagged date                              : UTC 2014-04-20 15:22:00

-------------------------------------------------------------------------

4. Trying to play the file but not successful
$ ffmbc-ffplay P1180037-cut.mov
ffplay version 0.7-rc9
Copyright (c) 2003-2014 Baptiste Coudurier and the FFmpeg developers
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f73f8005c00] Could not find codec parameters 
(Video: h264, 1920x1080p, 45955 kb/s)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1180037-cut.mov':
  Metadata:
    major_brand: qt
    minor_version: 0
    compatible_brands: qt
    encoder: FFmbc 0.7
  Duration: 00:00:59.64, bitrate: 47493 kb/s
    Stream #0.0(eng): Video: h264, 1920x1080p, 45955 kb/s, 23.98 fps
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
[graph @ 0x7f73f0000ac0] Impossible to convert between the formats supported by 
the filter 'src' and the filter 'auto-inserted scaler 0'
^C   1.92 A-V:-1398007355.296 s:0.0 aq=   22KB vq=  858KB sq=    0B f=0/0

--------------------------------------------------------------------------

5. This is the ffmbc built info:
FFmbc version 0.7-rc9
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
ffmbc: missing argument for option 'v'
$ ffmbc -version
FFmbc version 0.7-rc9
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
built on Apr 15 2014 10:55:03 with gcc 4.8.2 20131212 (Red Hat 4.8.2-7)
configuration: --enable-nonfree --enable-gpl --enable-libx264 --enable-libvpx 
--enable-ffplay --enable-static --disable-shared --enable-libvorbis 
--disable-debug --enable-vaapi --enable-hwaccel=h263_vaapi 
--enable-hwaccel=vc1_vaapi --enable-hwaccel=mpeg2_vaapi 
--enable-hwaccel=h264_vaapi --enable-hwaccel=mpeg4_vaapi 
--enable-hwaccel=wmv3_vaapi --enable-x11grab --enable-libfaac 
--enable-runtime-cpudetect --enable-x11grab --enable-libfreetype 
--enable-libopenjpeg --enable-libschroedinger --enable-vdpau
libavutil    51. 11. 0 / 51. 11. 0
libavcodec   53.  9. 0 / 53.  9. 0
libavformat  53.  6. 0 / 53.  6. 0
libavdevice  53.  2. 0 / 53.  2. 0
libavfilter   2. 27. 3 /  2. 27. 3
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  51.  2. 0 / 51.  2. 0

Original issue reported on code.google.com by mpatd...@gmail.com on 22 Apr 2014 at 4:34

GoogleCodeExporter commented 9 years ago
I need the source file

Original comment by baptiste...@gmail.com on 22 Apr 2014 at 7:24

GoogleCodeExporter commented 9 years ago
Hi Baptiste,

I have send you a separate mail about the location of the file.

Patrick

Original comment by mpatd...@gmail.com on 22 Apr 2014 at 7:39

GoogleCodeExporter commented 9 years ago
Humm was that working with rc8 ?

Original comment by baptiste...@gmail.com on 22 Apr 2014 at 11:39

GoogleCodeExporter commented 9 years ago
Tried rc8, it is working. Info is attached at the end.
As a side note, I noticed two things:

1) In the past, I use camera default timecode setting (start at 00:00:00) and 
rec run. In this shooting section, I tried to set the starting timecode to be 
the current time and use rec run).
I have noticed there is playback issue on MPC-PC video player ver 1.7.4 and 
ffmpeg's ffplay, but there is no problem with windows media player.

2) I tried the cutting with ffmpeg's (built around one week ago). It can cut 
the video, but the audio is lost, there is loud noise on the playback. ffmpeg's 
latest version (git) seems to have no problem.

Thanks.

----------------------------
For ffmbc  0.7 rc8:

$ /mnt-data/vg30/lx-prog/ffmbc-0.7rc8/ffmbc -v 3 -i P1180037.MOV -acodec copy 
-vcodec copy -ss 00:01:29 -v 3 -loglevel debug P1180037-cut.mov
FFmbc version 0.7-rc8
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1180037.MOV':
  Metadata:
    major_brand: qt
    minor_version: 537986816
    compatible_brands: qt  pana
    timecode: 14:03:14:00
  Duration: 00:02:28.64, bitrate: 46864 kb/s
    Stream #0.0(und): Video: h264 (High), yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], 45302 kb/s, 23.98 fps
    Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.2(und): Data: unknown (tmcd)
Output #0, mov, to 'P1180037-cut.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und), 0, 1/24000: Video: h264, yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], tbc 1001/24000, stream copy, 23.98 fps
    Stream #0.1(und), 0, 1/48000: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, stream copy
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
    Last message repeated 9 timeskB time=00:00:00.00 bitrate=   0.0kbits/s eta=N/A
    Last message repeated 9 times
Stream #0.0 dropping frames before first keyframe pts 32026995 dts 32026995 
duration 15015 size 149782 flags 0
Stream #0.0 dropping frames before first keyframe pts 32042010 dts 32042010 
duration 15015 size 148707 flags 0
frame= 1428 fps=161 Lsize=  345826kB time=00:00:00.00 bitrate=   0.0kbits/s
video:334616kB audio:11179kB global headers:0kB muxing overhead 0.009171%

$ /mnt-data/vg30/lx-prog/ffmbc-0.7rc8/ffmbc-ffplay P1180037-cut.mov
ffplay version 0.7-rc8
Copyright (c) 2003-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'P1180037-cut.mov':
  Metadata:
    major_brand: qt
    minor_version: 0
    compatible_brands: qt
    encoder: FFmbc 0.7
  Duration: 00:00:59.64, bitrate: 47494 kb/s
    Stream #0.0(eng): Video: h264 (High), yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], 45955 kb/s, 23.98 fps
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
[scale @ 0x7f6e54001700] w:1920 h:1088 fmt:yuvj420p -> w:1920 h:1088 
fmt:yuv420p flags:0x4 il:0
^C14.27 A-V:  0.404 s:12.9 aq=  315KB vq= 9286KB sq=    0B f=0/0     /0

Original comment by mpatd...@gmail.com on 23 Apr 2014 at 4:28

GoogleCodeExporter commented 9 years ago
Confirmed, I'll fix it asap

Original comment by baptiste...@gmail.com on 23 Apr 2014 at 6:22

GoogleCodeExporter commented 9 years ago
Fixed in 0.7 final

Original comment by baptiste...@gmail.com on 23 Apr 2014 at 6:43

GoogleCodeExporter commented 9 years ago
I have run the same command using the new version.
The problem should be fixed.

Thanks.

Original comment by mpatd...@gmail.com on 23 Apr 2014 at 7:45