[FFmpeg-user] a lot of "buffer underflow st=1 bufi=684 size=1152" when mpeg-2 encoding

2016-03-11 Thread linxs
Hi, everyone I am in trouble when encoding mpg-2. the command is: ffmpeg -i legend.mpg -af asetpts=PTS+0.010/TB -c:v mpeg2video -b:v 8M -maxrate:v 8M -minrate:v 8M -g 15 -bf 2 -c:a libtwolame -psymodel 4 -b:a 384k -f dvd -muxrate 8420400 -y out.mpg Some of video (such as legend.mpg) led to a

[FFmpeg-user] Does ffmpeg support to limit every frame bit length?

2016-03-03 Thread linxs
Hi, everybody, I want to set the limit of maximum bit length of every frame of MPEG-2 bitstream. So all the I/P/B frame bit lengths are not exceed the limit. Does ffmpeg support it? Thanks! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffm

[FFmpeg-user] How to change PTS in MPG files?

2016-02-26 Thread linxs
Dear Sir, I have a trouble about setting PTS of video and audio of MPEG-2 mpg file. I use setpts and asetpts as following commands: ffmpeg -i INPUTVIDEO -vf "setpts="setpts=PTS-STARTPTS-1/TB" -af "asetpts=PTS+0.010/TB" -c:v mpeg2video -b:v 10M -c:a mp2 -b:a 384k -y OUT1.mpg ffmpeg -i INPUTVIDEO -

Re: [FFmpeg-user] that does delay of mpg mean?

2016-02-26 Thread linxs
Sorry for the wrong title , it is: what does it means? 2016-02-26 18:31 GMT+08:00 linxs : > Dear Sir, > > I use this command to make mpg file: > ffmpeg -i INPUTVIDEO -af "asetpts=PTS+0.010/TB" -c:v mpeg2video -b:v > 10M -c:a mp2 -b:a 384k -y OUT.mpg > >

[FFmpeg-user] that does delay of mpg mean?

2016-02-26 Thread linxs
Dear Sir, I use this command to make mpg file: ffmpeg -i INPUTVIDEO -af "asetpts=PTS+0.010/TB" -c:v mpeg2video -b:v 10M -c:a mp2 -b:a 384k -y OUT.mpg Then I use MediaInfo to get all properties of OUT.mpg. I found there is 540 ms "Delay" property for video and audio. Can anybody tell me what do

[FFmpeg-user] how to convert audio from L/R stereo to 5.1 surrounding

2016-01-27 Thread linxs
Hi, I have an L/R stereo audio and want to get 5.1 surrounding audio from it. Can ffmpeg do this conversion? Thank you! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Re: [FFmpeg-user] ProRes -> MPEG2 bug: color shifting?

2015-08-15 Thread linxs
Thank you for you repy! "There is a horrible bug in Quicktime that causes gamma shifts" --> Can you tell more detail? Thanks! 2015-08-13 19:17 GMT+08:00 Bouke (VideoToolShed) : > Original Message ----- From: "linxs" > To: "FFmpeg user questions" &g

Re: [FFmpeg-user] [prores] Why a little color difference by converting from ProRes 422 to MPEG-2

2015-08-12 Thread linxs
I put the MOV file: http://yun.wfnoc.com/files/proress_hq.mov Can anybody help me? 2015-07-27 8:13 GMT+08:00 linxs : > In "Sequence display extension" of MPEG-2, color_primaries =1 means ITU > 709, 5 means ITU 470(seems to be ITU 601). > I have tried color_primaries =1 and

[FFmpeg-user] ProRes -> MPEG2 bug: color shifting?

2015-08-12 Thread linxs
Hi, I need helps for color shifting. Is it bug? or I am wrong with the usage? I get a .mov file and its video format is "ProRes 422, 24 fps, 1920x1080, BT.709". I put the MOV file in this mail as attachment "proress_hq.mov", and only one frame in this MOV. Using ffmpeg to convert it to MPEG-2: f

[FFmpeg-user] Fwd: Color Shifting from MOV to MPEG2

2015-08-11 Thread linxs
Hi, I get a .mov file and its video format is "ProRes 422, 24 fps, 1920x1080, BT.709". I put the MOV file: http://yun.wfnoc.com/files/proress_hq.mov Only one frame in this MOV. Using ffmpeg to convert it to MPEG-2: ffmpeg -i proress_hq.mov -c:v mpeg2video -b:v 30M -pix_fmt yuv420p my.m2v I compa

Re: [FFmpeg-user] [prores] Why a little color difference by converting from ProRes 422 to MPEG-2

2015-07-26 Thread linxs
In "Sequence display extension" of MPEG-2, color_primaries =1 means ITU 709, 5 means ITU 470(seems to be ITU 601). I have tried color_primaries =1 and color_primaries =5 and it did work to change the bit in mpeg-2 bitstream. 2015-07-27 8:04 GMT+08:00 Carl Eugen Hoyos : > lin

