What is the flag to save rtmp mp4 streams as mp4 files, using youtube-dl & rtmpdump ?
I'm using the -o flag with rtmpdump to save the file as a FLV, but I want to save as a MP4 instead; not sure whether I must do it in youtube-dl or rtmpdump, considering youtube-dl gets the stream, my assumption is rtmpdump ?
+ Reply to Thread
Results 1 to 23 of 23
-
-
youtube-dl can't strictly get the MP4 file, even if the actual file online is a MP4 ?
-
youtube-dl video-url --list-formats
Note the format code of the mp4.
youtube-dl video-url -F # -o video.mp4
or
youtube-dl video-url -f '(mp4)[height=resolution]' -o video.mp4
where resolution is 480, 720, 1080, etc... -
There are no MP4 format videos, only FLV, can I encode from FLV to MP4 using rtmpdump ?
Last edited by PowerFalcon; 20th Oct 2015 at 18:10.
-
rtmpdump is only a stream ripper, it does not encode or remux. You will need to use ffmpeg as I mentioned above.
This is the general ffmpeg command line you would use.
It will remux the flv container to a mp4 container.
Video and audio will be stream copied and not re-encoded.
ffmpeg -i video.flv -c:v copy -c:a copy video.mp4 -
-
What is the video and audio codec of the flv? It may be codec that ffmpeg can't put in a mp4 container such as VP6.
In that case remove the copy commands and instead have ffmpeg encode h264 video and aac audio.
Something like:
-codec:v libx264
-codec:a libfdk_aac
In the ffmpeg documentation you can find the other switches for profiles/bit rate/ etc.....
https://trac.ffmpeg.org/wiki/Encode/H.264
https://trac.ffmpeg.org/wiki/Encode/AAC -
Adding the -i flag produces a new error; Unknown encoder 'libfdk_aac' ?
I'm trying mp2 audio codec, as that codec didn't fire any errors.Last edited by PowerFalcon; 21st Oct 2015 at 13:37.
-
works for me
latest ffmpeg 2.8.1
you must tell ffmpeg the path and filename
input.flv is in C:\
then put your audio and video options "-acodec libmp3lame -ar 48000 -vcodec libx264"
then save to C:\
as output.mp4
easy
Code:ffmpeg -i c:\input.flv -acodec libmp3lame -ar 48000 -vcodec libx264 c:\output.mp4
Last edited by bobit; 21st Oct 2015 at 16:21.
-
Audio & Video at both MP4 worked out successfully; considering I don't know any information of the FLV file to which I am encoding.
I'd prefer to play around with various encoding formats; not knowing I will benefit from what is working, it's worth a try
-
you must be using
1920's ffmpeg lol
use the latest
you can find info of the flv with vlc
Tools > Codec information > codec tab
tells you what audio and video codecs are in that file
cant see how you coverted a file with ffmpeg
when you did not tell ffmpeg where the input file was ?Last edited by bobit; 21st Oct 2015 at 16:38.
-
The format of the video must be MP4, the audio for the video file can depend.
The input file and output file were both in the same folder.cant see how you coverted a file with ffmpeg
when you did not tell ffmpeg where the input file was ?
I'm going to upgrade ffmpeg and update my results. -
In other words, I must decode the FLV to strictly MP4 video, but the audio of the FLV file can be encoded to any format, so long as there isn't a second delay in the audio or it sounds horrible.
-
The FLV files are AVC1 (h264) and Audio is AAC, from what I find about the file info.
Similar Threads
-
Saving a video as an mp4 with VirtualDub?
By Bruce Wayne in forum EditingReplies: 6Last Post: 2nd Jun 2015, 19:43 -
Can someone help? rtmpdump
By erhan_1498 in forum Video Streaming DownloadingReplies: 10Last Post: 13th May 2014, 15:51 -
Req: free(ish) tool to join mp4 stream chunks grabbed with rtmpdump
By grelga in forum Video ConversionReplies: 0Last Post: 18th Nov 2011, 15:33 -
Saving/capture solutions for saving off (extending) DVR
By ET3D in forum Newbie / General discussionsReplies: 1Last Post: 28th Oct 2011, 19:13 -
Joining HD MOV files from camera & saving as mp4; "Invalid Audio Stream"
By maskingtape in forum Newbie / General discussionsReplies: 30Last Post: 23rd Aug 2011, 13:30



Quote