MP plugin for Video Transcoding (2 Viewers)

fabriceD06

Portal Pro
January 28, 2007
123
14
Nice
Home Country
France France
Alright I gotcha now, sorry I wasn't catching on right away. It completes its task successfully! The % is off as you noticed already, and for some reason MediaPortal.log is now 578MB after transcoding two files.

Sorry but in debug level in log file , i verbose all information :oops: , so if you decrease the log level (in configuration tool) to warning or info , after nomally th elog will be not big.

Judging from past log files I've posted, it looks like it has to do with the thumbnail creation for the videos. I don't even view it in thumbnail mode and it's trying to create thumbnails over and over and failing for some reason. I don't think this is a problem with your transcoding process, but there may be a way to stop it from trying to create thumbnails while the file is being encoded... Anyways I could be completely wrong.

Can describe the action sequenca (click on..., etc..) just to reproduce on my machine.

Seems to work great, the only thing I know people would like is to be able to change the config.txt settings within MP,

I think in first steps , i will try in the UI to select different profile (config[xxx].txt) avalible in the directory transcode.

and to have the transcoding process window (blank command prompt window) occur in the background as opposed to minimizing MP and bringing focus to it. Thanks so much for building this!

I can hide the background windows totally in next version.

EDIT: I noticed that if you choose "delete original file", the MP database is not updated to reflect that change. As a result, the tv show listing remains in the database (aka Recorded TV), but is still pointing to the original .dvr-ms file, and not the new .avi file. So when you try to play the recorded-tv file, it doesn't play.

A bug ;) i will fix it quickly.


Thanks a lot for your help.

Fabrice
 

fabriceD06

Portal Pro
January 28, 2007
123
14
Nice
Home Country
France France
Get a mencoder crash with xvid and dx50 config files.

MP log attached

Soory i cannot see any video transcoding launch. :confused: Can save the mediaportal.just when you launch the process. bacause normmaly same the process failed i can see some trace.

Fabrice
 

Efros

Portal Pro
January 23, 2006
511
2
Maine
Home Country
England England
Sorry bout that I think I loaded up the wrong log file,

ANyway heres the relevant bits

Transcoder start
Code:
2007-02-01 04:23:14.343250 [Info.][15]: encoder.exe.path =transcode\mencoder\mencoder.exe
2007-02-01 04:23:14.343250 [Info.][15]: mode2pass =no
2007-02-01 04:23:14.343250 [Info.][15]: encoder.type =MENCODER
2007-02-01 04:23:14.343250 [Info.][15]: encoder.timeout.process =14400000
2007-02-01 04:23:14.343250 [Info.][15]: encoder.1pass.args =-ovc xvid -oac mp3lame -xvidencopts bitrate=950
2007-02-01 04:23:14.343250 [Info.][15]: encoder.2pass.args.1 =
2007-02-01 04:23:14.343250 [Info.][15]: encoder.2pass.args.2 =
2007-02-01 04:23:14.343250 [Info.][15]: ExternalTranscoder[Transcode] transcode  video format Xvid file: D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms duration: 4200
2007-02-01 04:23:14.343250 [Debug][15]: ThreadPool.CheckThreadIncrementRequired() : incrementing thread count 1 with 1
2007-02-01 04:23:14.343250 [Debug][15]: ThreadPool.StartThreads() : Thread PoolThread16 started
2007-02-01 04:23:14.343250 [Info.][15]: ExternalTranscoder[IsFinished] is finish False
2007-02-01 04:23:14.343250 [Debug][PoolThread16]: ThreadPool.HandleInUseThreadCount() : in use threads: 2 max: 25 increment: True
2007-02-01 04:23:14.358875 [Info.][PoolThread16]: ExternalTranscoder[Transcode] transcode  video format Xvid file: D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms duration: 4200
2007-02-01 04:23:14.358875 [Info.][PoolThread16]: ExternalTranscoder[Transcode]Command line transcode\mencoder\mencoder.exe -ovc xvid -oac mp3lame -xvidencopts bitrate=950 -o "D:\Recordings\63 DSC_MythBusters_200702010100p5513.avi" "D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms"
2007-02-01 04:23:14.358875 [Info.][15]: ExternalTranscoder[Percentage] return percentage 1
2007-02-01 04:23:14.468250 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]MEncoder 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
2007-02-01 04:23:14.468250 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 4, Stepping: 10)
2007-02-01 04:23:14.468250 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
2007-02-01 04:23:14.468250 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Compiled with runtime CPU detection.
2007-02-01 04:23:14.483875 [Debug][Thread TransErrStream]: [ExternalTranscoder][Err]Warning streams need a type !!!!
2007-02-01 04:23:14.483875 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]success: format: 0  data: 0x0 - 0x0
2007-02-01 04:23:14.483875 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]ASF file format detected.
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]VIDEO:  [DVR ]  480x576  0bpp  29.974 fps    0.0 kbps ( 0.0 kbyte/s)
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out][V] filefmt:6  fourcc:0x20525644  size:480x576  fps:29.97  ftime:=0.0334
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]==========================================================================
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]==========================================================================
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]xvid: using library version 1.1.0 (build xvid-1.1.0)
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Opening video filter: [expand osd=1]
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]==========================================================================
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
2007-02-01 04:23:14.499500 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]==========================================================================
2007-02-01 04:23:14.515125 [Debug][Thread TransErrStream]: [ExternalTranscoder][Err]MP3 audio selected.
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]VDec: using Planar YV12 as output csp (no 0)
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]videocodec: XviD (480x576 fourcc=44495658 [XVID])
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]xvid: par=0/0 (vga11), displayed=768x576, sampled=480x576
2007-02-01 04:23:14.546375 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]xvid: CBR Rate Control -- bitrate=950kbit/s
2007-02-01 04:23:14.577625 [Debug][Thread TransErrStream]: [ExternalTranscoder][Err]New_Face failed. Maybe the font path is wrong.
2007-02-01 04:23:14.577625 [Debug][Thread TransErrStream]: [ExternalTranscoder][Err]Please supply the text font file (~/.mplayer/subfont.ttf).
2007-02-01 04:23:14.577625 [Debug][Thread TransErrStream]: [ExternalTranscoder][Err]subtitle font: load_sub_face failed.
2007-02-01 04:23:14.593250 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