Re: [FFmpeg-user] [prores] Why a little color difference by converting from ProRes 422 to MPEG-2

2015-07-26 Thread linxs
t stream #0:0 (video): 1 packets read (909168 bytes); 1 frames decoded; Input stream #0:1 (data): 0 packets read (0 bytes); Total: 1 packets (909168 bytes) demuxed Output file #0 (hq_mp2_dispext.m2v): Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (71608 bytes); Total: 1 pack

[FFmpeg-user] [prores] Why a little color difference by converting from ProRes 422 to MPEG-2

2015-07-26 Thread linxs
Hi, I get a .mov file and its video format is "ProRes 422, 24 fps, 1920x1080, BT.709". Using ffmpeg to convert it to MPEG-2: ffmpeg -i my.mov -c:v mpeg2video -b:v 30M -pix_fmt yuv420p my.m2v I compared them by previewing "my.mov" and "my.m2v" in Edius and I found there is a little color differenc

Re: [FFmpeg-user] [help] how to encode mpeg2 stream with pixel_format = yuv422?

2015-03-15 Thread linxs
Hi, Moritz, Thank you! I use -pix_fmt instead, and it works as expected. 2015-03-14 18:22 GMT+08:00 Moritz Barsnick : > Hi linxs, > > On Sat, Mar 14, 2015 at 16:06:48 +0800, linxs wrote: > > I try command like this: > > ffmpeg -i .m2ts -c:v mpeg2video -pixel_for

[FFmpeg-user] [help] how to encode mpeg2 stream with pixel_format = yuv422?

2015-03-14 Thread linxs
I try command like this: ffmpeg -i .m2ts -c:v mpeg2video -pixel_format "yuv422p" out.mpg but the output pixel format is always "yuv420". How to ? thanks! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-u

Re: [FFmpeg-user] [mp2] how to encode high-pitch audio to mp2 file?

2014-09-25 Thread linxs
And, how to use twolame? Can towlame support to make mp2? 2014-09-25 20:52 GMT+08:00 linxs : > > I had another test using Edius. > I found that Edius can encode mp2 audio by the same param(bitrate, > samplerate) containing high pitch audio. > So I think ffmpeg should be able

Re: [FFmpeg-user] [mp2] how to encode high-pitch audio to mp2 file?

2014-09-25 Thread linxs
eliminated. Is there any way to keep the high pitch audio in mp2 made by ffmpeg? Thanks! 2014-09-25 19:46 GMT+08:00 Moritz Barsnick : > On Thu, Sep 25, 2014 at 17:42:46 +0800, linxs wrote: > > How can I use mp2 to encode high pitch audio? > > Whether a 19 kHz tone is properly encoded o

[FFmpeg-user] [mp2] how to encode high-pitch audio to mp2 file?

2014-09-25 Thread linxs
An audio file, whoes param is: 48k, 2 channel, 16bit. The audio is sine wave and only has one frequecy: 19500Hz. I use the this command: ffmpeg -i 195khz.wav -b:a 384k -c:a mp2 195.mp2 then, ffmpeg -i 195.mp2 195-re.wav The problem is: the high-pitch sine wave from original audio is eliminated comp

Re: [FFmpeg-user] (mpeg2) how to set "audio delay relative to video" as 0 ?

2014-09-19 Thread linxs
One more question, why ffmpeg add "-10ms" for video delay relative to video? Thank you! 2014-09-19 21:39 GMT+08:00 linxs : > Thank you ! > "asetpts=PTS+0.010/TB" works! > > > 2014-09-18 18:40 GMT+08:00 Stefano Sabatini : > >> On date Thursday 20

Re: [FFmpeg-user] (mpeg2) how to set "audio delay relative to video" as 0 ?

2014-09-19 Thread linxs
Thank you ! "asetpts=PTS+0.010/TB" works! 2014-09-18 18:40 GMT+08:00 Stefano Sabatini : > On date Thursday 2014-09-18 08:58:33 +0800, linxs wrote: > > D:\>ffprobe 0.mpg > > ffprobe version N-63439-g96470ca Copyright (c) 2007-2014 the FFmpeg > > developers &

Re: [FFmpeg-user] (mpeg2) how to set "audio delay relative to video" as 0 ?

2014-09-17 Thread linxs
2014-09-17 19:44:02 +0800, linxs wrote: > > Hi everybody, > > I transcode other video to mpg2 video as following command: > > ffmpeg -i

[FFmpeg-user] (mpeg2) how to set "audio delay relative to video" as 0 ?

2014-09-17 Thread linxs
Hi everybody, I transcode other video to mpg2 video as following command: ffmpeg -i -c:v mpeg2video -b:v 8000k -c:a mp2 -y 0.mpg / /*