jslhs / ffmbc

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

Unable to reset some command line options between output files #161

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For example:-
Try to simultaneous create a stream copy, full resolution file, and resized 
mpeg2 proxy

The -vcodec copy and -acodec copy are carried through from the .mov output to 
the .mpg output. The -vf in the mpg output is ignored and the audio parameters 
are ignored

Using 0.7 rc8

********************************************************************************
**
ffmbc -v 3 -i DJ_12345_00001_d3_sdbcast_2013-03-15-14-02-30.mov \
 -t 10 -y \
-target imx50 -vcodec copy \
-acodec copy \
-map_audio_channel 0:2:0:1:1:0 \
-map_audio_channel 0:3:0:1:1:1 \
-map_audio_channel 0:4:0:1:1:2 \
-map_audio_channel 0:5:0:1:1:3 \
DJ_12345_00001_subclip_2013-03-15-14-02-30.clip_1.mov \
-t 10 -y \
-vf "scale=iw:ih:interl=1, crop=720:576:0:32" \
-target dvd -vb 8000k -minrate 8000k -maxrate 8000k \
-tff \
-acodec mp2 -ab 256k -ar 48k \
-map_audio_channel 0:2:0:0:1:0 \
-map_audio_channel 0:3:0:0:1:1 -ac 2 \
DJ_12345_00001_redux_2013-03-15-14-02-30.clip_1.mpg
FFmbc version 0.7-rc8-by_Tim
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'/mnt/EON-1/Media_hub/beta-archive/watch/DJ_12345_00001_d3_sdbcast_2013-03-15-14
-02-30.mov':
  Metadata:
    major_brand: qt  
    minor_version: 537134592
    compatible_brands: qt  
    timecode: 13:12:32:24
  Duration: 00:00:59.36, bitrate: 55272 kb/s
    Stream #0.0(eng): Data: unknown (tmcd)
    Metadata:
      reel_name(eng): d3spt5001
    Stream #0.1(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], 50000 kb/s, PAR 16:15 DAR 24:19, 25.00 fps
    Stream #0.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.5(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
Error, target dvd only supports 720x576(pal) or 720x480(ntsc) resolutions
******************************************************************************
swop the output file order around:-

******************************************************************************
ffmbc -v 3 -i DJ_12345_00001_d3_sdbcast_2013-03-15-14-02-30.mov \
-t 10 -y \
-vf "scale=iw:ih:interl=1, crop=720:576:0:32" \
-target dvd -vb 8000k -minrate 8000k -maxrate 8000k \
-tff \
-acodec mp2 -ab 256k -ar 48k \
-map_audio_channel 0:2:0:0:1:0 \
-map_audio_channel 0:3:0:0:1:1 -ac 2 \
DJ_12345_00001_redux_2013-03-15-14-02-30.clip_1.mpg \
 -t 10 -y \
-target imx50 -vcodec copy \
-acodec copy \
-map_audio_channel 0:2:0:1:1:0 \
-map_audio_channel 0:3:0:1:1:1 \
-map_audio_channel 0:4:0:1:1:2 \
-map_audio_channel 0:5:0:1:1:3 \
DJ_12345_00001_subclip_2013-03-15-14-02-30.clip_1.mov \
FFmbc version 0.7-rc8-by_Tim
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'DJ_12345_00001_d3_sdbcast_2013-03-15-14-02-30.mov':
  Metadata:
    major_brand: qt  
    minor_version: 537134592
    compatible_brands: qt  
    timecode: 13:12:32:24
  Duration: 00:00:59.36, bitrate: 55272 kb/s
    Stream #0.0(eng): Data: unknown (tmcd)
    Metadata:
      reel_name(eng): d3spt5001
    Stream #0.1(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], 50000 kb/s, PAR 16:15 DAR 24:19, 25.00 fps
    Stream #0.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.5(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
[scale @ 0x3139ce0] w:720 h:608 fmt:yuv422p -> w:720 h:608 fmt:yuv420p 
flags:0x4 il:1
[crop @ 0x313d7e0] w:720 h:608 -> w:720 h:576
Incompatible sample format 's32' for codec 'mp2', auto-selecting format 's16'
Output #0, dvd, to 'DJ_12345_00001_redux_2013-03-15-14-02-30.clip_1.mpg':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: mpeg2video, yuv420p, 720x576i tff [PAR 16:15 DAR 4:3], cbr, 8000 kb/s, 25.00 fps
    Stream #0.1(und): Audio: mp2, 48000 Hz, 2 channels, s16, 256 kb/s
Output #1, mov, to 'DJ_12345_00001_subclip_2013-03-15-14-02-30.clip_1.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #1.0(und): Video: mpeg2video, yuv422p, 720x608i tff [PAR 16:15 DAR 24:19], stream copy, 25.00 fps
    Stream #1.1(und): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, stream copy
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.2 -> #0.1 [channel: 0 -> 0]
  Stream #0.3 -> #0.1 [channel: 0 -> 1]
  Stream #0.1 -> #1.0
  Stream #0.2 -> #1.1 [channel: 0 -> 0]
  Stream #0.3 -> #1.1 [channel: 0 -> 1]
  Stream #0.4 -> #1.1 [channel: 0 -> 2]
  Stream #0.5 -> #1.1 [channel: 0 -> 3]