Transcoder crash

Code:
[15]: ExternalTranscoder[IsFinished] is finish False
2007-02-01 04:23:29.562000 [Info.][15]: ExternalTranscoder[Percentage] return percentage 0
2007-02-01 04:23:30.562000 [Info.][15]: ExternalTranscoder[IsFinished] is finish False
2007-02-01 04:23:30.562000 [Info.][15]: ExternalTranscoder[Percentage] return percentage 0
2007-02-01 04:23:30.718250 [Info.][PoolThread16]: ExternalTranscoder[Transcode] Exit code =-1073741819
2007-02-01 04:23:30.718250 [Info.][PoolThread16]: ExternalTranscoder[Transcode]Process finish in 00:00:16.3593750
2007-02-01 04:23:30.733875 [Debug][Thread TransOutStream]: [ExternalTranscoder][out]Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
2007-02-01 04:23:30.733875 [Debug][PoolThread16]: ThreadPool.ProcessQueue() : total items processed: 1
2007-02-01 04:23:30.733875 [Debug][PoolThread16]: ThreadPool.HandleInUseThreadCount() : in use threads: 2 max: 25 increment: False
2007-02-01 04:23:31.562000 [Info.][15]: ExternalTranscoder[IsFinished] is finish True
2007-02-01 04:23:31.562000 [Info.][15]: ExternalTranscoder[IsTranscodingSuccess] is IsTranscodingSuccess False
 

fabriceD06

Portal Pro
January 28, 2007
123
14
Nice
Home Country
France France
Sorry bout that I think I loaded up the wrong log file,

ANyway heres the relevant bits

Transcoder start

Hello,

Can you test the command in standalone , open command prompt , go in the folder transcode (the command need to be launch from this folder), and type the command mencoder\mencoder.exe -ovc xvid -oac mp3lame -xvidencopts bitrate=950 -o "D:\Recordings\63 DSC_MythBusters_200702010100p5513.avi" "D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms"

And check if the encoding crash or works, the goal is to know where is located the crash in my code or mencoder.


Thanks for your test

Fabrice
 

fabriceD06

Portal Pro
January 28, 2007
123
14
Nice
Home Country
France France
2. c++ is not a problem,
The main problem i had with ffmpeg was that it was file based
What i would like is something like:
Code:
byte* transCoded=ffmpeg.transcode(byte* tspacket);

so i supply a mpeg-2 ts packet and get a transcoded mpeg-2 ts packet back

Frodo

After look the source code of ffmpeg server (the streaming server based on ffmpeg) i think it is possible but not easier, it necessary to create a helper class to intialize different context (AVFormat, etc..) and some input stream and output stream in wrapper.

Some time is necesary to write this helper :(

Fabrice
 

dubstar

Portal Pro
October 23, 2006
152
1
Home Country
United Kingdom United Kingdom
When using this feature will it be possible to transcode items from the 'my videos' folder?

I'm running out of space and could do with compressing a number of files. The majority of them are MPEG's with a few dvr-ms thown in.

Will this be possible at any time??
 

Efros

Portal Pro
January 23, 2006
511
2
Maine
Home Country
England England
Crash occurs in mencoder, running from command window mencoder\mencoder.exe -ovc xvid -oac mp3lame -xvidencopts bitrate=950 -o "D:\Recordings\63 DSC_MythBusters_200702010100p5513.avi" "D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms" results in Windows "mencoder has encountered a problem" dialog. Looks as if its something to do with mencoder and my setup.
 

Noelix

Portal Pro
February 18, 2006
393
1
Salt Lake City, UT
Home Country
United States of America United States of America
Crash occurs in mencoder, running from command window mencoder\mencoder.exe -ovc xvid -oac mp3lame -xvidencopts bitrate=950 -o "D:\Recordings\63 DSC_MythBusters_200702010100p5513.avi" "D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms" results in Windows "mencoder has encountered a problem" dialog. Looks as if its something to do with mencoder and my setup.

I can verify that mencoder crashes for me as well. I ran command prompt to test it, and here's the log from command prompt:
http://pastebin.team-mediaportal.com/11948
 

fabriceD06

Portal Pro
January 28, 2007
123
14
Nice
Home Country
France France
Crash occurs in mencoder, running from command window mencoder\mencoder.exe -ovc xvid -oac mp3lame -xvidencopts bitrate=950 -o "D:\Recordings\63 DSC_MythBusters_200702010100p5513.avi" "D:\Recordings\63 DSC_MythBusters_200702010100p5513.dvr-ms" results in Windows "mencoder has encountered a problem" dialog. Looks as if its something to do with mencoder and my setup.

Hello,

So can you install Mplayer from this link of website, after in the config.txt change the path of mencoder by the menceoder.exe included in the mplayer installation folder.



Fabrice
 

Users who are viewing this thread

Top Bottom