No video after flv to mp4 conversion

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

No video after flv to mp4 conversion

Postby JimPD » 12 Mar 2009 19:36

I have a flash (flv) video file that plays fine in VLC media player (version 0.9.4 on Windows XP). When I try to convert it to an mp4 file (with MPEG-4 encoding), I get a file that has only audio. No corrupted video or anything, it's really just audio: the file is about 2 MB instead of the original 50.

Original video: Codec VP6F, resolution 576x324, file type .flv, with 1-channel 16-bits mp3 audio at 22050 Hz.
Desired output: MPEG-4 .mp4 file with resolution 480x270 (i.e. the same proportions as the original, but fewer pixels), and I don't care about the other parameters as long as it works.

I'll tell you exactly what I do. I don't know if this is right, due to the almost complete lack of definitive documentation on version 0.9.x.
  1. I open the player without any video in it.
  2. I go to Media... Advanced open file (or Media... Convert/Save or Media... Streaming).
  3. In the dialog box I select the file and click the arrow next to "Open" and select "Stream". It sounds more logical to select "Convert", but several tutorials seem to prefer "Stream" -- and by the way, with "Convert" the results are no better.
  4. Under Outputs, I check File and enter a filename that ends with mp4. I click "Save" (though I'm not ready to save anything yet).
  5. Then under Profile I select this:
    Encapsulation: MP4
    Video codec: Video; MPEG-4
    Audio codec: Audio; MPEG 4 Audio (AAC)
  6. Then I go down to the string at the bottom and insert width=480,height=270, in the transcode parameters. The output string then looks like this:
    :sout=#transcode{vcodec=mp4v,vb=800,width=480,height=270,scale=1,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=C:\Documents and Settings\jim\Desktop\outfile.mp4}}
  7. I click "Stream" (or "Save").
A few things I have tried:
  • This tutorial suggests that the width and height settings must first be changed deep down in the advanced preferences. I don't know if it is true, but I did it anyway -- no luck.
  • This article says that the output string should be:
    :sout=#transcode{vcodec=mp4v,vb=1024,scale=1,height=240,width=320,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=%1.mp4}}
    which is very close to what I have -- but I gave it a try and it doesn't make a difference.
What's going on? Is VLC media player supposed to be able to do this at all?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: No video after flv to mp4 conversion

Postby VLC_help » 13 Mar 2009 16:36

Open Tools -> Messages... (set Verbosity to 2) before you try the conversion and when it is done, paste the messages here.

flowers
New Cone
New Cone
Posts: 1
Joined: 13 Mar 2009 20:15

Re: No video after flv to mp4 conversion

Postby flowers » 13 Mar 2009 20:22

new-user, i have the same problem can anyone help me.
i'm trying to convert video files into mp4 format.
thanks

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 14 Mar 2009 01:08

As VLC_help said post messages.

I tested an FLV to MP4 conversion, and this may be the issue:

Code: Select all

stream_out_transcode debug: codec video=mp4v 0x0 scaling: 1.000000 800kb/s
i.e. the output video is of zero resolution.

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 14 Mar 2009 12:05

Open Tools -> Messages... (set Verbosity to 2) before you try the conversion and when it is done, paste the messages here.
Here is the log. It's quite big -- I hope it scrolls.

Code: Select all

qt4 debug: MRL passed to the Sout: C:\Infile.flv qt4 debug: Sout mrl :sout=#transcode{vcodec=mp4v,vb=800,scale=1,width=480,height=270,acodec=mp4a,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst=C:\Outfile.mp4}} main debug: adding item `Streaming' ( C:\Infile.flv ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index -1 main debug: starting new item main debug: processing request item Streaming node null skip 0 main debug: resyncing on Streaming main debug: Streaming is at 0 main debug: creating new input thread main debug: Creating an input for 'Streaming' main debug: thread started main debug: waiting for thread initialization main debug: thread 5712 (input) created at priority 1 (input/input.c:370) main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate qt4 debug: Updating the stream status: 3 main debug: stream=`duplicate' main debug: looking for sout stream module: 1 candidate stream_out_duplicate debug: creating 'duplicate' stream_out_duplicate debug: * adding `std{access=file,mux=mp4,dst=C:\Outfile.mp4}' main debug: stream=`std' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-standard-access to file main debug: set config option: sout-standard-mux to mp4 main debug: set config option: sout-standard-dst to C:\Outfile.mp4 stream_out_standard debug: creating `file/mp4://C:\Outfile.mp4' stream_out_standard debug: extension is mp4 stream_out_standard debug: extension -> mux=mp4 stream_out_standard debug: using `file/mp4://C:\Outfile.mp4' main debug: looking for sout access module: 1 candidate access_output_file debug: file access output opened (C:\Outfile.mp4) main debug: using sout access module "access_output_file" main debug: TIMER module_Need() : 22.000 ms - Total 22.000 ms / 1 intvls (Avg 22.000 ms) stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_mp4 debug: Mp4 muxer opened main debug: using sout mux module "mux_mp4" main debug: TIMER module_Need() : 34.000 ms - Total 34.000 ms / 1 intvls (Avg 34.000 ms) stream_out_standard debug: mux opened main debug: using sout stream module "stream_out_standard" main debug: TIMER module_Need() : 77.000 ms - Total 77.000 ms / 1 intvls (Avg 77.000 ms) main debug: using sout stream module "stream_out_duplicate" main debug: TIMER module_Need() : 89.000 ms - Total 89.000 ms / 1 intvls (Avg 89.000 ms) main debug: set config option: sout-transcode-vcodec to mp4v main debug: set config option: sout-transcode-vb to 800 main debug: set config option: sout-transcode-scale to 1 main debug: set config option: sout-transcode-width to 480 main debug: set config option: sout-transcode-height to 270 main debug: set config option: sout-transcode-acodec to mp4a main debug: set config option: sout-transcode-ab to 128 main debug: set config option: sout-transcode-channels to 2 stream_out_transcode debug: codec audio=mp4a 0Hz 2 channels 128Kb/s stream_out_transcode debug: codec video=mp4v 480x270 scaling: 1.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_Need() : 120.000 ms - Total 120.000 ms / 1 intvls (Avg 120.000 ms) main debug: `C:\Infile.flv' gives access `' demux `' path `C:\Infile.flv' main debug: creating demux: access='' demux='' path='C:\Infile.flv' main debug: looking for access_demux module: 1 candidate main debug: TIMER module_Need() : 49.000 ms - Total 49.000 ms / 1 intvls (Avg 49.000 ms) main debug: creating access '' path='C:\Infile.flv' main debug: looking for access module: 5 candidates qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 1 vcd debug: trying .cue file: C:\Infile.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Infile.flv' main debug: using access module "access_file" main debug: TIMER module_Need() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.000 ms) main debug: Using AStream*Stream main debug: pre-buffering... qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 2 main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 12176 kbytes/s main debug: creating demux: access='' demux='' path='C:\Infile.flv' main debug: looking for demux module: 51 candidates avformat debug: detected format: flv main debug: selecting program id=0 qt4 debug: New Event: type 1108 avformat debug: adding es: video codec = VP6F avformat debug: adding es: audio codec = mp3 avformat debug: AVFormat supported stream avformat debug: - format = flv (FLV format) avformat debug: - start time = 0 avformat debug: - duration = 478745621 main debug: using demux module "avformat" main debug: TIMER module_Need() : 668.000 ms - Total 668.000 ms / 1 intvls (Avg 668.000 ms) main debug: looking for a subtitle file in C:\ main debug: looking for packetizer module: 18 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_Need() : 284.000 ms - Total 284.000 ms / 1 intvls (Avg 284.000 ms) main debug: stream out mode -> no decoder thread main debug: looking for packetizer module: 18 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: stream out mode -> no decoder thread main debug: starting in sync mode main debug: `C:\Infile.flv' successfully opened packetizer_copy debug: need dts > 0 main debug: control type=1 packetizer_copy debug: need dts > 0 packetizer_copy debug: need dts > 0 qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 3 main debug: adding a new sout input (sout_input:02511278) stream_out_transcode debug: creating audio transcoding from fcc=`mp3 ' to fcc=`mp4a' main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec initialized (interface 3360512 ) avcodec warning: Physical channel configuration not set : guessing avcodec debug: ffmpeg codec (MPEG Audio layer 1/2/3) started main debug: using decoder module "avcodec" main debug: TIMER module_Need() : 202.000 ms - Total 202.000 ms / 1 intvls (Avg 202.000 ms) main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG AAC Audio main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 73.000 ms - Total 73.000 ms / 1 intvls (Avg 73.000 ms) stream_out_duplicate debug: duplicated a new stream codec=mp4a (es=1 group=0) main debug: adding a new input mux_mp4 debug: adding input stream_out_duplicate debug: - added for output 0 stream_out_transcode debug: drift is too high, resetting master sync main debug: switching to async mode main debug: adding a new sout input (sout_input:02445048) stream_out_transcode debug: creating video transcoding from fcc=`VP6F' to fcc=`mp4v' main debug: looking for decoder module: 34 candidates avcodec debug: libavcodec already initialized avcodec debug: using direct rendering avcodec debug: ffmpeg codec (On2's VP6.2 Video (Flash)) started main debug: using decoder module "avcodec" main debug: TIMER module_Need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-4 Video main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 8.000 ms - Total 8.000 ms / 1 intvls (Avg 8.000 ms) main debug: removing module "avcodec" avcodec warning: cannot decode one frame (6828 bytes) avcodec warning: cannot decode one frame (5196 bytes) avcodec warning: cannot decode one frame (4767 bytes) avcodec warning: cannot decode one frame (5594 bytes) avcodec warning: cannot decode one frame (5903 bytes) avcodec warning: cannot decode one frame (7360 bytes) avcodec warning: cannot decode one frame (6791 bytes) avcodec warning: cannot decode one frame (6508 bytes) avcodec warning: cannot decode one frame (5730 bytes) avcodec warning: cannot decode one frame (7521 bytes) avcodec warning: cannot decode one frame (9564 bytes) avcodec warning: cannot decode one frame (10776 bytes) avcodec warning: cannot decode one frame (12182 bytes) avcodec warning: cannot decode one frame (11261 bytes) avcodec warning: cannot decode one frame (9840 bytes) avcodec warning: cannot decode one frame (6988 bytes) avcodec warning: cannot decode one frame (5632 bytes) avcodec warning: cannot decode one frame (5538 bytes) avcodec warning: cannot decode one frame (5150 bytes) avcodec warning: cannot decode one frame (6115 bytes) avcodec warning: cannot decode one frame (6859 bytes) avcodec warning: cannot decode one frame (7770 bytes) avcodec warning: cannot decode one frame (8172 bytes) avcodec warning: cannot decode one frame (8522 bytes) avcodec warning: cannot decode one frame (7983 bytes) avcodec warning: cannot decode one frame (7793 bytes) avcodec warning: cannot decode one frame (7693 bytes) avcodec warning: cannot decode one frame (7380 bytes) avcodec warning: cannot decode one frame (7493 bytes) avcodec warning: cannot decode one frame (7324 bytes) avcodec warning: cannot decode one frame (8422 bytes) avcodec warning: cannot decode one frame (6794 bytes) avcodec warning: cannot decode one frame (6600 bytes) avcodec warning: cannot decode one frame (6802 bytes) avcodec warning: cannot decode one frame (6505 bytes) avcodec warning: cannot decode one frame (6793 bytes) avcodec warning: cannot decode one frame (6346 bytes) avcodec warning: cannot decode one frame (6367 bytes) avcodec warning: cannot decode one frame (6233 bytes) avcodec warning: cannot decode one frame (6192 bytes) avcodec warning: cannot decode one frame (6152 bytes) avcodec warning: cannot decode one frame (6324 bytes) avcodec warning: cannot decode one frame (6560 bytes) avcodec warning: cannot decode one frame (6844 bytes) avcodec warning: cannot decode one frame (12614 bytes) avcodec warning: cannot decode one frame (12890 bytes) avcodec warning: cannot decode one frame (10263 bytes) avcodec warning: cannot decode one frame (9683 bytes) avcodec warning: cannot decode one frame (8600 bytes) avcodec warning: cannot decode one frame (5328 bytes) avcodec warning: cannot decode one frame (5271 bytes) avcodec warning: cannot decode one frame (5286 bytes) avcodec warning: cannot decode one frame (5743 bytes) avcodec warning: cannot decode one frame (4215 bytes) avcodec warning: cannot decode one frame (4093 bytes) avcodec warning: cannot decode one frame (4049 bytes) avcodec warning: cannot decode one frame (5039 bytes) avcodec warning: cannot decode one frame (4551 bytes) avcodec warning: cannot decode one frame (4775 bytes) avcodec debug: disabling direct rendering stream_out_transcode debug: drift is too high, resetting master sync stream_out_transcode debug: decoder aspect is 768000:432000 stream_out_transcode debug: source pixel aspect is 1.000000:1 stream_out_transcode debug: scaled pixel aspect is 1.000000:1 stream_out_transcode debug: source 576x324, destination 480x270 stream_out_transcode debug: encoder aspect is 768000:432000 main debug: looking for video filter2 module: 19 candidates swscale debug: 576x324 chroma: I420 -> 480x270 chroma: I420 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_Need() : 127.000 ms - Total 127.000 ms / 1 intvls (Avg 127.000 ms) main debug: Filter 'swscale' (00E38C28) appended to chain stream_out_transcode debug: destination (after video filters) 480x270 main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG-4 Video main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms) stream_out_duplicate debug: duplicated a new stream codec=mp4v (es=0 group=0) main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value stream_out_duplicate debug: - failed for output 0 stream_out_transcode error: cannot add this stream avcodec debug: ffmpeg codec (On2's VP6.2 Video (Flash)) stopped main debug: removing module "avcodec" main debug: removing module "avcodec" main debug: Filter 'swscale' (00E38C28) removed from chain main debug: removing module "swscale" avformat debug: Trying to seek too far : EOF? main debug: EOF reached main debug: finished input main debug: dying input qt4 debug: Updating the stream status: 8 main debug: dying input main debug: removing module "avformat" main debug: removing module "access_file" main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `VP6F', 0 PES in FIFO main debug: removing a sout input (sout_input:02445048) main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `mp3 ', 0 PES in FIFO main debug: removing a sout input (sout_input:02511278) main debug: TIMER encoding audio frame : 0.000 ms - Total 9929.000 ms / 18327 intvls (Avg 0.542 ms) avcodec debug: ffmpeg codec (MPEG Audio layer 1/2/3) stopped main debug: removing module "avcodec" main debug: removing module "avcodec" mux_mp4 debug: removing input main warning: no more input streams for this mux main debug: thread ended main debug: dead input main debug: thread times: real 0m15.468750s, kernel 0m1.031250s, user 0m12.234375s main debug: thread 5712 joined (playlist/engine.c:244) main debug: TIMER input launching for 'Streaming' : 1258.000 ms - Total 1258.000 ms / 1 intvls (Avg 1258.000 ms) main debug: destroying chain... (name=transcode) main debug: destroying chain... (name=duplicate) stream_out_duplicate debug: closing a duplication main debug: destroying chain... (name=std) mux_mp4 debug: Close mux_mp4 debug: movie duration 478s mux_mp4 debug: created 1 chunks (stco) main debug: removing module "mux_mp4" access_output_file debug: file access output closed main debug: removing module "access_output_file" main debug: removing module "stream_out_standard" main debug: destroying chain done main debug: removing module "stream_out_duplicate" main debug: destroying chain done main debug: removing module "stream_out_transcode" main debug: destroying chain done main debug: starting new item main debug: changing item without a request (current 0/1) main debug: nothing to play

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 14 Mar 2009 22:30

Do you have a sample FLV you could upload (or a link to source of the FLV file)?

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 15 Mar 2009 23:18

Well, I can tell you that another ffmpeg-based encoder managed to transcode the file. With the parameters

Code: Select all

ffmpeg -f mp4 -b 500k -r 30 -acodec libfaac -ab 128k -ar 48000 -ac 2 -s 480x270
this gave an output video that works fine. The output of the process was:

Code: Select all

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000 /1) -> 15.00 (15/1) Input #0, flv, from 'C:\Infile.flv': Duration: 00:07:58.74, start: 0.000000, bitrate: 56 kb/s Stream #0.0: Video: vp6f, yuv420p, 576x324, 15.00 tb(r) Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s Output #0, mp4, to 'C:\Outfile.mp4': Stream #0.0: Video: mpeg4, yuv420p, 320x180, q=2-31, 500 kb/s, 30.00 tb(c) Stream #0.1: Audio: libfaac, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mp3 @ 013E86D0]mdb:169, lastbuf:0 skipping granule 0 [mp3 @ 013E86D0]mdb:255, lastbuf:170 skipping granule 0 frame=14362 fps=107 q=4.0 Lsize= 34884kB time=478.73 bitrate= 596.9kbits/s video:29504kB audio:5087kB global headers:0kB muxing overhead 0.847800%
Actually I would prefer to be able to do this with VLC Media Player; I really like the player and I prefer to have an all-in-one solution. If the log messages gave any clues to settings that might have helped, I would still be interested to know.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 15 Mar 2009 23:44

