[FFmpeg-user] Reading RTP from file/stdin
Hi all, I'm trying to work out how to do something which may be impossible using ffmpeg , but I want to check before going down a rabbit hole. I have a file with RTP packets representing an audio conversation. Format is g729. Stripping out the actual RTP payload (i.e. the raw g729 payload) and piping it to ffmpeg and specifying the format I can successfully write out a wav file (or whatever) so the content is good. If I try and run ffmpeg against the RTP packets though I get the following: [rtp @ 0x4b67c40] Unable to receive RTP payload type 18 without an SDP file describing it This is expected, as I understand it, ffmpeg expects an accompanying SDP to parse the RTP correctly. I can, of course, specify an SDP that corresponds to the RTP, but the problem is that I do NOT want to stream from a network endpoint. I want to parse that file that I have containing the RTP packets. IS there a way to do this at the moment with ffmpeg ? All the information required is in the RTP headers, so network issues aside it seems that ffmpeg (and the rtp parser) should be able to just parse an rtp file, though I guess it hasn't been implemented that way. Thanks, Daire. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Issues compiling with latest ffmpeg with vc 9.0 and msys32/64
Dear all, I'm trying to compile the latest version of ffmpeg on Windows 7 using Microsoft Visual Studio 9.0. VS Studio 2008 Professional. This is the only version I have available. I've followed the articles in: https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC which describes using visual studio versions earlier than VS2012. I've downloaded everything as described and followed all the steps, but I get the following error when running configure: == $ ./configure --toolchain=msvc c99wrap cl is unable to create an executable file. If c99wrap cl is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem. $ which cl /c/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/x86_amd64/cl $ which gcc /usr/bin/gcc I've downloaded yasm and c99 etc... Please can anyone help? Thanks and Regards. /c/Program Files (x86)/Microsoft Visual Studio 9.0/VC/BIN/x86_amd64/cl ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
On Fri, Mar 09, 2018 at 18:47:33 +, Pierre Pasquet wrote: > I’m confused. > What does $ ffmpeg -i udp://127.0.0.1: actually > do? > Is it a substitute to mediastreamsegmenter? No. It verifies that what the other ffmpeg sent was actually an MPEG-TS with audio only. To answer the question "Doesn’t FFMpeg provide a way to create a MPEG-2 transport stream with Audio only?", or to point out that that isn't the issue. (But your sending ffmpeg already confirmed that in its logs.) Does "man mediastreamsegmenter" give you any command line options for better issue analysis (such as some verbosity level)? BTW, please try to avoid to-posting. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
I’m confused. What does $ ffmpeg -i udp://127.0.0.1: actually do? Is it a substitute to mediastreamsegmenter? Pierre > On 9 Mar 2018, at 18:44, Moritz Barsnickwrote: > > On Fri, Mar 09, 2018 at 17:34:05 +, Pierre Pasquet wrote: >> Why can’t I just do the same for a stream segmenter? Doesn’t FFMpeg provide >> a way to create a MPEG-2 transport stream with Audio only? > > Yes it does. If you launch your audio-only ffmpeg stream (but not your > segmenter), and then separately issue a "receiver" as such: > > $ ffmpeg -i udp://127.0.0.1: > > you will see that you receive an mpegts stream with only AAC audio. > (Alas, when trying, my ffmpeg "receiver" took almost 10 seconds to pick > up the stream.) > > Perhaps the segmenter is picky about the TS format, and ffmpeg isn't > complying to its requirements. *shrug* > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
On Fri, Mar 09, 2018 at 17:34:05 +, Pierre Pasquet wrote: > Why can’t I just do the same for a stream segmenter? Doesn’t FFMpeg provide a > way to create a MPEG-2 transport stream with Audio only? Yes it does. If you launch your audio-only ffmpeg stream (but not your segmenter), and then separately issue a "receiver" as such: $ ffmpeg -i udp://127.0.0.1: you will see that you receive an mpegts stream with only AAC audio. (Alas, when trying, my ffmpeg "receiver" took almost 10 seconds to pick up the stream.) Perhaps the segmenter is picky about the TS format, and ffmpeg isn't complying to its requirements. *shrug* Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
I’ll have a look. What I don’t understand is that for VOD playback, I use mediafilesegmenter -f /Library/WebServer/Documents/live test.aac and it works perfectly fine ! The playlist is created with the relevant .aac segment files. Why can’t I just do the same for a stream segmenter? Doesn’t FFMpeg provide a way to create a MPEG-2 transport stream with Audio only? Thanks, > On 9 Mar 2018, at 17:30, Carl Zwanzigwrote: > > On 3/9/2018 7:05 AM, Pierre Pasquet wrote: >> I have tried your solution and here’s what I get : Unable to find a suitable >> output format for 'color=s=:c=black:r=' >> color=s=:c=black:r=: Invalid argument > > You can't just drop in "color=s=$outFormat:c=black:r=$videoRate" and expect > it to work unless variables outFormat and videoRate are defined. Take a look > at the color filter docs for the relevant values. (For me, both outFormat and > videoRate are usually "ntsc"). > > z! > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
On 3/9/2018 7:05 AM, Pierre Pasquet wrote: I have tried your solution and here’s what I get : Unable to find a suitable output format for 'color=s=:c=black:r=' color=s=:c=black:r=: Invalid argument You can't just drop in "color=s=$outFormat:c=black:r=$videoRate" and expect it to work unless variables outFormat and videoRate are defined. Take a look at the color filter docs for the relevant values. (For me, both outFormat and videoRate are usually "ntsc"). z! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
Hello, I have tried your solution and here’s what I get : Unable to find a suitable output format for 'color=s=:c=black:r=' color=s=:c=black:r=: Invalid argument The full command was : ffmpeg -re -i test.aac color=s=$outFormat:c=black:r=$videoRate -vcodec copy -vbsf h264_mp4toannexb -acodec copy -f mpegts udp://127.0.0.1: Thanks, Pierre > On 9 Mar 2018, at 03:51, Carl Zwanzigwrote: > > On 3/8/2018 8:17 AM, Moritz Barsnick wrote: >> As Carl Eugen tried to point out: What is missing is that you provide >> your actual (non-working) command line and its complete, uncut console >> output. > > One thing missing is some directed speculation even before the cmd line is > sent; it's a valuable part of troubleshooting and helps those asking to learn. > > > To the OP- > You might try providing dummy video to go with the audio (I know some > software doesn't deal well when there is no video stream). > > I think all you need to add something like > > -i color=s=$outFormat:c=black:r=$videoRate > > but I haven't tried it. > > z! > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] About hls option "hls_init_time" and "hls_time"
On Fri, Mar 09, 2018 at 15:59:07 +0800, xyzero wrote: > Hi all: > I use the lastest ffmpeg 3.4.2 to transcode a HLS live streaming with the > command : > "ffmpeg -i /2011/03/17/20110311090142995200.wmv -c:v h264 -flags +cgop -g 25 > -hls_init_time 1 -hls_time 10 -hls_list_size 0 -hls_flags temp_file -b:v 800K > /hls_tmp/out.m3u8" > and the m3u8 file was written as > #EXTM3U > #EXT-X-VERSION:3 > #EXT-X-TARGETDURATION:2 > #EXT-X-MEDIA-SEQUENCE:0 > #EXTINF:1.00, > out0.ts > #EXTINF:1.00, > out1.ts > #EXTINF:1.00, > out2.ts > #EXTINF:1.00, > out3.ts > #EXTINF:1.00, > out4.ts > #EXTINF:1.00, > out5.ts > > It seems that "-hls_time 10" has no effect with the option "-hls_init_time" > at the same time. > Does anyone meet the same problem before? I'm no HLS expert, but possibly, you need to set the flag "split_by_time" for "hls_time" to take effect. (Just guessing.) $ ffmpeg -h muxer=hls [...] -hls_flags E... set flags affecting HLS playlist and media file generation (default 0) [...] split_by_timeE... split the hls segment by time which user set by hls_time Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
On Fri, Mar 09, 2018 at 01:03:16 +, Pierre Pasquet wrote: > In theory, when receiving an input file, the segmenter should generate a > playlist .m3u8 and create subsequent .aac files (because we are dealing only > with audio) [...] > I know that the ffmpeg command is not write because it applies to video > files, but I can’t come up with an equivalent command for audio only! Did you ever consider that mediastreamsegmenter may be the issue? The FAQ: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/FrequentlyAskedQuestions/FrequentlyAskedQuestions.html 12. How can I create an audio-only stream from audio/video input? Add the -audio-only argument when invoking the stream or files segmenter. Have you tried this? Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Generate MPEG Transport stream from audio files only
On Thu, Mar 08, 2018 at 19:51:03 -0800, Carl Zwanzig wrote: > One thing missing is some directed speculation even before the cmd line is > sent; it's a valuable part of troubleshooting and helps those asking to learn. Yes and no. Speculating will help the OP avoid providing more information. It might solve the issue and we never know why. In this case, the complete error description was "However, It doesn't work with a AAC file." My correct answer would have been "It works for me" (and yes, I actually tried). > You might try providing dummy video to go with the audio (I know some > software doesn't deal well when there is no video stream). But then you are ignoring the OP's original request: "How can I send an audio-only file." I *did* speculate that the described error meant "ffmpeg doesn't work", but it is known to work with aac audio only, so, from the point of getting ffmpeg to work, no need to add dummy video. But that too was directed speculation. So in all honesty: It's easier to ask what's actually going wrong. Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] What is the interpolation algorithm in cuvid decoder?
Hello, All FFmpeg users. I'm looking at video frame resizing feature which used under nvidia acceleration. One of them feature, the h264_cuvid decoder have resize option for video frame. but I can't find what interpolation algorithm was used in that decoder when I query "ffmpeg -h decoder=h264_cuvid". I wonder know that.. Anyone can you help me out? Thanks a lot :) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] About hls option "hls_init_time" and "hls_time"
Hi all: I use the lastest ffmpeg 3.4.2 to transcode a HLS live streaming with the command : "ffmpeg -i /2011/03/17/20110311090142995200.wmv -c:v h264 -flags +cgop -g 25 -hls_init_time 1 -hls_time 10 -hls_list_size 0 -hls_flags temp_file -b:v 800K /hls_tmp/out.m3u8" and the m3u8 file was written as #EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:2 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:1.00, out0.ts #EXTINF:1.00, out1.ts #EXTINF:1.00, out2.ts #EXTINF:1.00, out3.ts #EXTINF:1.00, out4.ts #EXTINF:1.00, out5.ts It seems that "-hls_time 10" has no effect with the option "-hls_init_time" at the same time. Does anyone meet the same problem before? Thanks and best regards. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".