15,895,256 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by werfog (Top 12 by date)
werfog
14-Nov-12 8:24am
View
Here http://java2s.com/Code/CSharpAPI/System.Text.RegularExpressions/Regex.htm
you may find something useful.
werfog
14-Nov-12 7:21am
View
I would do that next way.
Surround MyMethod with try-catch and
catch(Exception ex) { MessageBox("MyMethod's StringNumber"); }
That shows the user necessary information.
If I understand you correctly.
Best wishes.
werfog
14-Nov-12 6:34am
View
Do you want to debug your code on your own or you want user to debug that?
werfog
13-Nov-12 22:41pm
View
If the code has been already compiled I guess that is impossible to find method position in code.
If you have just document aaa.cs. You can do something like that:
String s = ... (get text from document)
s.IndexOf("MyMethod");
That return the first index of searched string.
Be successful.
werfog
13-Nov-12 11:01am
View
I voted your answer 4 because your code looked more classical then author's one.
Just 4 because you seem to be a professional in programing.
Best wishes.
werfog
13-Nov-12 10:34am
View
Try to fill in search box in upper right corner of this page with ffmpeg.
I wish you every success.
werfog
12-Nov-12 6:43am
View
Thank you very much.
I wrote that in the hope that someone who encoutered such a problem and solved that could help.
I'm trying to sort out that trouble. And I suspect that answer lies somewhere in Apartment Threading. But it's hard to understand for me.
werfog
11-Nov-12 12:25pm
View
Have you tried to place ffmpeg.exe (not FFMPEG folder) to tt\tt\bin\Debug
werfog
11-Nov-12 10:52am
View
1. I don't know how to add a picture to my reply. The text of console is
C:\Users\ааа\Documents\Visual Studio 2010\Projects\C#\VisualFFmpeg_1\bin\Debug>f
fmpeg.exe -i E:\input.avi -y E:\output.ts
ffmpeg version N-46055-g5f0105b Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 26 2012 17:51:52 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libo
pus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
libavutil 52. 0.100 / 52. 0.100
libavcodec 54. 69.100 / 54. 69.100
libavformat 54. 35.100 / 54. 35.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 20.106 / 3. 20.106
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
Input #0, avi, from 'E:\input.avi':
Metadata:
encoder : Lavf51.12.1
Duration: 00:01:00.13, start: 0.000000, bitrate: 4218 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 640
x360 [SAR 1:1 DAR 16:9], 29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb
/s
Output #0, mpegts, to 'E:\output.ts':
Metadata:
encoder : Lavf54.35.100
Stream #0:0: Video: mpeg2video, yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31,
200 kb/s, 90k tbn, 29.97 tbc
Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> mpeg2video)
Stream #0:1 -> #0:1 (mp3 -> mp2)
Press [q] to stop, [?] for help
frame= 227 fps=0.0 q=31.0 size= 999kB time=00:00:07.72 bitrate=1059.6kbits/
frame= 476 fps=462 q=31.0 size= 1849kB time=00:00:16.00 bitrate= 946.6kbits/
frame= 742 fps=480 q=31.0 size= 2748kB time=00:00:24.85 bitrate= 905.5kbits/
frame= 1005 fps=488 q=24.8 size= 3648kB time=00:00:33.66 bitrate= 887.8kbits/
frame= 1272 fps=494 q=31.0 size= 4519kB time=00:00:42.56 bitrate= 869.7kbits/
frame= 1526 fps=494 q=31.0 size= 5402kB time=00:00:51.05 bitrate= 866.7kbits/
frame= 1790 fps=497 q=31.0 size= 6295kB time=00:00:59.86 bitrate= 861.5kbits/
frame= 1800 fps=497 q=31.0 Lsize= 6339kB time=00:01:00.12 bitrate= 863.7kbits
/s
video:4708kB audio:940kB subtitle:0 global headers:0kB muxing overhead 12.233324
%
C:\Users\ааа\Documents\Visual Studio 2010\Projects\C#\VisualFFmpeg_1\bin\Debug>p
ause
Для продолжения нажмите любую клавишу . . .
2. Nothing is shown again in the TextBox.
Thanks for your attention.
werfog
11-Nov-12 4:00am
View
Thanks.
werfog
11-Nov-12 2:19am
View
Thank you.
As far as I know /c forces cmd to close after work is done, but it doesn't answer my question. On the contrary I use ' pause ' to prevent cmd closing, to be able to analyze output.
werfog
10-Nov-12 11:05am
View
Thank you very much. Everything works well. But I can't understand why option /c is needed. As I run cmd.exe through batch file I don't use this option.
Show More