^ Those messages are from FFmpeg presumably - post VLC's messages ("Tools >> Messages..." and set "Verbosity Level" to 2).

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 16 Mar 2009 19:24

^ Those messages are from FFmpeg presumably - post VLC's messages ("Tools >> Messages..." and set "Verbosity Level" to 2).

Arite.
Yes, I posted the log from VLC two posts above that one.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: No video after flv to mp4 conversion

Postby VLC_help » 17 Mar 2009 13:58

main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
Sounds like a bug. Have you tested 1.0.0 test builds?

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 19 Mar 2009 00:11

main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value
Sounds like a bug. Have you tested 1.0.0 test builds?
No, do you think that would help? I mean, has the team solved a bug like this for the 1.0.0 builds? If nobody has submitted this problem for debugging, I guess it could only have been solved by accident...

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 19 Mar 2009 11:25

Worth trying a nightly build anyway:
http://nightlies.videolan.org/

Sout might not work very well though ATM - try via commandline if GUI does work properly with transcoding.

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 21 Mar 2009 20:30

Worth trying a nightly build anyway:
http://nightlies.videolan.org/

Sout might not work very well though ATM - try via commandline if GUI does work properly with transcoding.

Arite.
OK, I tried with the latest nightly (0.9.9-rc2-20090321-0104) and got the same result: audio only.

