[FFmpeg-user] Problem trying to convert PAL file to NTSC
vsethi at iglou.com
vsethi at iglou.com
Thu Mar 24 01:48:11 CET 2011
belcampo wrote:
> You need to specify -sn on your command line, to disable the
> subtitle-part in the source.
> What you seem to have AFAIK is a MPEG2-TS container, broadcast, with
> 1 video
> 1 subtitle
> 4 audio-streams.
> ffmpeg AFAIK doesn't know how to handle the subtitle stream. You'll have
> to explicitedly disable it with the -sn parameter.
> If you would like to have another audiostream then the first one, you'll
> have to use the map functions.
> For video + 2nd audio stream you would need:
> ffmpeg -i source.mpg copy or encode parameters -map 0:0 -map 0:3
> destination.mpg
Thanks for your help. I've continued to play with this, without success.
I've specified not only -sn, as you suggest, but also -an as a test to
keep the audio streams from interfering. ffmpeg accepts this command
line but, unfortunately, it's crashing with an illegal instruction error
and generates only an empty output file.
I am wondering if any of the following needs to be addressed:
1. max_analyze_duration reached
2. stream 0 codec frame rate differs from container frame rate
3. bitrate: -2147483 kb/s
This is what it is doing now:
==========================================================================
ffmpeg -f mpeg -i image.mpg -sn -an -target ntsc-dvd image.out
FFmpeg version git-31ff9bd, Copyright (c) 2000-2011 the FFmpeg developers
built on Mar 12 2011 11:21:15 with gcc 4.1.2
configuration:
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
[mpeg @ 0x8b8f600] max_analyze_duration reached
[mpeg @ 0x8b8f600] Further flags set but no bytes left
Last message repeated 1 times
Last message repeated 2 times
Last message repeated 3 times
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 5000.00 (5000/1)
Last message repeated 3 times
Input #0, mpeg, from 'image.mpg':
Duration: 00:00:02.73, start: 0.066600, bitrate: -2147483 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9282 kb/s, 25 fps, 5k tbr, 90k tbn, 50 tbc
Stream #0.1[0x20]: Subtitle: dvdsub
Stream #0.2[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
Stream #0.3[0x1ce]: Audio: mp2, 0 channels
Stream #0.4[0x1d1]: Audio: mp2, 0 channels
Stream #0.5[0x1d7]: Audio: mp2, 0 channels
[buffer @ 0x8ba2bd0] w:720 h:576 pixfmt:yuv420p
[scale @ 0x8ba2f90] w:720 h:576 fmt:yuv420p -> w:720 h:480 fmt:yuv420p flags:0xa0000004
Output #0, dvd, to 'image.out':
Metadata:
encoder : Lavf52.102.0
Stream #0.0: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
Illegal instruction
More information about the ffmpeg-user
mailing list