Press [q] to stop, [?] for help
frame=   16 fps= 63 q=1.6 size=       0kB time=00:00:00.00 bitrate=   
0.0kbits/s eta=N/A
[mov @ 0x313b000] Application provided invalid, non monotonically increasing 
dts to muxer in stream 1: 36480 >= 0
av_interleaved_write_frame(): Invalid argument
******************************************************************************
change the -acodec copyL-
*****************************************************************************
ffmbc -v 3 -i DJ_12345_00001_d3_sdbcast_2013-03-15-14-02-30.mov \
-t 10 -y \
-vf "scale=iw:ih:interl=1, crop=720:576:0:32" \
-target dvd -vb 8000k -minrate 8000k -maxrate 8000k \
-tff \
-acodec mp2 -ab 256k -ar 48k \
-map_audio_channel 0:2:0:0:1:0 \
-map_audio_channel 0:3:0:0:1:1 -ac 2 \
DJ_12345_00001_redux_2013-03-15-14-02-30.clip_1.mpg \
 -t 10 -y \
-target imx50 -vcodec copy \
-acodec pcm_s24le \
-map_audio_channel 0:2:0:1:1:0 \
-map_audio_channel 0:3:0:1:1:1 \
-map_audio_channel 0:4:0:1:1:2 \
-map_audio_channel 0:5:0:1:1:3 \
DJ_12345_00001_subclip_2013-03-15-14-02-30.clip_1.mov
FFmbc version 0.7-rc8-by_Tim
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
'DJ_12345_00001_d3_sdbcast_2013-03-15-14-02-30.mov':
  Metadata:
    major_brand: qt  
    minor_version: 537134592
    compatible_brands: qt  
    timecode: 13:12:32:24
  Duration: 00:00:59.36, bitrate: 55272 kb/s
    Stream #0.0(eng): Data: unknown (tmcd)
    Metadata:
      reel_name(eng): d3spt5001
    Stream #0.1(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], 50000 kb/s, PAR 16:15 DAR 24:19, 25.00 fps
    Stream #0.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.5(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
[scale @ 0x32fe360] w:720 h:608 fmt:yuv422p -> w:720 h:608 fmt:yuv420p 
flags:0x4 il:1
[crop @ 0x3301b60] w:720 h:608 -> w:720 h:576
Incompatible sample format 's32' for codec 'mp2', auto-selecting format 's16'
Output #0, dvd, to 'DJ_12345_00001_redux_2013-03-15-14-02-30.clip_1.mpg':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: mpeg2video, yuv420p, 720x576i tff [PAR 16:15 DAR 4:3], cbr, 8000 kb/s, 25.00 fps
    Stream #0.1(und): Audio: mp2, 48000 Hz, 2 channels, s16, 256 kb/s
Output #1, mov, to 'DJ_12345_00001_subclip_2013-03-15-14-02-30.clip_1.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #1.0(und): Video: mpeg2video, yuv422p, 720x608i tff [PAR 16:15 DAR 24:19], stream copy, 25.00 fps
    Stream #1.1(und): Audio: pcm_s24le, 48000 Hz, 4 channels, s32, 4608 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.2 -> #0.1 [channel: 0 -> 0]
  Stream #0.3 -> #0.1 [channel: 0 -> 1]
  Stream #0.1 -> #1.0
  Stream #0.2 -> #1.1 [channel: 0 -> 0]
  Stream #0.3 -> #1.1 [channel: 0 -> 1]
  Stream #0.4 -> #1.1 [channel: 0 -> 2]
  Stream #0.5 -> #1.1 [channel: 0 -> 3]
Press [q] to stop, [?] for help
frame=  250 fps= 37 q=2.5 Lsize=   10196kB time=00:00:09.98 
bitrate=8365.9kbits/s               
video:70831kB audio:5938kB global headers:0kB muxing overhead -86.718555%
**************************************************************************

You get similar issues if you set -tff on the first stream and try to 
deinterlace the second (its still flagged as interlaced)

Original issue reported on code.google.com by t...@orange.net on 14 Oct 2013 at 11:02

GoogleCodeExporter commented 8 years ago
Yes it is intended, you need to set another -vcodec option for the other output 
file if you want to change the codec.
I'll fix the -tff not resetting though.

Original comment by baptiste...@gmail.com on 16 Oct 2013 at 12:15

GoogleCodeExporter commented 8 years ago
If you look at the supplied first example, even though another -vcodec option 
is specified (implied by the -target option, and still fails even when set 
explicitly) the transcode fails because the second filter is ignored and it 
tries to make a 720 x608 mpeg2 no thte cropped 720 x 576 requested.

Original comment by t...@orange.net on 24 Oct 2013 at 6:12

GoogleCodeExporter commented 8 years ago

Original comment by baptiste...@gmail.com on 1 Apr 2014 at 4:31