I also tried with the command line and got the same result. But I used a command I found at the VideoLAN wiki, which involves a sout string (vlc -vvv "Infile.flv" :sout="soutstring"). If you say sout might not work at the moment, do you mean there is an alternative way to use the command line?

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 21 Mar 2009 22:07

Well the Steam Output section of the GUI has be reworked for 1.0.0 and (as of a few days/weeks ago) didn't work too well - I think it has improved now though. If it doesn't then yes, try the commandline. The syntax:

Code: Select all

vlc -vvv INPUT --sout "SOUT_STRING"
Should work fine (where SOUT_STRING is the sout string minus the ":sout=" bit - double hyphens can be more reliable than colons hence the "--sout").

Cheers, Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 22 Mar 2009 00:20

Well the Steam Output section of the GUI has be reworked for 1.0.0 and (as of a few days/weeks ago) didn't work too well - I think it has improved now though. If it doesn't then yes, try the commandline. The syntax:

Code: Select all

vlc -vvv INPUT --sout "SOUT_STRING"
Should work fine (where SOUT_STRING is the sout string minus the ":sout=" bit - double hyphens can be more reliable than colons hence the "--sout").

Cheers, Arite.
With that form of the command, the result is the same again (with both the current version and the nightly build). Here is the log from the nightly:

