22 May 2013 14:43
22 May 2013 04:49
About audio convert
暗夜龙凌 <anyelongling <at> hotmail.com>
2013-05-22 02:49:56 GMT
2013-05-22 02:49:56 GMT
Firstly, I am costing your time,but it’s really emergency.
I am developing a program about audio convert,it’s my graduation design for my university.
I use C# call avconv to work it out,but it’s not work.
Here is my call function:
public static void ExcuteProcess(string exe, string arg)
{
System.Diagnostics.ProcessStartInfo p = new System.Diagnostics.ProcessStartInfo(exe, arg);
p.UseShellExecute = false;
p.CreateNoWindow = true;
p.RedirectStandardError = true;
p.RedirectStandardOutput = true;
System.Diagnostics.Process listFiles;
listFiles = System.Diagnostics.Process.Start(p);
System.IO.StreamReader myOutput = listFiles.StandardOutput;
System.IO.StreamReader myOut = listFiles.StandardError;
listFiles.WaitForExit();
if (listFiles.HasExited)
{
output = myOutput.ReadToEnd();
errorput = myOut.ReadToEnd();
}
}
Here is my code:
string in_file = "D:\\One.mp3";
string out_file = "D:\\test.wav";
//Boolean ret = false;
//ret = convertAudio(in_file, out_file);
//if (!ret)
// MessageBox.Show("failed!");
//else
(Continue reading)
22 May 2013 17:47
Transmux H.264 MP4 to MPEG-TS?
Virginia <virginia975 <at> gmail.com>
2013-05-22 15:47:21 GMT
2013-05-22 15:47:21 GMT
I have MP4 multiple bitrate (MBR) files that I need to keep the H.264/AAC streams and transmux into MPEG-TS so that I can package them as HLS packages. Does anyone know if this is possible with FFmpeg and how I would pass through the basename to the output as well? Thanks in advance.
22 May 2013 13:08
deinterlacing with ntsc-dvd
Matthew Morgan <matthew <at> lifandi.org>
2013-05-22 11:08:05 GMT
2013-05-22 11:08:05 GMT
I'm having trouble with some material I'm converting to DVD with ffmpeg; there is significant ghosting on
some players, and some google searches have pointed out that this is often related to interlacing.
The source materialis interlaced, top-field dominant, but when I run it throughffmpeg using "-target
ntsc-dvd", mediainfo shows the output as being progressive.
Here is my ffmpeg command line:
ffmpeg -i dora_fairytale_cut.mpg -pass 1 -target ntsc-dvd -b:v 4000K /dev/null && ffmpeg -i
dora_fairytale_cut.mpg -pass 2 -target ntsc-dvd -b:v 4000K dora_fairytale_cut_compressed.mpg
ffmpeg version N-53018-ge70e258 Copyright (c) 2000-2013 the FFmpeg developers
built on May 13 2013 07:50:37 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/opt/mmedia --enable-libxvid --enable-gpl --enable-libtheora
--enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libv4l2 --enable-x11grab --enable-libvpx
libavutil 52. 30.100 / 52. 30.100
libavcodec 55. 9.100 / 55. 9.100
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 65.100 / 3. 65.100
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[mpeg <at> 0xa43ae00] max_analyze_duration 5000000 reached at 5024000 microseconds
[NULL <at> 0xa43b780] start time is not set in estimate_timings_from_pts
Input #0, mpeg, from 'dora_fairytale_cut.mpg':
Duration: 00:46:56.26, start: 0.500000, bitrate: 6569 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr,
90k tbn, 59.94 tbc
(Continue reading)
22 May 2013 12:36
Confusion between PAR and SAR
Massimo Battistel <battistel <at> gmail.com>
2013-05-22 10:36:33 GMT
2013-05-22 10:36:33 GMT
Hello, maybe this has already been discussed here: https://ffmpeg.org/trac/ffmpeg/ticket/1776 but I think there is still something wrong. I think ffmpeg confuses PAR with SAR. See the output below. The video is an SD 16:9, DAR is correct, but 64:45 is the PAR. SAR is 720/576=1.25. ffmpeg and ffprobe show the same behaviour. ffplay version N-50442-g4f0d4ac Copyright (c) 2003-2013 the FFmpeg developers built on Mar 2 2013 15:33:19 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.103 / 52. 17.103 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.102 / 54. 63.102(Continue reading)
22 May 2013 07:42
How to fix audio/video out of sync problem
肖谋 <xiaomou <at> gmail.com>
2013-05-22 05:42:45 GMT
2013-05-22 05:42:45 GMT
Hi, all.
I have a mp4 file 1.mp4 in which the audio is about 2 seconds ahead of
video. I want to fix this using ffmpeg without transcoding, just copy. My
method is a little complicated.
1. use ffmpeg to split the video and audio into two mp4 file :
ffmpeg -i 1.mp4 -acodec copy -vn video.mp4
ffmpeg -i 1.mp4 -vcodec copy -an audio.mp4
I found that the duration of the video.mp4 file is 74 seconds and that of
the audio.mp4 is 72 seconds.
2. strip the first 2 seconds of the audio: ffmpeg -i audio.mp4 -ss 2
-acodec copy audio_stripped.mp4
3. merge audio_stripped.mp4 and video.mp4 into one mp4. And the resulting
mp4 is a/v synced.
So, my question is: is there a simple, effective, automated solution to
fix this kind of problem.
By the way, if the mp4 is transcoded, the resulting mp4 is also a/v synced.
Thanks!
Regards
xiaomou
22 May 2013 07:33
Webcam capture with ffmpeg on Windows: need help with raw capture + preview window.
Paul Goins <general <at> vultaire.net>
2013-05-22 05:33:48 GMT
2013-05-22 05:33:48 GMT
Hi,
I've been experimenting with ffmpeg as a replacement for the abysmal
webcam software provided with my Logitech web cam. I'm not an ffmpeg
pro by any means; I'm studying a lot though and have put in
significant effort to try to figure this out myself. Pointers would
be really helpful.
Basically, I'm trying to do a "raw" 720p webcam/microphone capture via
dshow, and am also trying to hook in a preview window via ffplay.
My command line looks like this (line breaks inserted for readability):
ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 \
-i video="Logicool HD Webcam C310":audio="マイク (Realtek High Definition Au" \
-vcodec copy -acodec copy -r 30 -threads 4 output.avi \
-s 426x240 -pix_fmt yuv420p -f rawvideo - \
| ffplay -f rawvideo -pixel_format yuv420p -video_size 426x240 -
And for completeness, my input streams look like:
Input #0, dshow, from 'video=Logicool HD Webcam C310:audio=繝槭う繧ッ (Realtek High Definition Au':
Duration: N/A, start: 175477.576000, bitrate: 1411 kb/s
Stream #0:0: Video: rawvideo, bgr24, 1280x720, 30 tbr, 10000k tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Problems encountered are:
1. ffplay output is delayed by a second or two.
(Continue reading)
21 May 2013 20:37
Installing on Ubuntu Error: libx264 not found
Joel <jlopez <at> intelecom.org>
2013-05-21 18:37:00 GMT
2013-05-21 18:37:00 GMT
Hi, I've been using this guide: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide I copy and paste the blocks of test and all seems to go well until the ffmpeg part. I get this error: "ERROR: libx264 not found" Any ideas on what could be going wrong? Here's the tail of my log file as well. Thanks, Joel gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/home/jlopez/ffmpeg_build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/opus -c -o /tmp/ffconf.PhBG0nPG.o /tmp/ffconf.r04RgI12.c /tmp/ffconf.r04RgI12.c: In function 'check_vpx_codec_vp9_cx': /tmp/ffconf.r04RgI12.c:3:51: error: 'vpx_codec_vp9_cx' undeclared (first use in this function) /tmp/ffconf.r04RgI12.c:3:51: note: each undeclared identifier is reported only once for each function it appears in check_lib x264.h x264_encoder_encode -lx264 check_header x264.h check_cpp(Continue reading)
21 May 2013 09:32
20 May 2013 22:32
inter and intra matrix
Adam Pakuła <adam.pakula <at> gmail.com>
2013-05-20 20:32:51 GMT
2013-05-20 20:32:51 GMT
Hi, Is there any way to pass inter_matrix argument from file? I would like to write matrix in file and use it as argument for ffmpeg, because writing list of coefs every time is annoying. I need this, because I am doing some research about influence of quantization matrices to encoding quality. Adam Pakuła
21 May 2013 18:45
Alpha not working as expected with geq filter
Robert Krüger <krueger <at> lesspain.de>
2013-05-21 16:45:20 GMT
2013-05-21 16:45:20 GMT
Hi, I am trying to generate a test file using nullsrc and the geq filter to obtain an image that has color and alpha channel values defined by equations like so: ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png The generated png file does not contain any transparent pixels as far as I can see and I wonder what I have done wrong. I found trac ticket #2520 which has some similarities but it is marked as fixed. Full command line and output: ffmpeg -f lavfi -i nullsrc=s=256x256:d=0.01 -vf scale,geq='r=255*(X/W):g=255*(Y/H):b=255*((X/W)*(Y/H)):alpha_expr=255*(1-Y/H)' -pix_fmt rgba -y ~/tmp/generated-sd-alpha.png ffmpeg version N-53322-gb1bbd71 Copyright (c) 2000-2013 the FFmpeg developers built on May 21 2013 16:18:03 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --enable-gpl libavutil 52. 33.100 / 52. 33.100 libavcodec 55. 10.101 / 55. 10.101 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 1.100 / 55. 1.100 libavfilter 3. 68.101 / 3. 68.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, lavfi, from 'nullsrc=s=256x256:d=0.01':(Continue reading)
RSS Feed