Code: Select all

main debug: adding item `Infile.flv' ( C:\Infile.flv ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 2 items, index 0 main debug: starting new item main debug: processing request item Infile.flv node Playlist skip 0 main debug: resyncing on Infile.flv main debug: Infile.flv is at 1 main debug: creating new input thread main debug: Creating an input for 'Infile.flv' main debug: thread started main debug: waiting for thread initialization main debug: thread 4968 (input) created at priority 1 (input/input.c:370) main debug: stream=`transcode' main debug: looking for sout stream module: 1 candidate main debug: stream=`duplicate' main debug: looking for sout stream module: 1 candidate stream_out_duplicate debug: creating 'duplicate' stream_out_duplicate debug: * adding `std{access=file,mux=mp4,dst=C:\Outfile.mp4}' main debug: stream=`std' main debug: looking for sout stream module: 1 candidate main debug: set config option: sout-standard-access to file main debug: set config option: sout-standard-mux to mp4 main debug: set config option: sout-standard-dst to C:\Outfile.mp4 stream_out_standard debug: creating `file/mp4://C:\Outfile.mp4' stream_out_standard debug: extension is mp4 stream_out_standard debug: extension -> mux=mp4 stream_out_standard debug: using `file/mp4://C:\Outfile.mp4' main debug: looking for sout access module: 1 candidate qt4 debug: Updating the stream status: 3 access_output_file debug: file access output opened (C:\Outfile.mp4) main debug: using sout access module "access_output_file" main debug: TIMER module_Need() : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms) stream_out_standard debug: access opened main debug: looking for sout mux module: 1 candidate mux_mp4 debug: Mp4 muxer opened main debug: using sout mux module "mux_mp4" main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) stream_out_standard debug: mux opened main debug: using sout stream module "stream_out_standard" main debug: TIMER module_Need() : 11.000 ms - Total 11.000 ms / 1 intvls (Avg 11.000 ms) main debug: using sout stream module "stream_out_duplicate" main debug: TIMER module_Need() : 11.000 ms - Total 11.000 ms / 1 intvls (Avg 11.000 ms) main debug: set config option: sout-transcode-vcodec to mp4v main debug: set config option: sout-transcode-vb to 800 main debug: set config option: sout-transcode-scale to 1 main debug: set config option: sout-transcode-width to 480 main debug: set config option: sout-transcode-height to 270 main debug: set config option: sout-transcode-acodec to mp4a main debug: set config option: sout-transcode-ab to 128 main debug: set config option: sout-transcode-channels to 2 stream_out_transcode debug: codec audio=mp4a 0Hz 2 channels 128Kb/s stream_out_transcode debug: codec video=mp4v 480x270 scaling: 1.000000 800kb/s main debug: using sout stream module "stream_out_transcode" main debug: TIMER module_Need() : 21.000 ms - Total 21.000 ms / 1 intvls (Avg 21.000 ms) main debug: `C:\Infile.flv' gives access `' demux `' path `C:\Infile.flv' main debug: creating demux: access='' demux='' path='C:\Infile.flv' main debug: looking for access_demux module: 1 candidate main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: creating access '' path='C:\Infile.flv' main debug: looking for access module: 5 candidates vcd debug: trying .cue file: C:\Infile.cue vcd debug: could not find .cue file access_file debug: opening file `C:\Infile.flv' main debug: using access module "access_file" main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: Using AStream*Stream main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 343903 kbytes/s main debug: creating demux: access='' demux='' path='C:\Infile.flv' main debug: looking for demux module: 52 candidates avformat debug: detected format: flv main debug: selecting program id=0 avformat debug: adding es: video codec = VP6F avformat debug: adding es: audio codec = mp3 avformat debug: AVFormat supported stream avformat debug: - format = flv (FLV format) avformat debug: - start time = 0 avformat debug: - duration = 478745621 main debug: using demux module "avformat" main debug: TIMER module_Need() : 24.000 ms - Total 24.000 ms / 1 intvls (Avg 24.000 ms) main debug: looking for a subtitle file in C:\ main debug: looking for packetizer module: 18 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) main debug: stream out mode -> no decoder thread main debug: looking for packetizer module: 18 candidates main debug: using packetizer module "packetizer_copy" main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: stream out mode -> no decoder thread main debug: starting in sync mode main debug: `C:\Infile.flv' successfully opened packetizer_copy debug: need dts > 0 main debug: control type=1 packetizer_copy debug: need dts > 0 packetizer_copy debug: need dts > 0 qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 3 qt4 debug: New Event: type 1103 qt4 debug: New Event: type 1108 qt4 debug: New Event: type 1103 main debug: adding a new sout input (sout_input:00E3DED0) stream_out_transcode debug: creating audio transcoding from fcc=`mp3 ' to fcc=`mp4a' main debug: looking for decoder module: 33 candidates avcodec debug: libavcodec already initialized avcodec warning: Physical channel configuration not set : guessing avcodec debug: ffmpeg codec (MPEG Audio layer 1/2/3) started main debug: using decoder module "avcodec" main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: found encoder MPEG AAC Audio main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 30.000 ms - Total 30.000 ms / 1 intvls (Avg 30.000 ms) stream_out_duplicate debug: duplicated a new stream codec=mp4a (es=1 group=0) main debug: adding a new input mux_mp4 debug: adding input stream_out_duplicate debug: - added for output 0 avcodec warning: mdb:255, lastbuf:0 skipping granule 0 (mp3@05594F00) stream_out_transcode debug: drift is too high, resetting master sync main debug: switching to async mode avcodec warning: mdb:255, lastbuf:170 skipping granule 0 (mp3@05594F00) main debug: adding a new sout input (sout_input:05478788) stream_out_transcode debug: creating video transcoding from fcc=`VP6F' to fcc=`mp4v' main debug: looking for decoder module: 33 candidates avcodec debug: libavcodec already initialized avcodec debug: using direct rendering avcodec debug: ffmpeg codec (On2's VP6.2 Video (Flash)) started main debug: using decoder module "avcodec" main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: removing common factors from framerate (mpeg4@05584010) avcodec debug: found encoder MPEG-4 Video main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 7.000 ms - Total 7.000 ms / 1 intvls (Avg 7.000 ms) main debug: removing module "avcodec" avcodec warning: cannot decode one frame (6828 bytes) avcodec warning: cannot decode one frame (5196 bytes) avcodec warning: cannot decode one frame (4767 bytes) avcodec warning: cannot decode one frame (5594 bytes) avcodec warning: cannot decode one frame (5903 bytes) avcodec warning: cannot decode one frame (7360 bytes) avcodec warning: cannot decode one frame (6791 bytes) avcodec warning: cannot decode one frame (6508 bytes) avcodec warning: cannot decode one frame (5730 bytes) avcodec warning: cannot decode one frame (7521 bytes) avcodec warning: cannot decode one frame (9564 bytes) avcodec warning: cannot decode one frame (10776 bytes) avcodec warning: cannot decode one frame (12182 bytes) avcodec warning: cannot decode one frame (11261 bytes) avcodec warning: cannot decode one frame (9840 bytes) avcodec warning: cannot decode one frame (6988 bytes) avcodec warning: cannot decode one frame (5632 bytes) avcodec warning: cannot decode one frame (5538 bytes) avcodec warning: cannot decode one frame (5150 bytes) avcodec warning: cannot decode one frame (6115 bytes) avcodec warning: cannot decode one frame (6859 bytes) avcodec warning: cannot decode one frame (7770 bytes) avcodec warning: cannot decode one frame (8172 bytes) avcodec warning: cannot decode one frame (8522 bytes) avcodec warning: cannot decode one frame (7983 bytes) avcodec warning: cannot decode one frame (7793 bytes) avcodec warning: cannot decode one frame (7693 bytes) avcodec warning: cannot decode one frame (7380 bytes) avcodec warning: cannot decode one frame (7493 bytes) avcodec warning: cannot decode one frame (7324 bytes) avcodec warning: cannot decode one frame (8422 bytes) avcodec warning: cannot decode one frame (6794 bytes) avcodec warning: cannot decode one frame (6600 bytes) avcodec warning: cannot decode one frame (6802 bytes) avcodec warning: cannot decode one frame (6505 bytes) avcodec warning: cannot decode one frame (6793 bytes) avcodec warning: cannot decode one frame (6346 bytes) avcodec warning: cannot decode one frame (6367 bytes) avcodec warning: cannot decode one frame (6233 bytes) avcodec warning: cannot decode one frame (6192 bytes) avcodec warning: cannot decode one frame (6152 bytes) avcodec warning: cannot decode one frame (6324 bytes) avcodec warning: cannot decode one frame (6560 bytes) avcodec warning: cannot decode one frame (6844 bytes) avcodec warning: cannot decode one frame (12614 bytes) avcodec warning: cannot decode one frame (12890 bytes) avcodec warning: cannot decode one frame (10263 bytes) avcodec warning: cannot decode one frame (9683 bytes) avcodec warning: cannot decode one frame (8600 bytes) avcodec warning: cannot decode one frame (5328 bytes) avcodec warning: cannot decode one frame (5271 bytes) avcodec warning: cannot decode one frame (5286 bytes) avcodec warning: cannot decode one frame (5743 bytes) avcodec warning: cannot decode one frame (4215 bytes) avcodec warning: cannot decode one frame (4093 bytes) avcodec warning: cannot decode one frame (4049 bytes) avcodec warning: cannot decode one frame (5039 bytes) avcodec warning: cannot decode one frame (4551 bytes) avcodec warning: cannot decode one frame (4775 bytes) avcodec debug: disabling direct rendering stream_out_transcode debug: drift is too high, resetting master sync stream_out_transcode debug: decoder aspect is 768000:432000 stream_out_transcode debug: source pixel aspect is 1.000000:1 stream_out_transcode debug: scaled pixel aspect is 1.000000:1 stream_out_transcode debug: source 576x324, destination 480x270 stream_out_transcode debug: encoder aspect is 768000:432000 main debug: looking for video filter2 module: 19 candidates swscale debug: 576x324 chroma: I420 -> 480x270 chroma: I420 with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) main debug: Filter 'swscale' (00E4FAF0) appended to chain stream_out_transcode debug: destination (after video filters) 480x270 main debug: looking for encoder module: 11 candidates avcodec debug: libavcodec already initialized avcodec debug: removing common factors from framerate (mpeg4@05584010) avcodec debug: found encoder MPEG-4 Video main debug: using encoder module "avcodec" main debug: TIMER module_Need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms) stream_out_duplicate debug: duplicated a new stream codec=mp4v (es=0 group=0) main error: cannot add a new stream (unsupported while muxing to this format). You can try increasing sout-mux-caching value stream_out_duplicate debug: - failed for output 0 stream_out_transcode error: cannot add this stream avcodec debug: ffmpeg codec (On2's VP6.2 Video (Flash)) stopped main debug: removing module "avcodec" main debug: removing module "avcodec" main debug: Filter 'swscale' (00E4FAF0) removed from chain main debug: removing module "swscale" avformat debug: Trying to seek too far : EOF? main debug: EOF reached main debug: finished input main debug: dying input qt4 debug: Updating the stream status: 8 main debug: removing module "avformat" main debug: removing module "access_file" main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `VP6F', 0 PES in FIFO main debug: removing a sout input (sout_input:05478788) main debug: removing module "packetizer_copy" main debug: killing decoder fourcc `mp3 ', 0 PES in FIFO main debug: removing a sout input (sout_input:00E3DED0) main debug: TIMER encoding audio frame : 0.000 ms - Total 8759.000 ms / 18327 intvls (Avg 0.478 ms) avcodec debug: ffmpeg codec (MPEG Audio layer 1/2/3) stopped main debug: removing module "avcodec" main debug: removing module "avcodec" mux_mp4 debug: removing input main warning: no more input streams for this mux main debug: thread ended main debug: dead input main debug: thread times: real 0m12.406250s, kernel 0m0.921875s, user 0m11.125000s main debug: thread 4968 joined (playlist/engine.c:244) main debug: Destroying the input for 'Infile.flv' main debug: TIMER input launching for 'Infile.flv' : 59.000 ms - Total 59.000 ms / 1 intvls (Avg 59.000 ms) main debug: destroying chain... (name=transcode) main debug: destroying chain... (name=duplicate) stream_out_duplicate debug: closing a duplication main debug: destroying chain... (name=std) mux_mp4 debug: Close mux_mp4 debug: movie duration 478s mux_mp4 debug: created 1 chunks (stco) main debug: removing module "mux_mp4" access_output_file debug: file access output closed main debug: removing module "access_output_file" main debug: removing module "stream_out_standard" main debug: destroying chain done main debug: removing module "stream_out_duplicate" main debug: destroying chain done main debug: removing module "stream_out_transcode" main debug: destroying chain done main debug: starting new item main debug: changing item without a request (current 1/2) main debug: nothing to play main debug: uses deprecated vlc_object_get(371)
Again it makes the suggestion "You can try increasing sout-mux-caching value". Is there a way to increase that value?

And is there a version 1.0.0? What I used was 0.9.9-RC2.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 22 Mar 2009 00:28

VLC 1.0.0-git builds can be found in the "trunk" directories of the nightlies.

The set the sout-mux-caching value just add e.g.:

Code: Select all

--sout-mux-caching 5000
Where 5000 is the caching value in ms.

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 22 Mar 2009 02:17

VLC 1.0.0-git builds can be found in the "trunk" directories of the nightlies.

The set the sout-mux-caching value just add e.g.:

Code: Select all

--sout-mux-caching 5000
Where 5000 is the caching value in ms.

Arite.
Well, the new version (1.0.0-git-20090316-2305) did it, sort of.

First of all, adding the --sout-mux-caching 5000 bit didn't help in the 0.9.x versions. And using the GUI or the command line in 1.0.0 gave the same error as before, with the sout-mux-caching problem and an audio-only output file.

But using 1.0.0 from the command line and with the --sout-mux-caching 5000 switch gave a file with video, in the right dimensions. The only problem: out of a 50 MB input file it created a 795 MB output file. For comparison: the ffmpeg method from my earlier post made it 35 MB.

I guess that's it for the moment, I will keep that ffmpeg-frontend around for when VLC can't transcode something. Arite, thanks for your help.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: No video after flv to mp4 conversion

Postby VLC_help » 23 Mar 2009 16:38

The only problem: out of a 50 MB input file it created a 795 MB output file.
Bitrates are too high or wrong codecs are used.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 23 Mar 2009 23:36

Bitrates are too high or wrong codecs are used.
The sout string I specified on the command line contains these bitrate/codec parameters:
  • vcodec=mp4v
  • vb=800
  • acodec=mp4a
  • ab=128
Maybe version 1.0.0 has defected codecs or some bitrate defaults I can't override?

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: No video after flv to mp4 conversion

Postby Arite » 23 Mar 2009 23:54

When playing the video in VLC does "Tools >> Codec Information..." read the same info/values, and in the "Statistics" tab are the bitrates around the same?

Arite.
Don't use PMs for support questions.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 24 Mar 2009 22:42

When playing the video in VLC does "Tools >> Codec Information..." read the same info/values, and in the "Statistics" tab are the bitrates around the same?

Arite.
I had already deleted the 1GB video, so I decided to recreate it using the same command line string and the same version (the 1.0.0-git). Only this time I quit all other programs before doing it. It gave me a 30 MB mp4 file....

I guess this means that some of the trouble with VLC was due to a lack of processing capacity or RAM. Strangely, the new video has just one audio channel, whereas I specified two. EDIT: this seems to depend on the player... Quicktime says it's mono and 1 channel, VLC did that too, but after I deleted the VLC cache (%appdata%\vlc) it now says there are two. ??

The Codec information about the result is:
Audio:
Codec mp4a (OK)
1 channel (I specified channels=2) -- but 2 channels after cache deletion
22050 Hz (OK) -- now: 44100 Hz
16-bits (OK)
Bitrate 352 kbps (I specified ab=128)
-- now: AAC extension: SBR
Video:
codec mp4v (OK)
480x270 (OK)
frame rate 15 (OK)
The video bitrate is about 513 kbps (I specified vb=800).

The quality is good, considering the actual video bitrate.

Interesting findings, though I don't know what to make of all this.

At least everything seems to be alright now. The summary: quit all other programs, use version 1.0.0 and add --sout-mux-caching 5000 to the command. In case of audio playback problems, delete %appdata%\vlc. Thanks for the help!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: No video after flv to mp4 conversion

Postby VLC_help » 25 Mar 2009 15:46

There is tool called Mediainfo which should tell you more about mediafiles.

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 25 Mar 2009 17:22

There is tool called Mediainfo which should tell you more about mediafiles.
Mediainfo tells me this:
Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 7mn 58s
Bit rate mode : Variable
Bit rate : 38.0 Kbps
Maximum bit rate : 64.9 Kbps
Channel(s) : 1 channel
Channel positions : C
Sampling rate : 22.05 KHz
Resolution : 16 bits
Stream size : 2.17 MiB (7%)

That leaves me with two mysteries:
  1. Why does VLC convert to one-channel audio when asked to make two channels
  2. Why does it say there are two channels when there is only one

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: No video after flv to mp4 conversion

Postby VLC_help » 26 Mar 2009 17:48

You have prolly found some bugs. Could you share your sample file and your transcoding options, so I can open trac tickets?

JimPD
Blank Cone
Blank Cone
Posts: 14
Joined: 17 Oct 2008 16:52

Re: No video after flv to mp4 conversion

Postby JimPD » 01 Apr 2009 11:52

You have prolly found some bugs. Could you share your sample file and your transcoding options, so I can open trac tickets?
OK, I couldn't find a link to the original file, and uploading 50 MB will not make anyone happy, but I've taken a 7 second clip (473 kB) and it has essentially the same problem. The output of VLC (388 kB) has 1 audio channel according to Mediainfo, and two channels according to VLC Media Player (both versions 0.9.x and 1.0.0-git). Do I attach this to a PM to you or something?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 48 guests